|
Vehicle Control Unit 0.01
This is the c library for controlling the car.
|


Go to the source code of this file.
Classes | |
| struct | MonitorSystem |
Enumerations | |
| enum | MonitorType { m_TORQUE , m_APPS , m_BRAKES , m_TRACTION , m_ACCUMULATOR , m_RTD } |
| enum | FaultType { NONE , SYSTEM_ADJUST , SYSTEM_DISABLE , VEHICLE_SHUTDOWN } |
Functions | |
| void | initMonitorSystem (MonitorSystem *monitor, const char *name, int hz, MonitorType type, FaultType fault, int(*runMonitor)(void *self)) |
| Initializes the Monitor System with initial settings. More... | |
| enum FaultType |
| Enumerator | |
|---|---|
| NONE | |
| SYSTEM_ADJUST | |
| SYSTEM_DISABLE | |
| VEHICLE_SHUTDOWN | |
Definition at line 19 of file MonitorSystem.h.
| enum MonitorType |
| Enumerator | |
|---|---|
| m_TORQUE | |
| m_APPS | |
| m_BRAKES | |
| m_TRACTION | |
| m_ACCUMULATOR | |
| m_RTD | |
Definition at line 10 of file MonitorSystem.h.
| void initMonitorSystem | ( | MonitorSystem * | monitor, |
| const char * | name, | ||
| int | hz, | ||
| MonitorType | type, | ||
| FaultType | fault, | ||
| int(*)(void *self) | runMonitor | ||
| ) |
Initializes the Monitor System with initial settings.
| monitor | A pointer to the MonitorSystem structure. |
| name | The name of the monitor. |
| hz | Rate at which the monitor is called (in hz). |
| type | The type of monitor (per MonitorType). |
| fault | The type of fault to execute when monitor trips (per FaultType). |
Definition at line 3 of file MonitorSystem.c.

