File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -94,18 +94,18 @@ class ETCController {
94
94
/* * The voltage divider slope for the hall-effect 1 sensor. */
95
95
static constexpr float HE1_SCALE = (330 .0f / 480 .0f );
96
96
/* * The voltage for HE1 corresponding to 0% pedal travel. */
97
- static constexpr float HE1_LOW_VOLTAGE = 0 .425f ;
97
+ static constexpr float HE1_LOW_VOLTAGE = 0 .585f ; // 0.425f
98
98
/* * The voltage for HE1 corresponding to 100% pedal travel. */
99
- static constexpr float HE1_HIGH_VOLTAGE = 2 .420f ;
99
+ static constexpr float HE1_HIGH_VOLTAGE = 2 .650f ; // 2.420f
100
100
/* * The difference between the maximum and minimum voltages (100% and 0% travel) for HE1. */
101
101
static constexpr float HE1_RANGE =
102
102
ETCController::HE1_HIGH_VOLTAGE - ETCController::HE1_LOW_VOLTAGE;
103
103
/* * The voltage divider slope for the hall-effect 2 sensor. */
104
104
static constexpr float HE2_SCALE = (1 .0f / 2 .0f );
105
105
/* * The voltage for HE2 corresponding to 0% pedal travel. */
106
- static constexpr float HE2_LOW_VOLTAGE = 0 .417f ;
106
+ static constexpr float HE2_LOW_VOLTAGE = 0 .505f ; // 0.417f
107
107
/* * The voltage for HE2 corresponding to 100% pedal travel. */
108
- static constexpr float HE2_HIGH_VOLTAGE = 1 .830f ;
108
+ static constexpr float HE2_HIGH_VOLTAGE = 2 . 130f ; // 1.830f
109
109
/* * The difference between the maximum and minimum voltages (100% and 0% travel) for HE2. */
110
110
static constexpr float HE2_RANGE =
111
111
ETCController::HE2_HIGH_VOLTAGE - ETCController::HE2_LOW_VOLTAGE;
You can’t perform that action at this time.
0 commit comments