1#include "../../../Inc/Sensors/AnalogSensors/Accelerometer.h"
21 printf(
"Updating Accelerometer\n");
float transferFunctionAccelerometer(float rawVal)
Converts raw accelerometer data to a meaningful value.
void updateAccelerometer(void *accel)
Updates the accelerometer data.
float getAccelerometerValue(Accelerometer *accel)
Gets the current value of the accelerometer.
void initAccelerometer(Accelerometer *accel, int channel, int hz, int muxChannel)
Initializes the accelerometer with the given channel, frequency, and multiplexer channel.
void initAnalogSensor(AnalogSensor *analogSensor, const char *name, int hz, int channel)
Initializes an analog sensor and configures the corresponding GPIO pin.
void(* update)(void *self)