diff --git a/firmware/config/engines/nissan_vq.cpp b/firmware/config/engines/nissan_vq.cpp new file mode 100644 index 0000000000..aa28718f3d --- /dev/null +++ b/firmware/config/engines/nissan_vq.cpp @@ -0,0 +1,14 @@ +/* + * @file nissan_vq.cpp + * + * Created on: Jul 2, 2021 + * @author Andrey Belomutskiy, (c) 2012-2021 + */ + +#include "nissan_vq.h" + +void setHellen121nissan(DECLARE_CONFIG_PARAMETER_SIGNATURE) { + engineConfiguration->trigger.type = TT_NISSAN_VQ; + + engineConfiguration->vvtMode[0] = VVT_NISSAN_VQ; +} diff --git a/firmware/config/engines/nissan_vq.h b/firmware/config/engines/nissan_vq.h new file mode 100644 index 0000000000..0fed5dd805 --- /dev/null +++ b/firmware/config/engines/nissan_vq.h @@ -0,0 +1,12 @@ +/* + * @file nissan_vq.h + * + * Created on: Jul 2, 2021 + * @author Andrey Belomutskiy, (c) 2012-2021 + */ + +#pragma once + +#include "engine_configuration.h" + +void setHellen121nissan(DECLARE_CONFIG_PARAMETER_SIGNATURE); diff --git a/unit_tests/tests/tests.mk b/unit_tests/tests/tests.mk index 3c07cf1d37..d8e7810fbd 100644 --- a/unit_tests/tests/tests.mk +++ b/unit_tests/tests/tests.mk @@ -11,6 +11,7 @@ TESTS_SRC_CPP = \ tests/trigger/test_real_volkswagen.cpp \ tests/trigger/test_rpm_multiplier.cpp \ tests/trigger/test_quad_cam.cpp \ + tests/trigger/test_nissan_vq_vvt.cpp \ tests/trigger/test_override_gaps.cpp \ tests/trigger/test_injection_scheduling.cpp \ tests/ignition_injection/injection_mode_transition.cpp \ diff --git a/unit_tests/tests/trigger/test_nissan_vq_vvt.cpp b/unit_tests/tests/trigger/test_nissan_vq_vvt.cpp new file mode 100644 index 0000000000..3fcc2f5fa5 --- /dev/null +++ b/unit_tests/tests/trigger/test_nissan_vq_vvt.cpp @@ -0,0 +1,12 @@ +/* + * @file test_nissan_vq_vvt.cpp + * + * Created on: Jul 2, 2021 + * @author Andrey Belomutskiy, (c) 2012-2021 + */ + +#include "engine_test_helper.h" + +TEST(nissan, vq_vvt) { + +}