idle_state: rename useIacTableForCoasting -> isIacTableForCoasting (#4721)

This commit is contained in:
Andrey G 2022-10-31 00:41:18 +03:00 committed by GitHub
parent 40ee8f1634
commit cb7f592848
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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);
} }