idle_state: rename useIacTableForCoasting -> isIacTableForCoasting (#4721)
This commit is contained in:
parent
40ee8f1634
commit
cb7f592848
|
@ -16,7 +16,7 @@ bit shouldResetPid;idle: shouldResetPid
|
||||||
bit wasResetPid;idle: wasResetPid\nThis is needed to slowly turn on the PID back after it was reset.
|
bit wasResetPid;idle: wasResetPid\nThis is needed to slowly turn on the PID back after it was reset.
|
||||||
bit mustResetPid;idle: mustResetPid\nThis is used when the PID configuration is changed, to guarantee the reset
|
bit mustResetPid;idle: mustResetPid\nThis is used when the PID configuration is changed, to guarantee the reset
|
||||||
bit isCranking;idle: cranking
|
bit isCranking;idle: cranking
|
||||||
bit useIacTableForCoasting
|
bit isIacTableForCoasting
|
||||||
bit notIdling
|
bit notIdling
|
||||||
bit needReset;idle: reset
|
bit needReset;idle: reset
|
||||||
bit isInDeadZone;idle: dead zone
|
bit isInDeadZone;idle: dead zone
|
||||||
|
|
|
@ -133,8 +133,8 @@ percent_t IdleController::getOpenLoop(Phase phase, float rpm, float clt, SensorR
|
||||||
}
|
}
|
||||||
|
|
||||||
// If coasting (and enabled), use the coasting position table instead of normal open loop
|
// If coasting (and enabled), use the coasting position table instead of normal open loop
|
||||||
useIacTableForCoasting = engineConfiguration->useIacTableForCoasting && isIdleCoasting;
|
isIacTableForCoasting = engineConfiguration->useIacTableForCoasting && isIdleCoasting;
|
||||||
if (useIacTableForCoasting) {
|
if (isIacTableForCoasting) {
|
||||||
return interpolate2d(rpm, config->iacCoastingRpmBins, config->iacCoasting);
|
return interpolate2d(rpm, config->iacCoastingRpmBins, config->iacCoasting);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue