1#include "../../../Inc/Sensors/AnalogSensors/SteeringColumn.h"
2#include "../../../Inc/Utils/Common.h"
19 if (steeringColumn == NULL) {
20 fprintf(stderr,
"Error: Null pointer passed to updateSteeringColumn\n");
25 printf(
"Implement SteeringColumn Update.\n");
34 printf(
"Implement SteeringColumn::transfer_function\n");
void initAnalogSensor(AnalogSensor *analogSensor, const char *name, int hz, int channel, void *child)
Initializes an analog sensor and configures the corresponding GPIO pin.
int updateSteeringColumn(SteeringColumn *steeringColumn)
Updates the SteeringColumn data.
float getSteeringColumnRotationAngle(SteeringColumn *steeringColumn)
Gets the current rotation angle of the steering column.
float transferFunctionSteeringColumn(float rawVal)
Converts raw steering column data to a meaningful rotation angle.
void initSteeringColumn(SteeringColumn *steeringColumn, int hz, int channel, float zeroOffset)
Initializes the SteeringColumn sensor with the given frequency, channel, and zero offset.
int(* update)(struct Updateable *self)