From fe30aba1b5ff97e6eae6ebab36bb341a56a1f9bc Mon Sep 17 00:00:00 2001 From: rusefillc Date: Thu, 20 Apr 2023 16:52:49 -0400 Subject: [PATCH] pb --- firmware/config/engines/hyundai.cpp | 7 +++++++ firmware/config/engines/hyundai.h | 2 +- firmware/controllers/algo/engine_configuration.cpp | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/firmware/config/engines/hyundai.cpp b/firmware/config/engines/hyundai.cpp index a254d74947..499eff8dc1 100644 --- a/firmware/config/engines/hyundai.cpp +++ b/firmware/config/engines/hyundai.cpp @@ -8,6 +8,7 @@ #include "pch.h" #include "hyundai.h" +#include "proteus_meta.h" void setHyundaiPb() { engineConfiguration->specs.cylindersCount = 4; @@ -17,6 +18,12 @@ void setHyundaiPb() { strcpy(engineConfiguration->engineCode, "Gamma"); } +void setProteusHyundaiPb() { + engineConfiguration->triggerInputPins[0] = PROTEUS_VR_1; + engineConfiguration->camInputs[0] = PROTEUS_DIGITAL_1; + engineConfiguration->camInputs[0] = PROTEUS_DIGITAL_2; +} + static void commonGenesisCoupe() { strncpy(config->luaScript, R"( diff --git a/firmware/config/engines/hyundai.h b/firmware/config/engines/hyundai.h index e78370575f..299c913233 100644 --- a/firmware/config/engines/hyundai.h +++ b/firmware/config/engines/hyundai.h @@ -10,4 +10,4 @@ void setGenesisCoupeBK1(); void setGenesisCoupeBK2(); -void setHyundaiPb(); +void setProteusHyundaiPb(); diff --git a/firmware/controllers/algo/engine_configuration.cpp b/firmware/controllers/algo/engine_configuration.cpp index bd2f0c4764..330532fdca 100644 --- a/firmware/controllers/algo/engine_configuration.cpp +++ b/firmware/controllers/algo/engine_configuration.cpp @@ -782,7 +782,7 @@ void resetConfigurationExt(configuration_callback_t boardCallback, engine_type_e proteusDcWastegateTest(); break; case PROTEUS_HYUNDAI_PB: - setHyundaiPb(); + setProteusHyundaiPb(); break; case PROTEUS_NISSAN_VQ35: setProteusNissanVQ();