|
Vehicle Control Unit 0.01
This is the c library for controlling the car.
|
#include "../../../Inc/Utils/Common.h"#include "../../../Inc/Systems/External/Inverter.h"#include <stdio.h>
Go to the source code of this file.
Functions | |
| void | initInverter (Inverter *inverter, TorqueControl *tc, int hz, int maxCurrent, int maxTemp, int maxVoltage) |
| Initializes the Inverter with initial settings. More... | |
| int | updateInverter (ExternalSystem *external) |
| Updates the Inverter. More... | |
| int | checkInverterHeartbeat (void *self) |
| Checks the heartbeat of the Inverter. More... | |
| int checkInverterHeartbeat | ( | void * | self | ) |
Checks the heartbeat of the Inverter.
| self | A pointer to the Inverter structure. |
Definition at line 33 of file Inverter.c.

| void initInverter | ( | Inverter * | inverter, |
| TorqueControl * | tc, | ||
| int | hz, | ||
| int | maxCurrent, | ||
| int | maxTemp, | ||
| int | maxVoltage | ||
| ) |
Initializes the Inverter with initial settings.
| inverter | A pointer to the Inverter structure. |
| tc | A pointer to the TorqueControl structure. |
| hz | Rate at which the inverter is called (in hz). |
| maxCurrent | The maximum current limit set for the inverter. |
| maxTemp | The maximum temperature limit set for the inverter. |
| maxVoltage | The maximum voltage limit set for the inverter. |
Definition at line 6 of file Inverter.c.


| int updateInverter | ( | ExternalSystem * | external | ) |
Updates the Inverter.
| external | A pointer to the Inverter ExternalSystem. |
Definition at line 14 of file Inverter.c.
