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.