From ec17015342f640cf8b436595e0e959fbdc674509 Mon Sep 17 00:00:00 2001 From: rusefi Date: Sat, 6 May 2017 16:11:45 -0400 Subject: [PATCH] prometheus --- firmware/config/engines/engines.mk | 1 + firmware/config/engines/prometheus.cpp | 17 +++++++++++++++++ firmware/config/engines/prometheus.h | 14 ++++++++++++++ .../controllers/algo/auto_generated_enums.cpp | 2 ++ .../controllers/algo/engine_configuration.cpp | 4 ++++ firmware/controllers/algo/rusefi_enums.h | 2 ++ 6 files changed, 40 insertions(+) create mode 100644 firmware/config/engines/prometheus.cpp create mode 100644 firmware/config/engines/prometheus.h diff --git a/firmware/config/engines/engines.mk b/firmware/config/engines/engines.mk index e4171bb51e..1eb01631e1 100644 --- a/firmware/config/engines/engines.mk +++ b/firmware/config/engines/engines.mk @@ -23,6 +23,7 @@ ENGINES_SRC_CPP = $(PROJECT_DIR)/config/engines/ford_aspire.cpp \ $(PROJECT_DIR)/config/engines/rover_v8.cpp \ $(PROJECT_DIR)/config/engines/mazda_323.cpp \ $(PROJECT_DIR)/config/engines/mazda_626.cpp \ + $(PROJECT_DIR)/config/engines/prometheus.cpp \ $(PROJECT_DIR)/config/engines/saturn_ion.cpp \ $(PROJECT_DIR)/config/engines/sachs.cpp \ $(PROJECT_DIR)/config/engines/test_engine.cpp \ diff --git a/firmware/config/engines/prometheus.cpp b/firmware/config/engines/prometheus.cpp new file mode 100644 index 0000000000..a2ca889d68 --- /dev/null +++ b/firmware/config/engines/prometheus.cpp @@ -0,0 +1,17 @@ +/* + * prometheus.cpp + * + * set engine_type 100 + * + * @date May 6, 2017 + * @author Andrey Belomutskiy, (c) 2012-2017 + */ + +#include "prometheus.h" + +void setPrometheusDefaults(DECLARE_ENGINE_PARAMETER_F) { + +} + + + diff --git a/firmware/config/engines/prometheus.h b/firmware/config/engines/prometheus.h new file mode 100644 index 0000000000..05e94ce3fb --- /dev/null +++ b/firmware/config/engines/prometheus.h @@ -0,0 +1,14 @@ +/* + * prometheus.h + * + * @date May 6, 2017 + * @author Andrey Belomutskiy, (c) 2012-2017 + */ + +#ifndef CONFIG_ENGINES_PROMETHEUS_H_ +#define CONFIG_ENGINES_PROMETHEUS_H_ + +#include "engine.h" +void setPrometheusDefaults(DECLARE_ENGINE_PARAMETER_F); + +#endif /* CONFIG_ENGINES_PROMETHEUS_H_ */ diff --git a/firmware/controllers/algo/auto_generated_enums.cpp b/firmware/controllers/algo/auto_generated_enums.cpp index 5da81fe257..2dfb14f123 100644 --- a/firmware/controllers/algo/auto_generated_enums.cpp +++ b/firmware/controllers/algo/auto_generated_enums.cpp @@ -120,6 +120,8 @@ case MAZDA_MIATA_2003: return "miata 2003 OLD"; case MAZDA_MIATA_2003_BETTER: return "miata 2003"; +case PROMETHEUS_DEFAULTS: + return "PROMETHEUS"; case TEST_ENGINE_VVT: return "TEST_ENGINE_VVT"; case VW_ABA: diff --git a/firmware/controllers/algo/engine_configuration.cpp b/firmware/controllers/algo/engine_configuration.cpp index 9db0fb827a..c642ca568a 100644 --- a/firmware/controllers/algo/engine_configuration.cpp +++ b/firmware/controllers/algo/engine_configuration.cpp @@ -74,6 +74,7 @@ #include "citroenBerlingoTU3JP.h" #include "rover_v8.h" #include "mitsubishi.h" +#include "prometheus.h" #include "subaru.h" #include "test_engine.h" #include "sachs.h" @@ -1044,6 +1045,9 @@ void resetConfigurationExt(Logging * logger, engine_type_e engineType DECLARE_EN case MAZDA_MIATA_2003_BETTER: setMazdaMiata2003EngineConfigurationNewBoard(PASS_ENGINE_PARAMETER_F); break; + case PROMETHEUS_DEFAULTS: + setPrometheusDefaults(PASS_ENGINE_PARAMETER_F); + break; case TEST_ENGINE_VVT: setTestVVTEngineConfiguration(PASS_ENGINE_PARAMETER_F); break; diff --git a/firmware/controllers/algo/rusefi_enums.h b/firmware/controllers/algo/rusefi_enums.h index 6a14e7686e..db2217507f 100644 --- a/firmware/controllers/algo/rusefi_enums.h +++ b/firmware/controllers/algo/rusefi_enums.h @@ -158,6 +158,8 @@ typedef enum { MAZDA_MIATA_2003_BETTER = 54, + PROMETHEUS_DEFAULTS = 100, + Force_4b_engine_type = ENUM_32_BITS, } engine_type_e;