From 6bc882f30a905226bddfcc43051f1694f9127ee3 Mon Sep 17 00:00:00 2001 From: rusefillc Date: Fri, 22 Jan 2021 02:02:16 -0500 Subject: [PATCH] Hellen72 --- firmware/config/boards/hellen/hellen72/prepend.txt | 1 + firmware/config/engines/mazda_miata_vvt.cpp | 6 ++++++ firmware/config/engines/mazda_miata_vvt.h | 6 ++++++ firmware/controllers/algo/engine_configuration.cpp | 1 + 4 files changed, 14 insertions(+) diff --git a/firmware/config/boards/hellen/hellen72/prepend.txt b/firmware/config/boards/hellen/hellen72/prepend.txt index 93da127dbb..a13f30d336 100644 --- a/firmware/config/boards/hellen/hellen72/prepend.txt +++ b/firmware/config/boards/hellen/hellen72/prepend.txt @@ -21,4 +21,5 @@ #define show_test_presets false #define show_Frankenso_presets false +#define show_microRusEFI_presets false #define show_Proteus_presets false diff --git a/firmware/config/engines/mazda_miata_vvt.cpp b/firmware/config/engines/mazda_miata_vvt.cpp index 3faa2de23b..8882f4bedd 100644 --- a/firmware/config/engines/mazda_miata_vvt.cpp +++ b/firmware/config/engines/mazda_miata_vvt.cpp @@ -821,3 +821,9 @@ void setMiataNB2_ProteusEngineConfiguration(DECLARE_CONFIG_PARAMETER_SIGNATURE) } #endif // HW_PROTEUS + +#if HW_HELLEN +void setMiataNB2_Hellen72(DECLARE_CONFIG_PARAMETER_SIGNATURE) { + strcpy(CONFIG(vehicleName), "H72 test"); +} +#endif // HW_HELLEN diff --git a/firmware/config/engines/mazda_miata_vvt.h b/firmware/config/engines/mazda_miata_vvt.h index 9c93808e13..d0848d4d15 100644 --- a/firmware/config/engines/mazda_miata_vvt.h +++ b/firmware/config/engines/mazda_miata_vvt.h @@ -52,4 +52,10 @@ void setMiataNB2_Proteus_TCU(DECLARE_CONFIG_PARAMETER_SIGNATURE); */ void setMiataNB2_ProteusEngineConfiguration(DECLARE_CONFIG_PARAMETER_SIGNATURE); +/** + * set engine_type 69 + */ +void setMiataNB2_Hellen72(DECLARE_CONFIG_PARAMETER_SIGNATURE); + + diff --git a/firmware/controllers/algo/engine_configuration.cpp b/firmware/controllers/algo/engine_configuration.cpp index 43ae30bf00..70d96ca221 100644 --- a/firmware/controllers/algo/engine_configuration.cpp +++ b/firmware/controllers/algo/engine_configuration.cpp @@ -1230,6 +1230,7 @@ void resetConfigurationExt(Logging * logger, configuration_callback_t boardCallb #endif // HW_PROTEUS #if HW_HELLEN case HELLEN_NB2: + setMiataNB2_Hellen72(PASS_CONFIG_PARAMETER_SIGNATURE); break; #endif // HW_HELLEN #if HW_FRANKENSO