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


Go to the source code of this file.
Classes | |
| struct | ShockPot |
Functions | |
| void | initShockPot (ShockPot *shockPot, int hz, int channel, WHEEL_LOCATION location) |
| Initializes the ShockPot sensor with the given frequency, channel, and wheel location. More... | |
| float | getShockPotDistance (ShockPot *shockPot) |
| Gets the current distance measured by the ShockPot. More... | |
| void | updateShockPot (void *shockPot) |
| Updates the ShockPot data. More... | |
| float | transferFunctionShockPot (float rawVal) |
| Converts raw ShockPot data to a meaningful distance value. More... | |
| float getShockPotDistance | ( | ShockPot * | shockPot | ) |
Gets the current distance measured by the ShockPot.
| shockPot | Pointer to the ShockPot structure to query. |
Definition at line 13 of file ShockPot.c.
| void initShockPot | ( | ShockPot * | shockPot, |
| int | hz, | ||
| int | channel, | ||
| WHEEL_LOCATION | location | ||
| ) |
Initializes the ShockPot sensor with the given frequency, channel, and wheel location.
| shockPot | Pointer to the ShockPot structure to initialize. |
| hz | The frequency in Hertz at which the sensor operates. |
| channel | The analog channel the sensor is connected to. |
| location | The wheel location as defined by the WHEEL_LOCATION enum. |
Definition at line 6 of file ShockPot.c.

| float transferFunctionShockPot | ( | float | rawVal | ) |
Converts raw ShockPot data to a meaningful distance value.
| rawVal | The raw data from the ShockPot sensor. |
Definition at line 24 of file ShockPot.c.

| void updateShockPot | ( | void * | shockPot | ) |
Updates the ShockPot data.
| shockPot | Pointer to the ShockPot structure to update. |
Definition at line 17 of file ShockPot.c.

