diff --git a/firmware/config/engines/GY6_139QMB.cpp b/firmware/config/engines/GY6_139QMB.cpp index fab1a1416d..de6750edb2 100644 --- a/firmware/config/engines/GY6_139QMB.cpp +++ b/firmware/config/engines/GY6_139QMB.cpp @@ -20,62 +20,12 @@ EXTERN_CONFIG; -static const fuel_table_t default_139qmb_fuel_table = { - -{ 6.000000, 6.000000, 6.000000, 6.000000, 6.000000, 6.000000, 6.000000, - 6.000000, 6.000000, 6.000000, 6.000000, 6.000000, 6.000000, 6.000000, - 6.000000, 6.000000 }, { 6.000000, 6.000000, 6.000000, 6.000000, - 6.000000, 6.000000, 6.000000, 6.000000, 6.000000, 6.000000, 6.000000, - 6.000000, 6.000000, 6.000000, 6.000000, 6.000000 }, { 6.000000, - 6.000000, 6.000000, 6.000000, 6.000000, 6.000000, 6.000000, 6.000000, - 6.000000, 6.000000, 6.000000, 6.000000, 6.000000, 6.000000, 6.000000, - 6.000000 }, { 6.000000, 6.000000, 6.000000, 6.000000, 6.000000, - 6.000000, 6.000000, 6.000000, 6.000000, 6.000000, 6.000000, 6.000000, - 6.000000, 6.000000, 6.000000, 6.000000 }, { 6.000000, 6.000000, - 6.000000, 6.000000, 6.000000, 6.000000, 6.000000, 6.000000, 6.000000, - 6.000000, 6.000000, 6.000000, 6.000000, 6.000000, 6.000000, 6.000000 }, - { 6.000000, 6.000000, 6.000000, 6.000000, 6.000000, 6.000000, 6.000000, - 6.000000, 6.000000, 6.000000, 6.000000, 6.000000, 6.000000, - 6.000000, 6.000000, 6.000000 }, { 6.000000, 6.000000, 6.000000, - 6.000000, 6.000000, 6.000000, 6.000000, 6.000000, 6.000000, - 6.000000, 6.000000, 6.000000, 6.000000, 6.000000, 6.000000, - 6.000000 }, { 6.000000, 6.000000, 6.000000, 6.000000, 6.000000, - 6.000000, 6.000000, 6.000000, 6.000000, 6.000000, 6.000000, - 6.000000, 6.000000, 6.000000, 6.000000, 6.000000 }, { 6.000000, - 6.000000, 6.000000, 6.000000, 6.000000, 6.000000, 6.000000, - 6.000000, 6.000000, 6.000000, 6.000000, 6.000000, 6.000000, - 6.000000, 6.000000, 6.000000 }, { 6.000000, 6.000000, 6.000000, - 6.000000, 6.000000, 6.000000, 6.000000, 6.000000, 6.000000, - 6.000000, 6.000000, 6.000000, 6.000000, 6.000000, 6.000000, - 6.000000 }, { 6.000000, 6.000000, 6.000000, 6.000000, 6.000000, - 6.000000, 6.000000, 6.000000, 6.000000, 6.000000, 6.000000, - 6.000000, 6.000000, 6.000000, 6.000000, 6.000000 }, { 6.000000, - 6.000000, 6.000000, 6.000000, 6.000000, 6.000000, 6.000000, - 6.000000, 6.000000, 6.000000, 6.000000, 6.000000, 6.000000, - 6.000000, 6.000000, 6.000000 }, { 6.000000, 6.000000, 6.000000, - 6.000000, 6.000000, 6.000000, 6.000000, 6.000000, 6.000000, - 6.000000, 6.000000, 6.000000, 6.000000, 6.000000, 6.000000, - 6.000000 }, { 6.000000, 6.000000, 6.000000, 6.000000, 6.000000, - 6.000000, 6.000000, 6.000000, 6.000000, 6.000000, 6.000000, - 6.000000, 6.000000, 6.000000, 6.000000, 6.000000 }, { 6.000000, - 6.000000, 6.000000, 6.000000, 6.000000, 6.000000, 6.000000, - 6.000000, 6.000000, 6.000000, 6.000000, 6.000000, 6.000000, - 6.000000, 6.000000, 6.000000 }, { 6.000000, 6.000000, 6.000000, - 6.000000, 6.000000, 6.000000, 6.000000, 6.000000, 6.000000, - 6.000000, 6.000000, 6.000000, 6.000000, 6.000000, 6.000000, - 6.000000 } - -}; - static void setDefault139qmbMaps(DECLARE_CONFIG_PARAMETER_SIGNATURE) { setFuelLoadBin(1.2, 4.4 PASS_CONFIG_PARAMETER_SUFFIX); setFuelRpmBin(1000, 11000 PASS_CONFIG_PARAMETER_SUFFIX); setTimingLoadBin(1.2, 4.4 PASS_CONFIG_PARAMETER_SUFFIX); setTimingRpmBin(1000, 11000 PASS_CONFIG_PARAMETER_SUFFIX); - - copyFuelTable(default_139qmb_fuel_table, config->fuelTable); - //copyTimingTable(default_139qmb_timing_table, config->ignitionTable); } void setGy6139qmbDefaultEngineConfiguration(DECLARE_CONFIG_PARAMETER_SIGNATURE) { @@ -87,7 +37,6 @@ void setGy6139qmbDefaultEngineConfiguration(DECLARE_CONFIG_PARAMETER_SIGNATURE) engineConfiguration->cranking.rpm = 1100; setTargetRpmCurve(2000 PASS_CONFIG_PARAMETER_SUFFIX); engineConfiguration->analogInputDividerCoefficient = 1; - engineConfiguration->fuelAlgorithm = LM_MAP; engineConfiguration->globalTriggerAngleOffset = 45; engineConfiguration->sensorChartMode = SC_MAP; engineConfiguration->specs.displacement = 0.072; // 72cc diff --git a/firmware/controllers/algo/advance_map.cpp b/firmware/controllers/algo/advance_map.cpp index 68fc648fbe..d48901fbf3 100644 --- a/firmware/controllers/algo/advance_map.cpp +++ b/firmware/controllers/algo/advance_map.cpp @@ -368,8 +368,7 @@ float getInitialAdvance(int rpm, float map, float advanceMax) { * this method builds a good-enough base timing advance map bases on a number of heuristics */ void buildTimingMap(float advanceMax DECLARE_CONFIG_PARAMETER_SUFFIX) { - if (engineConfiguration->fuelAlgorithm != LM_SPEED_DENSITY && - engineConfiguration->fuelAlgorithm != LM_MAP) { + if (engineConfiguration->fuelAlgorithm != LM_SPEED_DENSITY) { warning(CUSTOM_WRONG_ALGORITHM, "wrong algorithm for MAP-based timing"); return; } diff --git a/firmware/controllers/algo/auto_generated_enums.cpp b/firmware/controllers/algo/auto_generated_enums.cpp index 7c43d365c7..eb2ada7262 100644 --- a/firmware/controllers/algo/auto_generated_enums.cpp +++ b/firmware/controllers/algo/auto_generated_enums.cpp @@ -660,8 +660,6 @@ case Force_4_bytes_size_engine_load_mode: return "Force_4_bytes_size_engine_load_mode"; case LM_ALPHA_N: return "LM_ALPHA_N"; -case LM_MAP: - return "LM_MAP"; case LM_PLAIN_MAF: return "LM_PLAIN_MAF"; case LM_REAL_MAF: diff --git a/firmware/controllers/algo/rusefi_enums.h b/firmware/controllers/algo/rusefi_enums.h index 922668a028..81e459e65c 100644 --- a/firmware/controllers/algo/rusefi_enums.h +++ b/firmware/controllers/algo/rusefi_enums.h @@ -405,10 +405,6 @@ typedef enum { * Throttle Position Sensor value is used as engine load. http://en.wikipedia.org/wiki/Throttle_position_sensor */ LM_ALPHA_N = 1, - /** - * raw Manifold Absolute Pressure sensor value is used as engine load http://en.wikipedia.org/wiki/MAP_sensor - */ - LM_MAP = 2, /** * Speed Density algorithm - Engine Load is a function of MAP, VE and target AFR * http://articles.sae.org/8539/ diff --git a/firmware/controllers/math/engine_math.cpp b/firmware/controllers/math/engine_math.cpp index d9c00784d9..4d9b2d716f 100644 --- a/firmware/controllers/math/engine_math.cpp +++ b/firmware/controllers/math/engine_math.cpp @@ -65,9 +65,6 @@ float getEngineLoadT(DECLARE_ENGINE_PARAMETER_SIGNATURE) { } return getMafVoltage(PASS_ENGINE_PARAMETER_SIGNATURE); case LM_SPEED_DENSITY: - // SD engine load is used for timing lookup but not for fuel calculation, - // so fall thru to the MAP case. - case LM_MAP: return getMap(PASS_ENGINE_PARAMETER_SIGNATURE); case LM_ALPHA_N: return Sensor::get(SensorType::Tps1).value_or(0); diff --git a/firmware/integration/rusefi_config.txt b/firmware/integration/rusefi_config.txt index 6d673c487f..2091597a3c 100644 --- a/firmware/integration/rusefi_config.txt +++ b/firmware/integration/rusefi_config.txt @@ -447,7 +447,7 @@ int sensorSnifferRpmThreshold;+Disable sensor sniffer above this rpm;"RPM", int rpmHardLimit;set rpm_hard_limit X;"rpm", 1, 0, 0, 20000.0, 2 -#define engine_load_mode_e_enum "MAF", "Alpha-N/TPS", "MAP", "SPEED DENSITY", "MAF Air Charge" +#define engine_load_mode_e_enum "MAF", "Alpha-N/TPS", "INVALID", "SPEED DENSITY", "MAF Air Charge" custom engine_load_mode_e 4 bits, U32, @OFFSET@, [0:7], @@engine_load_mode_e_enum@@ diff --git a/firmware/tunerstudio/rusefi.input b/firmware/tunerstudio/rusefi.input index 69b1c267b3..50e6c00288 100644 --- a/firmware/tunerstudio/rusefi.input +++ b/firmware/tunerstudio/rusefi.input @@ -366,7 +366,6 @@ fileVersion = { @@TS_FILE_VERSION@@ } ; todo: generate this section programatically LM_PLAIN_MAF = {0}, LM_ALPHA_N = {1}, - LM_MAP = {2}, LM_SPEED_DENSITY = {3}, LM_REAL_MAF = {4} diff --git a/java_console/ui/src/com/rusefi/ui/FormulasPane.java b/java_console/ui/src/com/rusefi/ui/FormulasPane.java index 60b504d7ab..b055ed01d1 100644 --- a/java_console/ui/src/com/rusefi/ui/FormulasPane.java +++ b/java_console/ui/src/com/rusefi/ui/FormulasPane.java @@ -94,7 +94,6 @@ public class FormulasPane { enum engine_load_mode_e { LM_PLAIN_MAF("Plain MAF"), LM_ALPHA_N("Alpha-N/TPS"), - LM_MAP("Plain MAP"), LM_SPEED_DENSITY("Speed Density/MAP"), LM_REAL_MAF("MAF");