From 51a69c74786d13b6b5a97532efa78e0d7276513e Mon Sep 17 00:00:00 2001 From: Matthew Kennedy Date: Sun, 26 Jul 2020 03:05:59 -0700 Subject: [PATCH] clamp idle in VW mode --- firmware/controllers/actuators/electronic_throttle.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/firmware/controllers/actuators/electronic_throttle.cpp b/firmware/controllers/actuators/electronic_throttle.cpp index 47d5d19409..4f94a74ef3 100644 --- a/firmware/controllers/actuators/electronic_throttle.cpp +++ b/firmware/controllers/actuators/electronic_throttle.cpp @@ -170,7 +170,7 @@ expected EtbController::getSetpoint() const { // VW ETB idle mode uses an ETB only for idle (a mini-ETB sets the lower stop, and a normal cable // can pull the throttle up off the stop.), so we directly control the throttle with the idle position. if (CONFIG(volkswagenEtbIdle)) { - return m_idlePosition; + return clampF(0, m_idlePosition, 100); } // If the pedal map hasn't been set, we can't provide a setpoint.