Als timer smaller (#5041)

* Update default_base_engine.cpp

(cherry picked from commit 8ac64e2a16f18b7497c3fa1993a4d3e31a161332)

* als timer meta

---------

Co-authored-by: TurboMarian <podgajnymariusz@gmail.com>
Co-authored-by: rusefillc <sdfsdfqsf2334234234>
This commit is contained in:
rusefillc 2023-02-06 19:05:38 -04:00 committed by GitHub
parent 4b50c26620
commit 2a7db23708
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 2 deletions

View File

@ -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

View File

@ -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;

View File

@ -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

View File

@ -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}