From 55eff99ab26a96027900b03ef8a967c719977b93 Mon Sep 17 00:00:00 2001 From: denia Date: Wed, 13 Nov 2024 00:58:48 +0100 Subject: [PATCH] Disable TPS error check on autocal --- firmware/controllers/actuators/electronic_throttle.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/firmware/controllers/actuators/electronic_throttle.cpp b/firmware/controllers/actuators/electronic_throttle.cpp index a1d779238d..ff1263ee22 100644 --- a/firmware/controllers/actuators/electronic_throttle.cpp +++ b/firmware/controllers/actuators/electronic_throttle.cpp @@ -532,7 +532,8 @@ bool EtbController::checkStatus() { bool shouldCheckSensorFunction = engine->module()->analogSensorsShouldWork(); - if (!m_isAutotune && shouldCheckSensorFunction) { + if (!m_isAutotune && shouldCheckSensorFunction && !m_isAutocal) { + // Added check to remove TPS errors during autocalibration https://github.com/FOME-Tech/fome-fw/issues/504 bool isTpsError = !Sensor::get(m_positionSensor).Valid; // If we have an error that's new, increment the counter