From 6c76a6468ca53950aaf46581cf0cd79b3829c29e Mon Sep 17 00:00:00 2001 From: rusefillc Date: Wed, 29 Jun 2022 03:33:06 -0400 Subject: [PATCH] logging of live data structs was: data points #3614 would this be more correct in terms of multi-threaded reads? --- firmware/controllers/actuators/electronic_throttle.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/firmware/controllers/actuators/electronic_throttle.cpp b/firmware/controllers/actuators/electronic_throttle.cpp index 895c0db352..89452ba240 100644 --- a/firmware/controllers/actuators/electronic_throttle.cpp +++ b/firmware/controllers/actuators/electronic_throttle.cpp @@ -367,12 +367,12 @@ percent_t EtbController2::getThrottleTrim(float /*rpm*/, percent_t /*targetPosit } expected EtbController::getOpenLoop(percent_t target) { - etbFeedForward = 0; - // Don't apply open loop for wastegate/idle valve, only real ETB if (m_function != ETB_Wastegate && m_function != ETB_IdleValve) { etbFeedForward = interpolate2d(target, config->etbBiasBins, config->etbBiasValues); + } else { + etbFeedForward = 0; } return etbFeedForward;