From 7ca5fe52714ace352ebc0d2506361b7168bc617a Mon Sep 17 00:00:00 2001 From: rusefillc Date: Thu, 22 Dec 2022 10:22:13 -0500 Subject: [PATCH] antilag and anti-lag #2403 TurboMarian is the ALS boss --- firmware/controllers/engine_controller.cpp | 4 ++-- firmware/tunerstudio/rusefi.input | 6 ++---- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/firmware/controllers/engine_controller.cpp b/firmware/controllers/engine_controller.cpp index eb5747ac45..8f4d2bad0b 100644 --- a/firmware/controllers/engine_controller.cpp +++ b/firmware/controllers/engine_controller.cpp @@ -572,8 +572,8 @@ bool validateConfig() { #if EFI_ANTILAG_SYSTEM // ALS - ensureArrayIsAscending("ALS TPS", config->alsIgnRetardLoadBins); - ensureArrayIsAscending("ALS RPM", config->alsIgnRetardrpmBins); + ensureArrayIsAscendingOrDefault("ALS TPS", config->alsIgnRetardLoadBins); + ensureArrayIsAscendingOrDefault("ALS RPM", config->alsIgnRetardrpmBins); #endif // EFI_ANTILAG_SYSTEM // ETB diff --git a/firmware/tunerstudio/rusefi.input b/firmware/tunerstudio/rusefi.input index 6c05089fee..fc8e231c87 100644 --- a/firmware/tunerstudio/rusefi.input +++ b/firmware/tunerstudio/rusefi.input @@ -4230,15 +4230,13 @@ dialog = tcuControls, "Transmission Settings" field = "Switch Input", ALSActivatePin, {antiLagActivationMode != @@antiLagActivationMode_e_SWITCH_INPUT_ANTILAG@@ && antiLagEnabled == 1} field = "ALS Button inverted", ALSActivateInverted, {antiLagActivationMode != @@antiLagActivationMode_e_SWITCH_INPUT_ANTILAG@@ && antiLagEnabled == 1} field = "ALS Button mode", ALSActivatePinMode, {antiLagActivationMode != @@antiLagActivationMode_e_SWITCH_INPUT_ANTILAG@@ && antiLagEnabled == 1} -; field = "Air supply", antiLagAirAddMode field = "Max TPS", ALSMaxTPS, {antiLagEnabled == 1} field = "Min RPM", ALSMinRPM, {antiLagEnabled == 1} field = "Max RPM", ALSMaxRPM, {antiLagEnabled == 1} field = "Min CLT", ALSMinCLT, {antiLagEnabled == 1} field = "Max CLT", ALSMaxCLT, {antiLagEnabled == 1} - field = "Air supply", ALSAirSupply - field = "Idle Air Add", ALSIdleAdd, {ALSAirSupply ==1 && antiLagEnabled == 1} - field = "ETB Air Add", ALSEtbAdd, {ALSAirSupply !=1 &&antiLagEnabled == 1} + field = "Idle Air Add", ALSIdleAdd, {useETBforIdleControl != 1 && antiLagEnabled == 1} + field = "ETB Air Add", ALSEtbAdd, {useETBforIdleControl == 1 && antiLagEnabled == 1} field = "Spark Skip Ratio", ALSSkipRatio, {antiLagEnabled == 1} panel = FuelAdderTableALS panel = IgnRetardTableALS