1#include "../../../Inc/Sensors/AnalogSensors/App.h"
24 printf(
"App::transfer_function rawValue is too low\r\n");
27 else if (rawVal > 4.5) {
28 printf(
"App::transfer_function rawValue is too high\r\n");
31 return (rawVal - 0.5)/4.0;
float getAnalogSensorData(AnalogSensor *sensor)
Retrieves analog sensor data for a specific channel.
void initAnalogSensor(AnalogSensor *analogSensor, const char *name, int hz, int channel, void *child)
Initializes an analog sensor and configures the corresponding GPIO pin.
float getAppPosition(App *app)
Gets the current position of the APP.
void updateApp(App *app)
Updates the APP data.
void initApp(App *app, int hz, int channel)
Initializes the APP with the given frequency and channel.
float transferFunctionApp(float rawVal)
Converts raw APP data to a meaningful position value.
int(* update)(struct Updateable *self)