1#include "../../../Inc/Systems/Controller/Apps.h"
2#include "../../../Inc/Systems/Monitor/AppsMonitor.h"
3#include "../../../Inc/Utils/Common.h"
10 static App app1, app2;
15 if (apps->
app[0] == NULL || apps->
app[1] == NULL) {
45 printf(
"Apps Controller value has not been validated\r\n");
52 return fabs(pos1 + pos2) / 2;
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.
void checkAppsLimit(Apps *apps)
Checks App limits for faults.
void initApps(Apps *apps, int hz, int channel1, int channel2)
Initializes the APPs with the given frequency and channel.
int updateApps(ControllerSystem *controller)
Updates the APPS based on both sensor outputs.
float getAppsPosition(Apps *apps)
Averages app sensors to get pedal position.
void initControllerSystem(ControllerSystem *controller, const char *name, int hz, ControllerType type, int(*updateController)(ControllerSystem *controller), void *child)
Initializes the Controller System with initial settings.