From b9e845db0c56f941825247ebd548d5ea8b8388fa Mon Sep 17 00:00:00 2001 From: rusefi Date: Sat, 2 Dec 2017 20:59:31 -0500 Subject: [PATCH] another board testing approach --- firmware/config/engines/mazda_miata_vvt.cpp | 5 +++++ firmware/config/engines/mazda_miata_vvt.h | 1 + firmware/controllers/algo/auto_generated_enums.cpp | 2 ++ firmware/controllers/algo/engine_configuration.cpp | 3 +++ firmware/controllers/algo/rusefi_enums.h | 2 ++ 5 files changed, 13 insertions(+) diff --git a/firmware/config/engines/mazda_miata_vvt.cpp b/firmware/config/engines/mazda_miata_vvt.cpp index c5f9c266aa..4750587092 100644 --- a/firmware/config/engines/mazda_miata_vvt.cpp +++ b/firmware/config/engines/mazda_miata_vvt.cpp @@ -456,3 +456,8 @@ void setMazdaMiata2003EngineConfigurationNaFuelRail(DECLARE_ENGINE_PARAMETER_SIG boardConfiguration->manIdlePosition = 30; engineConfiguration->crankingIACposition = 65; } + +void setMazdaMiata2003EngineConfigurationBoardTest(DECLARE_ENGINE_PARAMETER_SIGNATURE) { + setMazdaMiata2003EngineConfiguration(PASS_ENGINE_PARAMETER_SIGNATURE); + +} diff --git a/firmware/config/engines/mazda_miata_vvt.h b/firmware/config/engines/mazda_miata_vvt.h index 2841c7b26c..09b8dddfe5 100644 --- a/firmware/config/engines/mazda_miata_vvt.h +++ b/firmware/config/engines/mazda_miata_vvt.h @@ -17,5 +17,6 @@ void setMazdaMiataNbTpsTps(DECLARE_ENGINE_PARAMETER_SIGNATURE); void setMazdaMiata2003EngineConfiguration(DECLARE_ENGINE_PARAMETER_SIGNATURE); void setMazdaMiata2003EngineConfigurationNaFuelRail(DECLARE_ENGINE_PARAMETER_SIGNATURE); +void setMazdaMiata2003EngineConfigurationBoardTest(DECLARE_ENGINE_PARAMETER_SIGNATURE); #endif /* CONFIG_ENGINES_MAZDA_MIATA_VVT_H_ */ diff --git a/firmware/controllers/algo/auto_generated_enums.cpp b/firmware/controllers/algo/auto_generated_enums.cpp index 8c3dea1a38..673eee77c9 100644 --- a/firmware/controllers/algo/auto_generated_enums.cpp +++ b/firmware/controllers/algo/auto_generated_enums.cpp @@ -132,6 +132,8 @@ case MAZDA_MIATA_2003: return "miata 2003"; case MAZDA_MIATA_2003_NA_RAIL: return "miata 2003 NArail"; +case MAZDA_MIATA_2003_BOARD_TEST: + return "miata 2003 bt"; case PROMETHEUS_DEFAULTS: return "PROMETHEUS"; case TEST_ENGINE_VVT: diff --git a/firmware/controllers/algo/engine_configuration.cpp b/firmware/controllers/algo/engine_configuration.cpp index 0c2f1b1db4..9bfa452b93 100644 --- a/firmware/controllers/algo/engine_configuration.cpp +++ b/firmware/controllers/algo/engine_configuration.cpp @@ -1168,6 +1168,9 @@ void resetConfigurationExt(Logging * logger, engine_type_e engineType DECLARE_EN case MAZDA_MIATA_2003_NA_RAIL: setMazdaMiata2003EngineConfigurationNaFuelRail(PASS_ENGINE_PARAMETER_SIGNATURE); break; + case MAZDA_MIATA_2003_BOARD_TEST: + setMazdaMiata2003EngineConfigurationBoardTest(PASS_ENGINE_PARAMETER_SIGNATURE); + break; case PROMETHEUS_DEFAULTS: setPrometheusDefaults(PASS_ENGINE_PARAMETER_SIGNATURE); break; diff --git a/firmware/controllers/algo/rusefi_enums.h b/firmware/controllers/algo/rusefi_enums.h index 208a8709e8..9ed66acf1e 100644 --- a/firmware/controllers/algo/rusefi_enums.h +++ b/firmware/controllers/algo/rusefi_enums.h @@ -165,6 +165,8 @@ typedef enum { */ MAZDA_MIATA_2003_NA_RAIL = 54, + MAZDA_MIATA_2003_BOARD_TEST = 55, + PROMETHEUS_DEFAULTS = 100, Force_4b_engine_type = ENUM_32_BITS,