1#include "../../Inc/Systems/ControllerSystem.h"
2#include "../../Inc/Utils/Common.h"
15 printf(
"Cannot add more monitors to the controller\n");
25 if (controller->
monitors[i] == monitor) {
33 printf(
"Monitor not found in the controller\n");
int defaultRemoveMonitor(void *self, MonitorSystem *monitor)
Removes a monitor from the controller.
int defaultAddMonitor(void *self, MonitorSystem *monitor)
Adds a monitor to the controller.
void initControllerSystem(ControllerSystem *controller, const char *name, int hz, ControllerType type)
Initializes the Controller System with initial settings.
void initSystem(System *system, const char *name, int hz, SystemType type)
Initializes a System object.
MonitorSystem * monitors[MAX_MONITORS]
int(* safety)(void *self)