rusefi 2020-07-10 15:06:55 -04:00
parent 29e3c71df4
commit 8f4dd3e175
1 changed files with 3 additions and 0 deletions

View File

@ -294,9 +294,12 @@ 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) {
#if !EFI_IDLE_PID_CIC
// todo: move this to pid_s one day
idlePid.antiwindupFreq = engineConfiguration->idle_antiwindupFreq;
idlePid.derivativeFilterLoss = engineConfiguration->idle_derivativeFilterLoss;
#endif
if (isOutOfAutomaticIdleCondition(PASS_ENGINE_PARAMETER_SIGNATURE)) {
// Don't store old I and D terms if PID doesn't work anymore.