Formula Student Electronics & Software
The code for the embedded software
Loading...
Searching...
No Matches
apps.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define APPS_1_PIN   41
 
#define APPS_2_PIN   40
 
#define APPS_1_UPPER_BOUND   800
 
#define APPS_1_LOWER_BOUND   240
 
#define APPS_2_UPPER_BOUND   785
 
#define APPS_2_LOWER_BOUND   220
 
#define APPS1_DEAD_THRESHOLD   780
 
#define APPS2_DEAD_THRESHOLD   240
 
#define APPS1_DEADZONE_EQUIVALENT   660
 
#define APPS2_DEADZONE_EQUIVALENT   360
 
#define APPS_LINEAR_OFFSET   124
 
#define APPS_MAX   770
 
#define APPS_MIN   270
 
#define BAMOCAR_MAX   32760
 
#define BAMOCAR_MIN   0
 
#define APPS_MAX_ERROR_PERCENT   (15)
 
#define APPS_MAX_ERROR_ABS   (APPS_1_UPPER_BOUND * APPS_MAX_ERROR_PERCENT / 100)
 
#define AVG_SAMPLES   5
 
#define BRAKE_BLOCK_THRESHOLD   250
 
#define APPS_BLOCK_THRESHOLD   25.0
 
#define APPS_IMPLAUSIBLE_TIMEOUT_MS   200
 
#define APPS_BRAKE_PLAUSIBILITY_TIMEOUT_MS   500
 

Functions

int readApps ()
 

Macro Definition Documentation

◆ APPS1_DEAD_THRESHOLD

#define APPS1_DEAD_THRESHOLD   780

Definition at line 13 of file apps.h.

◆ APPS1_DEADZONE_EQUIVALENT

#define APPS1_DEADZONE_EQUIVALENT   660

Definition at line 16 of file apps.h.

◆ APPS2_DEAD_THRESHOLD

#define APPS2_DEAD_THRESHOLD   240

Definition at line 14 of file apps.h.

◆ APPS2_DEADZONE_EQUIVALENT

#define APPS2_DEADZONE_EQUIVALENT   360

Definition at line 17 of file apps.h.

◆ APPS_1_LOWER_BOUND

#define APPS_1_LOWER_BOUND   240

Definition at line 8 of file apps.h.

◆ APPS_1_PIN

#define APPS_1_PIN   41

Definition at line 4 of file apps.h.

◆ APPS_1_UPPER_BOUND

#define APPS_1_UPPER_BOUND   800

Definition at line 7 of file apps.h.

◆ APPS_2_LOWER_BOUND

#define APPS_2_LOWER_BOUND   220

Definition at line 11 of file apps.h.

◆ APPS_2_PIN

#define APPS_2_PIN   40

Definition at line 5 of file apps.h.

◆ APPS_2_UPPER_BOUND

#define APPS_2_UPPER_BOUND   785

Definition at line 10 of file apps.h.

◆ APPS_BLOCK_THRESHOLD

#define APPS_BLOCK_THRESHOLD   25.0

Definition at line 32 of file apps.h.

◆ APPS_BRAKE_PLAUSIBILITY_TIMEOUT_MS

#define APPS_BRAKE_PLAUSIBILITY_TIMEOUT_MS   500

Definition at line 34 of file apps.h.

◆ APPS_IMPLAUSIBLE_TIMEOUT_MS

#define APPS_IMPLAUSIBLE_TIMEOUT_MS   200

Definition at line 33 of file apps.h.

◆ APPS_LINEAR_OFFSET

#define APPS_LINEAR_OFFSET   124

Definition at line 19 of file apps.h.

◆ APPS_MAX

#define APPS_MAX   770

Definition at line 21 of file apps.h.

◆ APPS_MAX_ERROR_ABS

#define APPS_MAX_ERROR_ABS   (APPS_1_UPPER_BOUND * APPS_MAX_ERROR_PERCENT / 100)

Definition at line 27 of file apps.h.

◆ APPS_MAX_ERROR_PERCENT

#define APPS_MAX_ERROR_PERCENT   (15)

Definition at line 26 of file apps.h.

◆ APPS_MIN

#define APPS_MIN   270

Definition at line 22 of file apps.h.

◆ AVG_SAMPLES

#define AVG_SAMPLES   5

Definition at line 29 of file apps.h.

◆ BAMOCAR_MAX

#define BAMOCAR_MAX   32760

Definition at line 23 of file apps.h.

◆ BAMOCAR_MIN

#define BAMOCAR_MIN   0

Definition at line 24 of file apps.h.

◆ BRAKE_BLOCK_THRESHOLD

#define BRAKE_BLOCK_THRESHOLD   250

Definition at line 31 of file apps.h.

Function Documentation

◆ readApps()

int readApps ( )

Definition at line 82 of file apps.cpp.

Here is the call graph for this function:
Here is the caller graph for this function: