From bd5ff4b5a5e4e5d58b1dcd1cafee2c4a2476514f Mon Sep 17 00:00:00 2001 From: Andrey Date: Fri, 2 Jul 2021 16:31:10 -0400 Subject: [PATCH] Nissan progress --- firmware/config/engines/nissan_vq.cpp | 2 ++ firmware/controllers/algo/engine_configuration.cpp | 1 + unit_tests/tests/trigger/test_nissan_vq_vvt.cpp | 1 + unit_tests/unit_test_rules.mk | 2 +- 4 files changed, 5 insertions(+), 1 deletion(-) diff --git a/firmware/config/engines/nissan_vq.cpp b/firmware/config/engines/nissan_vq.cpp index aa28718f3d..c542eb1435 100644 --- a/firmware/config/engines/nissan_vq.cpp +++ b/firmware/config/engines/nissan_vq.cpp @@ -7,6 +7,8 @@ #include "nissan_vq.h" +EXTERN_CONFIG; + void setHellen121nissan(DECLARE_CONFIG_PARAMETER_SIGNATURE) { engineConfiguration->trigger.type = TT_NISSAN_VQ; diff --git a/firmware/controllers/algo/engine_configuration.cpp b/firmware/controllers/algo/engine_configuration.cpp index 4e1c2217e5..4efbe3b8e4 100644 --- a/firmware/controllers/algo/engine_configuration.cpp +++ b/firmware/controllers/algo/engine_configuration.cpp @@ -50,6 +50,7 @@ #include "ford_1995_inline_6.h" #include "nissan_primera.h" +#include "nissan_vq.h" #include "honda_accord.h" #include "GY6_139QMB.h" diff --git a/unit_tests/tests/trigger/test_nissan_vq_vvt.cpp b/unit_tests/tests/trigger/test_nissan_vq_vvt.cpp index 3fcc2f5fa5..ac11673e01 100644 --- a/unit_tests/tests/trigger/test_nissan_vq_vvt.cpp +++ b/unit_tests/tests/trigger/test_nissan_vq_vvt.cpp @@ -8,5 +8,6 @@ #include "engine_test_helper.h" TEST(nissan, vq_vvt) { + WITH_ENGINE_TEST_HELPER(HELLEN_121_NISSAN); } diff --git a/unit_tests/unit_test_rules.mk b/unit_tests/unit_test_rules.mk index 20f99c54c2..50ce649ad9 100644 --- a/unit_tests/unit_test_rules.mk +++ b/unit_tests/unit_test_rules.mk @@ -29,7 +29,7 @@ endif USE_OPT += -DEFI_UNIT_TEST=1 -DEFI_PROD_CODE=0 -DEFI_SIMULATOR=0 # Pretend we are all different hardware so that all canned engine configs are included -USE_OPT += -DHW_MICRO_RUSEFI=1 -DHW_PROTEUS=1 -DHW_FRANKENSO=1 +USE_OPT += -DHW_MICRO_RUSEFI=1 -DHW_PROTEUS=1 -DHW_FRANKENSO=1 -DHW_HELLEN=1 ifeq ($(CCACHE_DIR),) $(info No CCACHE_DIR)