Vehicle Control Unit 0.01
This is the c library for controlling the car.
|
#include "../../../Inc/Systems/Controller/TorqueControl.h"
#include "../../../Inc/Systems/ControllerSystem.h"
#include "../../../Inc/Utils/Common.h"
#include <math.h>
Go to the source code of this file.
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... | |
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.