Vehicle Control Unit 0.01
This is the c library for controlling the car.
Loading...
Searching...
No Matches
BrakePressure.h
Go to the documentation of this file.
1#ifndef RENSSELAERMOTORSPORT_BRAKEPRESSURE_H
2#define RENSSELAERMOTORSPORT_BRAKEPRESSURE_H
3
4#include "../AnalogSensor.h"
5#include "../../Utils/Telemetry.h"
6
7typedef struct {
9 float pressure;
13
22void initBrakePressure(BrakePressure* bp, int hz, int channel, char* name);
23
31
37void updateBrakePressure(void* bp);
38
39
46float transferFunctionBrakePressure(float rawVal);
47
48#endif // RENSSELAERMOTORSPORT_BRAKEPRESSURE_H
float transferFunctionBrakePressure(float rawVal)
Converts raw brake pressure data to a meaningful pressure value.
Definition: BrakePressure.c:46
float getBrakePressure(BrakePressure *bp)
Gets the current brake pressure.
Definition: BrakePressure.c:23
void updateBrakePressure(void *bp)
Updates the brake pressure data.
Definition: BrakePressure.c:27
void initBrakePressure(BrakePressure *bp, int hz, int channel, char *name)
Initializes the BrakePressure sensor with the given frequency and channel.
Definition: BrakePressure.c:13
TelemetrySignal * telem_raw
Definition: BrakePressure.h:10
AnalogSensor base
Definition: BrakePressure.h:8
TelemetrySignal * telem_psi
Definition: BrakePressure.h:11