Changed the way AC idle RPM bump is handled

This commit is contained in:
pchmura4 2023-10-22 18:21:28 +02:00 committed by rusefillc
parent 50c5d67b2d
commit 0b852e4a81
3 changed files with 3 additions and 3 deletions

View File

@ -32,7 +32,7 @@ int IdleController::getTargetRpm(float clt) {
// alternator duty cycle has a similar logic
targetRpmAcBump = engine->module<AcController>().unmock().acButtonState ? engineConfiguration->acIdleRpmBump : 0;
auto target = targetRpmByClt + targetRpmAcBump;
auto target = (targetRpmByClt < targetRpmAcBump) ? targetRpmAcBump : targetRpmByClt;
idleTarget = target;
return target;
}

View File

@ -1060,7 +1060,7 @@ bit tempBooleanForVerySpecialLogic
float turboSpeedSensorMultiplier;;"mult", 1, 0, 0, 7000, 3
Gpio[CAM_INPUTS_COUNT iterate] camInputsDebug;
int16_t acIdleRpmBump;Extra idle target speed when A/C is enabled. Some cars need the extra speed to keep the AC efficient while idling.;"RPM", 1, 0, 0, 1000, 0
int16_t acIdleRpmBump;Idle target speed when A/C is enabled. Some cars need the extra speed to keep the AC efficient while idling.;"RPM", 1, 0, 0, 2000, 0
int16_t warningPeriod;set warningPeriod X;"seconds", 1, 0, 0, 60, 0

View File

@ -3504,7 +3504,7 @@ cmd_set_engine_type_default = "@@TS_IO_TEST_COMMAND_char@@@@ts_command_e_TS_
field = "Max CLT", maxAcClt
field = "Max TPS", maxAcTps
field = "A/C Idle adder", acIdleExtraOffset
field = "A/C RPM adder", acIdleRpmBump
field = "A/C Idle RPM", acIdleRpmBump
dialog = acSettings, "", border
panel = acSettingsWest, West