1#ifndef RENSSELAERMOTORSPORT_TORQUE_CONTROL_H
2#define RENSSELAERMOTORSPORT_TORQUE_CONTROL_H
4#include "../ControllerSystem.h"
6#define TORQUE_ERROR_MARGIN 0.05
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 sendTorqueCommand(const 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.