mirror of https://github.com/rusefi/rusefi-1.git
This commit is contained in:
parent
30bd081c9c
commit
1f4c632cf2
|
@ -294,6 +294,10 @@ static bool isOutOfAutomaticIdleCondition(DECLARE_ENGINE_PARAMETER_SIGNATURE) {
|
||||||
* @return idle valve position percentage for automatic closed loop mode
|
* @return idle valve position percentage for automatic closed loop mode
|
||||||
*/
|
*/
|
||||||
static percent_t automaticIdleController(float tpsPos DECLARE_ENGINE_PARAMETER_SUFFIX) {
|
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)) {
|
if (isOutOfAutomaticIdleCondition(PASS_ENGINE_PARAMETER_SIGNATURE)) {
|
||||||
// Don't store old I and D terms if PID doesn't work anymore.
|
// 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.
|
// Otherwise they will affect the idle position much later, when the throttle is closed.
|
||||||
|
|
Loading…
Reference in New Issue