This commit is contained in:
Matthew Kennedy 2020-04-03 04:48:12 -07:00 committed by GitHub
parent 9203f08072
commit cd3dc7f91b
1 changed files with 1 additions and 1 deletions

View File

@ -214,7 +214,7 @@ void EtbController::PeriodicTask() {
}
int rpm = GET_RPM();
float rpm = GET_RPM();
engine->engineState.targetFromTable = pedal2tpsMap.getValue(rpm / RPM_1_BYTE_PACKING_MULT, pedalPosition.Value);
percent_t etbIdleAddition = CONFIG(useETBforIdleControl) ? engine->engineState.idle.etbIdleAddition : 0;
percent_t targetPosition = engine->engineState.targetFromTable + etbIdleAddition;