1#ifndef RENSSELAERMOTORSPORT_TORQUE_MONITOR_H
2#define RENSSELAERMOTORSPORT_TORQUE_MONITOR_H
6#define TORQUE_ERROR_MARGIN 0.05
20 float maxAllowedTorque;
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.
void setTorque(TorqueControl *tc, float torque)
void sendTorqueCommand(const TorqueControl *tc)
void updateTorqueControl(void *tc)
Updates the Torque Control Actuator based on sensor inputs and calculations.
void initTorqueControl(TorqueControl *tc, int hz, float maxTorque)
Initializes the Torque Control Actuator with initial settings.