Vehicle Control Unit 0.01
This is the c library for controlling the car.
|
Go to the source code of this file.
Functions | |
void | initApp (App *app, int hz, int channel) |
Initializes the APP with the given frequency and channel. More... | |
float | getAppPosition (App *app) |
Gets the current position of the APP. More... | |
void | updateApp (App *app) |
Updates the APP data. More... | |
float | transferFunctionApp (float rawVal) |
Converts raw APP data to a meaningful position value. More... | |
float getAppPosition | ( | App * | app | ) |
void initApp | ( | App * | app, |
int | hz, | ||
int | channel | ||
) |
Initializes the APP with the given frequency and channel.
app | Pointer to the App structure to initialize. |
hz | The frequency in Hertz at which the APP operates. |
channel | The analog channel the APP is connected to. |
Definition at line 5 of file App.c.
float transferFunctionApp | ( | float | rawVal | ) |
Converts raw APP data to a meaningful position value.
rawVal | The raw data from the APP. |
Definition at line 21 of file App.c.
void updateApp | ( | App * | app | ) |
Updates the APP data.
app | Pointer to the App structure to update. |
Definition at line 15 of file App.c.