Vehicle Control Unit 0.01
This is the c library for controlling the car.
|
Go to the source code of this file.
Functions | |
void | initControllerSystem (ControllerSystem *controller, const char *name, int hz, ControllerType type) |
Initializes the Controller System with initial settings. More... | |
int | defaultAddMonitor (void *self, MonitorSystem *monitor) |
Adds a monitor to the controller. More... | |
int | defaultRemoveMonitor (void *self, MonitorSystem *monitor) |
Removes a monitor from the controller. More... | |
int defaultAddMonitor | ( | void * | self, |
MonitorSystem * | monitor | ||
) |
Adds a monitor to the controller.
self | A pointer to the ControllerSystem structure. |
monitor | A pointer to the MonitorSystem structure to add. |
Definition at line 12 of file ControllerSystem.c.
int defaultRemoveMonitor | ( | void * | self, |
MonitorSystem * | monitor | ||
) |
Removes a monitor from the controller.
self | A pointer to the ControllerSystem structure. |
monitor | A pointer to the MonitorSystem structure to remove. |
Definition at line 22 of file ControllerSystem.c.
void initControllerSystem | ( | ControllerSystem * | controller, |
const char * | name, | ||
int | hz, | ||
ControllerType | type | ||
) |
Initializes the Controller System with initial settings.
controller | A pointer to the ControllerSystem structure. |
name | The name of the controller. |
hz | Rate at which the controller is called (in hz). |
type | The type of controller (per ControllerType). |
Definition at line 4 of file ControllerSystem.c.