From 1f4c632cf2091049899c956473d54bb0ab3ddb30 Mon Sep 17 00:00:00 2001 From: rusefi Date: Fri, 10 Jul 2020 14:03:07 -0400 Subject: [PATCH] https://rusefi.com/forum/viewtopic.php?p=37401#p37401 --- firmware/controllers/actuators/idle_thread.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/firmware/controllers/actuators/idle_thread.cpp b/firmware/controllers/actuators/idle_thread.cpp index c87e312682..a20daf881e 100644 --- a/firmware/controllers/actuators/idle_thread.cpp +++ b/firmware/controllers/actuators/idle_thread.cpp @@ -294,6 +294,10 @@ static bool isOutOfAutomaticIdleCondition(DECLARE_ENGINE_PARAMETER_SIGNATURE) { * @return idle valve position percentage for automatic closed loop mode */ static percent_t automaticIdleController(float tpsPos DECLARE_ENGINE_PARAMETER_SUFFIX) { + // todo: move this to pid_s one day + idlePid.antiwindupFreq = engineConfiguration->idle_antiwindupFreq; + idlePid.derivativeFilterLoss = engineConfiguration->idle_derivativeFilterLoss; + if (isOutOfAutomaticIdleCondition(PASS_ENGINE_PARAMETER_SIGNATURE)) { // Don't store old I and D terms if PID doesn't work anymore. // Otherwise they will affect the idle position much later, when the throttle is closed.