Corrections for the build to succeed
This commit is contained in:
parent
beebe4c233
commit
4849f7bdfa
|
@ -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
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue