|
Vehicle Control Unit 0.01
This is the c library for controlling the car.
|
#include "../../../Inc/Systems/Controller/Apps.h"#include "../../../Inc/Systems/Monitor/AppsMonitor.h"#include "../../../Inc/Utils/Common.h"#include <math.h>
Go to the source code of this file.
Functions | |
| void | initApps (Apps *apps, int hz, int channel1, int channel2) |
| Initializes the APPs with the given frequency and channel. More... | |
| int | updateApps (ControllerSystem *controller) |
| Updates the APPS based on both sensor outputs. More... | |
| float | getAppsPosition (Apps *apps) |
| Averages app sensors to get pedal position. More... | |
| float getAppsPosition | ( | Apps * | apps | ) |
Averages app sensors to get pedal position.
| apps | Pointer to the APPS controller. |
Definition at line 42 of file Apps.c.


| void initApps | ( | Apps * | apps, |
| int | hz, | ||
| int | channel1, | ||
| int | channel2 | ||
| ) |
Initializes the APPs with the given frequency and channel.
| apps | Pointer to the Apps structure to initialize. |
| hz | The frequency in Hertz at which the APP operates. |
| channel1 | The analog channel the first APP is connected to. |
| channel2 | The analog channel the second APP is connected to. |
Definition at line 7 of file Apps.c.


| int updateApps | ( | ControllerSystem * | controller | ) |
Updates the APPS based on both sensor outputs.
| controller | A pointer to the APPs ControllerSystem. |
Definition at line 26 of file Apps.c.

