From 9e703f66bb7e384134393a04cf282720f77ec7e8 Mon Sep 17 00:00:00 2001 From: Joe Date: Sat, 25 Apr 2026 16:08:32 -0400 Subject: [PATCH] final pedal tuning --- Core/Src/u_pedals.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Core/Src/u_pedals.c b/Core/Src/u_pedals.c index 1a05194..5e97f4d 100644 --- a/Core/Src/u_pedals.c +++ b/Core/Src/u_pedals.c @@ -71,11 +71,11 @@ static pedal_data_t pedal_data = { 0 }; #define MAX_VOLTS_UNSCALED 5.0 // (Volts). Actual sensor voltage before voltage divider scaling. /* Pedal Tuning */ -#define MAX_APPS1_VOLTS 3.12 // (Volts). Upper bound on APPS1 voltage range. -#define MIN_APPS1_VOLTS 2.15 // (Volts). Lower bound on APPS1 voltage range. -#define MAX_APPS2_VOLTS 2.01 // (Volts). Upper bound on APPS2 voltage range. -#define MIN_APPS2_VOLTS 1.15 // (Volts). Lower bound on APPS2 voltage range. -#define PEDAL_BRAKE_THRESH 0.12 // (Percantage). Pedal position above which the system registers the brake pedal as "pressed". +#define MAX_APPS1_VOLTS 3.3 // (Volts). Upper bound on APPS1 voltage range. +#define MIN_APPS1_VOLTS 2.1 // (Volts). Lower bound on APPS1 voltage range. +#define MAX_APPS2_VOLTS 2.2 // (Volts). Upper bound on APPS2 voltage range. +#define MIN_APPS2_VOLTS 1.1 // (Volts). Lower bound on APPS2 voltage range. +#define PEDAL_BRAKE_THRESH 0.15 // (Percantage). Pedal position above which the system registers the brake pedal as "pressed". #define PEDAL_HARD_BRAKE_THRESH 0.22 // (Percentage). Pedal position above which a "hard brake" is detected. /* Performance Limits */