diff --git a/firmware/integration/rusefi_config.txt b/firmware/integration/rusefi_config.txt index 90671c2841..a7f7f04bab 100644 --- a/firmware/integration/rusefi_config.txt +++ b/firmware/integration/rusefi_config.txt @@ -131,6 +131,8 @@ struct_no_prefix engine_configuration_s #define BOOST_LOAD_COUNT 8 #define PEDAL_TO_TPS_SIZE 8 +#define STFT_CELL_COUNT 4 + #define CAN_DEFAULT_BASE 0x200 @@ -188,6 +190,27 @@ custom pedal_to_tps_t @@PEDAL_TO_TPS_SIZE@@x@@PEDAL_TO_TPS_SIZE@@ array, U08, custom iac_pid_mult_t @@IAC_PID_MULT_SIZE@@x@@IAC_PID_MULT_SIZE@@ array, U08, @OFFSET@, [@@IAC_PID_MULT_SIZE@@x@@IAC_PID_MULT_SIZE@@],"%", 1, 0, 0, 999, 2 custom boost_table_t @@BOOST_RPM_COUNT@@x@@BOOST_LOAD_COUNT@@ array, U08, @OFFSET@, [@@BOOST_RPM_COUNT@@x@@BOOST_LOAD_COUNT@@],"", @@LOAD_1_BYTE_PACKING_MULT@@, 0 , 0, 3000, 0 + +struct stft_cell_cfg_s + int8_t maxAdd;; "%", 1, 0, 0, 25, 0 + int8_t maxRemove;; "%", 1, 0, -25, 0, 0 + uint16_t timeConstant;; "sec", 0.1, 0, 0.1, 100, 2 +end_struct + +struct stft_s + uint8_t maxIdleRegionRpm;+Below this RPM, the idle region is active;"RPM", @@RPM_1_BYTE_PACKING_MULT@@, 0, 0.0, 12000.0, 0 + uint8_t maxOverrunLoad;+Below this engine load, the overrun region is active; "load", 1, 0, 0.0, 250, 0 + uint8_t minPowerLoad;+Above this engine load, the power region is active; "load", 1, 0, 0.0, 250, 0 + uint8_t deadband;+When close to correct AFR, pause correction. This can improve stability by not changing the adjustment if the error is extremely small, but is not required.; "%", 0.1, 0, 0, 3, 1 + + int8_t minClt;+Below this temperature, correction is disabled.;"C", 1, 0, -20, 100, 0 + uint8_t minAfr;+Below this AFR, correction is paused;"afr", 0.1, 0, 10, 20, 1 + uint8_t maxAfr;+Above this AFR, correction is paused;"afr", 0.1, 0, 10, 20, 1 + uint8_t startupDelay;+Delay after starting the engine before beginning closed loop correction.;"seconds", 1, 0, 0, 250, 0 + + stft_cell_cfg_s[STFT_CELL_COUNT iterate] cellCfgs; +end_struct + struct pid_s float pFactor;;"", 1, 0, -10000, 10000, 4 float iFactor;;"", 1, 0, -10000, 10000, 4 @@ -821,7 +844,9 @@ custom maf_sensor_type_e 4 bits, S32, @OFFSET@, [0:7], @@maf_sensor_type_e_enum@ int launchTpsTreshold; float launchActivateDelay; - int[100] unusedAtOldBoardConfigurationEnd; + stft_s stft + + int[94] unusedAtOldBoardConfigurationEnd; bit vvtDisplayInverted bit fuelClosedLoopCorrectionEnabled;+Enables lambda sensor closed loop feedback for fuelling.