1#include "../../../Inc/Systems/Monitor/AppsMonitor.h"
2#include "../../../Inc/Utils/Common.h"
15 printf(
"Monitor function not set for AppsMonitor\n");
31 printf(
"AppsMonitor: APPS position is too low. Defaulting to 0 to pass\r\n");
42 if (pos1 > 100 || pos2 > 100) {
48 float difference = fabs(pos1 - pos2);
55 if (pos1 < 0 || pos2 < 0) {
float getAppPosition(App *app)
Gets the current position of the APP.
void initAppsMonitor(AppsMonitor *am, Apps *apps, int hz)
int startAppsMonitor(AppsMonitor *am)
void checkAppsLimit(Apps *apps)
Checks App limits for faults.
int checkAppsMonitor(void *am)
void initMonitorSystem(MonitorSystem *monitor, const char *name, int hz, MonitorType type, FaultType fault, int(*runMonitor)(void *self))
Initializes the Monitor System with initial settings.
int(* runMonitor)(void *self)