Formula Student Electronics & Software
The code for the embedded software
Loading...
Searching...
No Matches
apps.h
Go to the documentation of this file.
1#ifndef _APPS_H_
2#define _APPS_H_
3
4#define APPS_1_PIN 41
5#define APPS_2_PIN 40
6
7#define APPS_1_UPPER_BOUND 800
8#define APPS_1_LOWER_BOUND 240
9
10#define APPS_2_UPPER_BOUND 785
11#define APPS_2_LOWER_BOUND 220
12
13#define APPS1_DEAD_THRESHOLD 780
14#define APPS2_DEAD_THRESHOLD 240
15
16#define APPS1_DEADZONE_EQUIVALENT 660
17#define APPS2_DEADZONE_EQUIVALENT 360
18
19#define APPS_LINEAR_OFFSET 124
20
21#define APPS_MAX 770
22#define APPS_MIN 270
23#define BAMOCAR_MAX 32760
24#define BAMOCAR_MIN 0
25
26#define APPS_MAX_ERROR_PERCENT (15)
27#define APPS_MAX_ERROR_ABS (APPS_1_UPPER_BOUND * APPS_MAX_ERROR_PERCENT / 100)
28
29#define AVG_SAMPLES 5
30
31#define BRAKE_BLOCK_THRESHOLD 250
32#define APPS_BLOCK_THRESHOLD 25.0
33#define APPS_IMPLAUSIBLE_TIMEOUT_MS 200
34#define APPS_BRAKE_PLAUSIBILITY_TIMEOUT_MS 500
35
36int readApps();
37
38#endif // _APPS_H_
int readApps()
Definition apps.cpp:82