mightResetPid docs (#912)

This commit is contained in:
andreika-git 2019-08-31 22:38:01 +03:00 committed by rusefi
parent 62164affff
commit 27fccf0a7f
1 changed files with 4 additions and 1 deletions

View File

@ -51,7 +51,10 @@ EXTERN_ENGINE
;
static bool shouldResetPid = false;
// we might reset PID state when the state is changed, but only if needed (See autoIdle())
// The idea of 'mightResetPid' is to reset PID only once - each time when TPS > idlePidDeactivationTpsThreshold.
// The throttle pedal can be pressed for a long time, making the PID data obsolete (thus the reset is required).
// We set 'mightResetPid' to true only if PID was actually used (i.e. idlePid.getOutput() was called) to save some CPU resources.
// See automaticIdleController().
static bool mightResetPid = false;
#if EFI_IDLE_INCREMENTAL_PID_CIC