#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "System.h"
Go to the source code of this file.
◆ FaultType
Enumerator |
---|
NONE | |
SYSTEM_ADJUST | |
SYSTEM_DISABLE | |
VEHICLE_SHUTDOWN | |
Definition at line 17 of file MonitorSystem.h.
◆ MonitorType
Enumerator |
---|
m_TORQUE | |
m_APPS | |
m_TRACTION | |
m_ACCUMULATOR | |
Definition at line 10 of file MonitorSystem.h.
◆ initMonitorSystem()
Initializes the Monitor System with initial settings.
- Parameters
-
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.
4 {
7 monitor->
fault = fault;
8}
void initSystem(System *system, const char *name, int hz, SystemType type)
Initializes a System object.