Vehicle Control Unit 0.01
This is the c library for controlling the car.
|
#include "Sensor.h"
Go to the source code of this file.
Classes | |
struct | DigitalSensor |
Functions | |
void | initDigitalSensor (DigitalSensor *digitalsensor, const char *name, int hz, int port) |
Initializes a digital sensor with the given parameters. More... | |
void initDigitalSensor | ( | DigitalSensor * | digitalsensor, |
const char * | name, | ||
int | hz, | ||
int | port | ||
) |
Initializes a digital sensor with the given parameters.
digitalsensor | 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. |
port | Location of the digital sensor on board. |
Definition at line 3 of file DigitalSensor.c.