|
Vehicle Control Unit 0.01
This is the c library for controlling the car.
|
#include "../../../Inc/Sensors/AnalogSensors/App.h"#include "../../../Inc/Utils/MessageFormat.h"#include <stdio.h>
Go to the source code of this file.
Functions | |
| void | initApp (App *app, int hz, int channel, char *name) |
| 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, | ||
| char * | name | ||
| ) |
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. |
| name | The name of the sensor (default is "App"). |
Definition at line 6 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 41 of file App.c.

| void updateApp | ( | App * | app | ) |
Updates the APP data.
| app | Pointer to the App structure to update. |
Definition at line 21 of file App.c.

