Skip to content

Commit 1114a7f

Browse files
final pedal tuning (#205)
Co-authored-by: Joe <joe@smith.com>
1 parent 61444f5 commit 1114a7f

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

Core/Src/u_pedals.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,11 @@ static pedal_data_t pedal_data = { 0 };
7171
#define MAX_VOLTS_UNSCALED 5.0 // (Volts). Actual sensor voltage before voltage divider scaling.
7272

7373
/* Pedal Tuning */
74-
#define MAX_APPS1_VOLTS 3.12 // (Volts). Upper bound on APPS1 voltage range.
75-
#define MIN_APPS1_VOLTS 2.15 // (Volts). Lower bound on APPS1 voltage range.
76-
#define MAX_APPS2_VOLTS 2.01 // (Volts). Upper bound on APPS2 voltage range.
77-
#define MIN_APPS2_VOLTS 1.15 // (Volts). Lower bound on APPS2 voltage range.
78-
#define PEDAL_BRAKE_THRESH 0.12 // (Percantage). Pedal position above which the system registers the brake pedal as "pressed".
74+
#define MAX_APPS1_VOLTS 3.3 // (Volts). Upper bound on APPS1 voltage range.
75+
#define MIN_APPS1_VOLTS 2.1 // (Volts). Lower bound on APPS1 voltage range.
76+
#define MAX_APPS2_VOLTS 2.2 // (Volts). Upper bound on APPS2 voltage range.
77+
#define MIN_APPS2_VOLTS 1.1 // (Volts). Lower bound on APPS2 voltage range.
78+
#define PEDAL_BRAKE_THRESH 0.15 // (Percantage). Pedal position above which the system registers the brake pedal as "pressed".
7979
#define PEDAL_HARD_BRAKE_THRESH 0.22 // (Percentage). Pedal position above which a "hard brake" is detected.
8080

8181
/* Performance Limits */

0 commit comments

Comments
 (0)