1#include "../../../Inc/Systems/Controller/TorqueControl.h"
2#include "../../../Inc/Utils/Common.h"
16 printf(
"Safety system not set for Torque Control\n");
20 printf(
"Torque Control Actuator is not in a safe state\n");
29 printf(
"Torque Control Actuator is not in a safe state\n");
33 printf(
"Desired torque exceeds the maximum allowed torque\n");
46 printf(
"Torque Control Actuator is not in a safe state\n");
51 printf(
"Torque Control Actuator is not in OK\n");
79 printf(
"No monitors set for Torque Control\n");
83 printf(
"Torque Control Actuator is not in a safe state\n");
void initControllerSystem(ControllerSystem *controller, const char *name, int hz, ControllerType type)
Initializes the Controller System with initial settings.
TorqueStatus checkTorqueLimits(TorqueControl *tc)
Checks if the actual torque is within the defined limits and desired range.
void setDesiredTorque(TorqueControl *tc, float torque)
Sets the desired torque for the Torque Control Actuator.
int startTorqueControl(TorqueControl *tc)
void setActualTorque(TorqueControl *tc, float torque)
void updateTorqueControl(void *tc)
Updates the Torque Control Actuator based on sensor inputs and calculations.
int torqueSafetyCheck(void *tc)
Checks the safety of the torque with multiple monitors.
void initTorqueControl(TorqueControl *tc, int hz, float maxTorque)
Initializes the Torque Control Actuator with initial settings.
#define TORQUE_ERROR_MARGIN
int(* safety)(void *self)
void(* update)(void *self)