Vehicle Control Unit 0.01
This is the c library for controlling the car.
Loading...
Searching...
No Matches
App.h
Go to the documentation of this file.
1#ifndef RENSSELAERMOTORSPORT_APP_H
2#define RENSSELAERMOTORSPORT_APP_H
3
4#include "../AnalogSensor.h"
5
6typedef struct {
8 float position;
9} App;
10
18void initApp(App* app, int hz, int channel);
19
26float getAppPosition(App* app);
27
33void updateApp(void* app);
34
41float transferFunctionApp(float rawVal);
42
50void setAppPos(App* app, float pos);
51
52#endif // RENSSELAERMOTORSPORT_APP_H
float getAppPosition(App *app)
Gets the current position of the APP.
Definition: App.c:11
void initApp(App *app, int hz, int channel)
Initializes the APP with the given frequency and channel.
Definition: App.c:5
void setAppPos(App *app, float pos)
Sets pedal position in app sensor.
Definition: App.c:35
float transferFunctionApp(float rawVal)
Converts raw APP data to a meaningful position value.
Definition: App.c:22
void updateApp(void *app)
Updates the APP data.
Definition: App.c:15
Definition: App.h:6
AnalogSensor base
Definition: App.h:7
float position
Definition: App.h:8