1#include "../../../Inc/Sensors/AnalogSensors/BrakePressure.h"
24 printf(
"Implement BrakePressure Update\n");
30 printf(
"BrakePressure::transfer_function rawVal is too low\n");
34 printf(
"BrakePressure::transfer_function rawVal is too high\n");
void initAnalogSensor(AnalogSensor *analogSensor, const char *name, int hz, int channel)
Initializes an analog sensor and configures the corresponding GPIO pin.
float transferFunctionBrakePressure(float rawVal)
Converts raw brake pressure data to a meaningful pressure value.
static const float kLowOutputSaturation
static const float kHighOutputSaturation
float getBrakePressure(BrakePressure *bp)
Gets the current brake pressure.
static const float kVoltsPerPSIA
void initBrakePressure(BrakePressure *bp, int hz, int channel)
Initializes the BrakePressure sensor with the given frequency and channel.
void updateBrakePressure(void *bp)
Updates the brake pressure data.
static const float kOffsetVoltage
void(* update)(void *self)