Skip to content

Commit 1aaf7c4

Browse files
committed
new constants
1 parent 50fa2e2 commit 1aaf7c4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ETC/src/etc_controller.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ class ETCController {
9494
/** The voltage divider slope for the hall-effect 1 sensor. */
9595
static constexpr float HE1_SCALE = (330.0f / 480.0f);
9696
/** The voltage for HE1 corresponding to 0% pedal travel. */
97-
static constexpr float HE1_LOW_VOLTAGE = 0.620f;
97+
static constexpr float HE1_LOW_VOLTAGE = 0.425f;
9898
/** The voltage for HE1 corresponding to 100% pedal travel. */
9999
static constexpr float HE1_HIGH_VOLTAGE = 2.420f;
100100
/** The difference between the maximum and minimum voltages (100% and 0% travel) for HE1. */
@@ -103,7 +103,7 @@ class ETCController {
103103
/** The voltage divider slope for the hall-effect 2 sensor. */
104104
static constexpr float HE2_SCALE = (1.0f / 2.0f);
105105
/** The voltage for HE2 corresponding to 0% pedal travel. */
106-
static constexpr float HE2_LOW_VOLTAGE = 0.420f;
106+
static constexpr float HE2_LOW_VOLTAGE = 0.417f;
107107
/** The voltage for HE2 corresponding to 100% pedal travel. */
108108
static constexpr float HE2_HIGH_VOLTAGE = 1.830f;
109109
/** The difference between the maximum and minimum voltages (100% and 0% travel) for HE2. */

0 commit comments

Comments
 (0)