Vehicle Control Unit 0.01
This is the c library for controlling the car.
|
Go to the source code of this file.
Classes | |
struct | TorqueControl |
Enumerations | |
enum | TorqueStatus { TORQUE_OK , TORQUE_RTD , TORQUE_LOW , TORQUE_OVER_LIMIT , TORQUE_UNDER_LIMIT , TORQUE_SENSOR_ERROR , TORQUE_BRAKE_FIGHT } |
Functions | |
void | initTorqueControl (TorqueControl *tc, Apps *apps, int hz, float maxTorque) |
Initializes the Torque Control Actuator with initial settings. More... | |
int | startTorqueControl (TorqueControl *tc) |
Starts the Torque Control Actuator. More... | |
int | setDesiredTorque (ControllerSystem *controller) |
Sets the desired torque for the Torque Control Actuator. More... | |
enum TorqueStatus |
Enumerator | |
---|---|
TORQUE_OK | |
TORQUE_RTD | |
TORQUE_LOW | |
TORQUE_OVER_LIMIT | |
TORQUE_UNDER_LIMIT | |
TORQUE_SENSOR_ERROR | |
TORQUE_BRAKE_FIGHT |
Definition at line 8 of file TorqueControl.h.
void initTorqueControl | ( | TorqueControl * | tc, |
Apps * | apps, | ||
int | hz, | ||
float | maxTorque | ||
) |
Initializes the Torque Control Actuator with initial settings.
tc | A pointer to the TorqueControl structure. |
hz | Rate at which the sensor is called (in hz). |
maxTorque | The maximum torque limit set for the system (in Nm). |
Definition at line 6 of file TorqueControl.c.
int setDesiredTorque | ( | ControllerSystem * | controller | ) |
Sets the desired torque for the Torque Control Actuator.
controller | A pointer to the ControllerSystem structure. |
Definition at line 27 of file TorqueControl.c.
int startTorqueControl | ( | TorqueControl * | tc | ) |
Starts the Torque Control Actuator.
tc | A pointer to the TorqueControl structure. |
Definition at line 13 of file TorqueControl.c.