Corrections for the build to succeed

This commit is contained in:
pchmura4 2023-10-22 15:26:44 -04:00 committed by rusefillc
parent beebe4c233
commit 4849f7bdfa
2 changed files with 3 additions and 3 deletions

View File

@ -32,7 +32,7 @@ custom idle_state_e 4 bits, S32, @OFFSET@, [0:2], "not important"
int idleTarget;Idle: Target RPM
int targetRpmByClt;Idle: Target RPM base
int targetRpmAcBump;Idle: Target A/C bump
int targetRpmAc;Idle: Target A/C RPM
percent_t iacByRpmTaper;idle: iacByRpmTaper portion

View File

@ -30,9 +30,9 @@ int IdleController::getTargetRpm(float clt) {
// Why do we bump based on button not based on actual A/C relay state?
// Because AC output has a delay to allow idle bump to happen first, so that the airflow increase gets a head start on the load increase
// alternator duty cycle has a similar logic
targetRpmAcTarget = engine->module<AcController>().unmock().acButtonState ? engineConfiguration->acIdleRpmTarget : 0;
targetRpmAc = engine->module<AcController>().unmock().acButtonState ? engineConfiguration->acIdleRpmTarget : 0;
auto target = (targetRpmByClt < targetRpmAcTarget) ? targetRpmAcTarget : targetRpmByClt;
auto target = (targetRpmByClt < targetRpmAc) ? targetRpmAc : targetRpmByClt;
idleTarget = target;
return target;
}