antilag and anti-lag #2403

This commit is contained in:
rusefillc 2022-12-14 22:25:06 -05:00
parent d812114062
commit af23aef7c0
3 changed files with 26 additions and 1 deletions

View File

@ -42,6 +42,14 @@ void setDefaultBaseEngine() {
engineConfiguration->failedMapFallback = 60;
engineConfiguration->enableMapEstimationTableFallback = false;
engineConfiguration->alsMinRpm = 400;
engineConfiguration->alsMaxRpm = 3200;
engineConfiguration->alsMaxDuration = 3.5;
engineConfiguration->alsMaxClt = 105;
engineConfiguration->alsMinPps = 10;
engineConfiguration->alsMinTimeBetween = 5;
engineConfiguration->alsEtbPosition = 30;
// Trigger
engineConfiguration->trigger.type = TT_TOOTHED_WHEEL_60_2;

View File

@ -1544,7 +1544,14 @@ uint16_t[HIGH_SPEED_COUNT] highSpeedOffsets;;"", 1.0000, 0.00000,0.00,65535, 0,
float etbDutyShutdownThreshold
Gpio[LUA_DIGITAL_INPUT_COUNT iterate] luaDigitalInputPins;
uint8_t[TPS_TPS_ACCEL_CLT_CORR_TABLE] autoscale tpsTspCorrValuesBins;;"RPM", 50, 0, 0, 17500, 0
uint8_t[136] mainUnusedEnd;;"units", 1, 0, 0, 1, 0
uint16_t alsMinRpm;;"", 1, 0, 0, 20000, 0
uint16_t alsMaxRpm;;"", 1, 0, 0, 20000, 0
float alsMaxDuration;;"sec", 1, 0, 0.01, 100, 2
uint8_t alsMaxClt;;"", 1, 0, 0, 20000, 0
uint8_t alsMinPps;;"", 1, 0, 0, 20000, 0
uint8_t alsMinTimeBetween;;"", 1, 0, 0, 20000, 0
uint8_t alsEtbPosition;;"", 1, 0, 0, 20000, 0
uint8_t[124] mainUnusedEnd;;"units", 1, 0, 0, 1, 0
! end of engine_configuration_s
end_struct

View File

@ -1858,6 +1858,7 @@ menuDialog = main
subMenu = std_separator
subMenu = parkingLot, "Experimental/Broken"
subMenu = alsDialog, "Anti-Lag ALS"
subMenu = rotaryDialog, "Rotary"
menu = "Help"
@ -2103,6 +2104,15 @@ cmd_set_engine_type_default = "@@TS_IO_TEST_COMMAND_char@@@@ts_command_e_TS_
field = "High flow coefficient", tChargeAirCoefMax
field = "Max air flow", tChargeAirFlowMax
dialog = alsDialog, "Anti-Lag ALS"
field = "Max Pedal Position", alsMinPps
field = "Max Coolant", alsMaxClt
field = "Min RPM", alsMinRpm
field = "Max RPM", alsMaxRpm
field = "Max Duration", alsMaxDuration
field = "Min Timer Between Activations", alsMinTimeBetween
field = "ETB Position", alsEtbPosition
dialog = tChargeSettings, "Charge temperature estimation"
panel = tChargeGeneralSettings
panel = tChargeRpmTpsSettings, { tChargeMode == 0}