Vehicle Control Unit 0.01
This is the c library for controlling the car.
|
Go to the source code of this file.
Functions | |
void | initSensor (Sensor *sensor, const char *name, int hz, SensorType type) |
Initializes a sensor with the given parameters. More... | |
void initSensor | ( | Sensor * | sensor, |
const char * | name, | ||
int | hz, | ||
SensorType | type | ||
) |
Initializes a sensor with the given parameters.
sensor | Pointer to the Sensor structure to initialize. |
name | Pointer to a string containing the name of the sensor. |
hz | The frequency in Hertz at which the sensor operates. |
type | The type of the sensor as defined by the SensorType enum. |
Definition at line 4 of file Sensor.c.