From 2a7db23708c39076a1c621bc4ebc3929aff7baac Mon Sep 17 00:00:00 2001 From: rusefillc <48498823+rusefillc@users.noreply.github.com> Date: Mon, 6 Feb 2023 19:05:38 -0400 Subject: [PATCH] Als timer smaller (#5041) * Update default_base_engine.cpp (cherry picked from commit 8ac64e2a16f18b7497c3fa1993a4d3e31a161332) * als timer meta --------- Co-authored-by: TurboMarian Co-authored-by: rusefillc --- firmware/controllers/algo/antilag_system_state.txt | 1 + firmware/controllers/algo/defaults/default_base_engine.cpp | 2 +- firmware/integration/rusefi_config.txt | 2 +- firmware/tunerstudio/rusefi.input | 1 + 4 files changed, 4 insertions(+), 2 deletions(-) diff --git a/firmware/controllers/algo/antilag_system_state.txt b/firmware/controllers/algo/antilag_system_state.txt index b998117969..98fd336cce 100644 --- a/firmware/controllers/algo/antilag_system_state.txt +++ b/firmware/controllers/algo/antilag_system_state.txt @@ -9,6 +9,7 @@ bit ALSMaxThrottleIntentCondition bit isALSSwitchActivated bit ALSActivatePinState bit ALSSwitchCondition +bit ALSTimerCondition float fuelALSCorrection int16_t autoscale timingALSCorrection;;"deg",{1/@@PACK_MULT_PERCENT@@}, 0, -20, 20, 2 diff --git a/firmware/controllers/algo/defaults/default_base_engine.cpp b/firmware/controllers/algo/defaults/default_base_engine.cpp index 6fbfe2394b..554e34d02c 100644 --- a/firmware/controllers/algo/defaults/default_base_engine.cpp +++ b/firmware/controllers/algo/defaults/default_base_engine.cpp @@ -44,7 +44,7 @@ void setDefaultBaseEngine() { engineConfiguration->ALSMinRPM = 400; engineConfiguration->ALSMaxRPM = 3200; - engineConfiguration->alsMaxDuration = 3.5; + engineConfiguration->ALSMaxDuration = 3.5; engineConfiguration->ALSMaxCLT = 105; // engineConfiguration->alsMinPps = 10; engineConfiguration->alsMinTimeBetween = 5; diff --git a/firmware/integration/rusefi_config.txt b/firmware/integration/rusefi_config.txt index 397797ecd1..494a095180 100644 --- a/firmware/integration/rusefi_config.txt +++ b/firmware/integration/rusefi_config.txt @@ -1546,7 +1546,7 @@ Gpio[LUA_DIGITAL_INPUT_COUNT iterate] luaDigitalInputPins; uint8_t[TPS_TPS_ACCEL_CLT_CORR_TABLE] autoscale tpsTspCorrValuesBins;;"RPM", 50, 0, 0, 17500, 0 int16_t ALSMinRPM;;"rpm", 1, 0, 0, 20000, 0 int16_t ALSMaxRPM;;"rpm", 1, 0, 0, 20000, 0 -float alsMaxDuration;;"sec", 1, 0, 0.01, 100, 2 +int16_t ALSMaxDuration;;"sec", 1, 0, 0, 10, 0 int8_t ALSMinCLT;;"C", 1, 0, 0, 90, 0 int8_t ALSMaxCLT;;"C", 1, 0, 0, 105, 0 uint8_t alsMinTimeBetween;;"", 1, 0, 0, 20000, 0 diff --git a/firmware/tunerstudio/rusefi.input b/firmware/tunerstudio/rusefi.input index 47d5988e4c..0e680bee23 100644 --- a/firmware/tunerstudio/rusefi.input +++ b/firmware/tunerstudio/rusefi.input @@ -4242,6 +4242,7 @@ 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 = "ALS timeout", ALSMaxDuration, {antiLagEnabled == 1} field = "Max TPS", ALSMaxTPS, {antiLagEnabled == 1} field = "Min RPM", ALSMinRPM, {antiLagEnabled == 1} field = "Max RPM", ALSMaxRPM, {antiLagEnabled == 1}