From 11d29d407394f73161d6c11eb4bfd764cd11fb0f Mon Sep 17 00:00:00 2001 From: rusEFI LLC Date: Tue, 30 Apr 2024 22:54:53 -0400 Subject: [PATCH] Extended CLT range input for Aircooled Engines #6436 --- .../boards/hellen/hellen-honda-k/prepend.txt | 2 +- .../boards/hellen/hellen121nissan/prepend.txt | 2 +- .../hellen/hellen154hyundai/prepend.txt | 2 ++ .../hellen/hellen154hyundai_f7/prepend.txt | 2 ++ .../config/boards/subaru_eg33/prepend.txt | 2 +- firmware/integration/rusefi_config.txt | 26 +++++++++++-------- 6 files changed, 22 insertions(+), 14 deletions(-) diff --git a/firmware/config/boards/hellen/hellen-honda-k/prepend.txt b/firmware/config/boards/hellen/hellen-honda-k/prepend.txt index 87f80c42d1e..9db81aa03db 100644 --- a/firmware/config/boards/hellen/hellen-honda-k/prepend.txt +++ b/firmware/config/boards/hellen/hellen-honda-k/prepend.txt @@ -50,4 +50,4 @@ #define IGN_RPM_COUNT 24 #define IGN_LOAD_COUNT 24 - +#define CLT_UPPER_LIMIT 125 diff --git a/firmware/config/boards/hellen/hellen121nissan/prepend.txt b/firmware/config/boards/hellen/hellen121nissan/prepend.txt index defde9bdc10..66d9ebc5e79 100644 --- a/firmware/config/boards/hellen/hellen121nissan/prepend.txt +++ b/firmware/config/boards/hellen/hellen121nissan/prepend.txt @@ -22,6 +22,6 @@ - +#define CLT_UPPER_LIMIT 125 #define show_Hellen121nissan_presets true diff --git a/firmware/config/boards/hellen/hellen154hyundai/prepend.txt b/firmware/config/boards/hellen/hellen154hyundai/prepend.txt index afa39053ee7..7daebe95b25 100644 --- a/firmware/config/boards/hellen/hellen154hyundai/prepend.txt +++ b/firmware/config/boards/hellen/hellen154hyundai/prepend.txt @@ -41,3 +41,5 @@ #define ts_show_cylinder_12 false #define show_Hellen_hyundai_154 true + +#define CLT_UPPER_LIMIT 125 diff --git a/firmware/config/boards/hellen/hellen154hyundai_f7/prepend.txt b/firmware/config/boards/hellen/hellen154hyundai_f7/prepend.txt index afa39053ee7..7daebe95b25 100644 --- a/firmware/config/boards/hellen/hellen154hyundai_f7/prepend.txt +++ b/firmware/config/boards/hellen/hellen154hyundai_f7/prepend.txt @@ -41,3 +41,5 @@ #define ts_show_cylinder_12 false #define show_Hellen_hyundai_154 true + +#define CLT_UPPER_LIMIT 125 diff --git a/firmware/config/boards/subaru_eg33/prepend.txt b/firmware/config/boards/subaru_eg33/prepend.txt index 1de8bac6be4..a43b9345c3b 100644 --- a/firmware/config/boards/subaru_eg33/prepend.txt +++ b/firmware/config/boards/subaru_eg33/prepend.txt @@ -13,6 +13,6 @@ #define ts_show_output_diag true #define ts_show_mc33810 true - +#define CLT_UPPER_LIMIT 125 #define TS_BLOCK_READ_TIMEOUT 300 diff --git a/firmware/integration/rusefi_config.txt b/firmware/integration/rusefi_config.txt index c9924dbf024..04ef3fee2df 100644 --- a/firmware/integration/rusefi_config.txt +++ b/firmware/integration/rusefi_config.txt @@ -124,6 +124,10 @@ struct_no_prefix engine_configuration_s #define TRACTION_CONTROL_ETB_DROP_SIZE 6 +! air cooled engines go up to 250, see community board firmware which has that +! PnP boards for liquid cooled engines should override with '120' +#define CLT_UPPER_LIMIT 250 + #define LUA_PWM_COUNT 8 #define LUA_DIGITAL_INPUT_COUNT 8 @@ -430,7 +434,7 @@ uint16_t engineSnifferRpmThreshold;Engine sniffer would be disabled above this r uint8_t autoscale multisparkMaxRpm;Disable multispark above this engine speed.;"rpm", 50, 0, 0, 3000, 0 uint8_t autoscale maxAcRpm;Above this RPM, disable AC. Set to 0 to disable check.;"rpm", 50, 0, 0, 10000, 0 uint8_t maxAcTps;Above this TPS, disable AC. Set to 0 to disable check.;"%", 1, 0, 0, 100, 0 - uint8_t maxAcClt;Above this CLT, disable AC to prevent overheating the engine. Set to 0 to disable check.;"deg C", 1, 0, 0, 150, 0 + uint8_t maxAcClt;Above this CLT, disable AC to prevent overheating the engine. Set to 0 to disable check.;"deg C", 1, 0, 0, @@CLT_UPPER_LIMIT@@, 0 float compressionRatio;Just for reference really, not taken into account by any logic at this point;"CR", 1, 0, 0, 300, 1 uint16_t wastegatePositionMin;Voltage when the wastegate is closed.\nYou probably don't have one of these!;"mv", 1, 0, 0, 5000, 0 @@ -1316,7 +1320,7 @@ tle8888_mode_e tle8888mode; float[CRANKING_ENRICH_COUNT x CRANKING_ENRICH_COUNT] postCrankingFactor;;"mult", 1, 0, 1, 3, 2 float[CRANKING_ENRICH_COUNT] postCrankingDurationBins;;"count", 1, 0, 0, 1000, 0 - float[CRANKING_ENRICH_COUNT] postCrankingCLTBins;;"C", 1, 0, -100, 100, 0 + float[CRANKING_ENRICH_COUNT] postCrankingCLTBins;;"C", 1, 0, -100, @@CLT_UPPER_LIMIT@@, 0 ThermistorConf auxTempSensor1 ThermistorConf auxTempSensor2 @@ -1359,7 +1363,7 @@ custom stepper_num_micro_steps_e 1 bits, U08, @OFFSET@, [0:3], @@stepper_num_mic pid_s[CAMS_PER_BANK iterate] auxPid;VVT output PID\nTODO: rename to vvtPid float[8 iterate] injectorCorrectionPolynomial;;"", 1, 0, -1000, 1000, 4 #define PRIME_CURVE_COUNT 8 - int8_t[PRIME_CURVE_COUNT] primeBins;;"C", 1, 0, -40, 120, 0 + int8_t[PRIME_CURVE_COUNT] primeBins;;"C", 1, 0, -40, @@CLT_UPPER_LIMIT@@, 0 linear_sensor_s oilPressure; @@ -1384,7 +1388,7 @@ custom stepper_num_micro_steps_e 1 bits, U08, @OFFSET@, [0:3], @@stepper_num_mic int16_t coastingFuelCutRpmHigh;This sets the RPM above which fuel cut is active.;"rpm", 1, 0, 0, 5000, 0 int16_t coastingFuelCutRpmLow;This sets the RPM below which fuel cut is deactivated, this prevents jerking or issues transitioning to idle;"rpm", 1, 0, 0, 5000, 0 int16_t coastingFuelCutTps;Throttle position below which fuel cut is active. With an electronic throttle enabled, this checks against pedal position.;"%", 1, 0, 0, 20, 0 - int16_t coastingFuelCutClt;Fuel cutoff is disabled when the engine is cold.;"C", 1, 0, -100, 100, 0 + int16_t coastingFuelCutClt;Fuel cutoff is disabled when the engine is cold.;"C", 1, 0, -100, @@CLT_UPPER_LIMIT@@, 0 int16_t pidExtraForLowRpm;Increases PID reaction for RPM