diff --git a/firmware/config/engines/hyundai.cpp b/firmware/config/engines/hyundai.cpp index 8558e867e9..486be909ee 100644 --- a/firmware/config/engines/hyundai.cpp +++ b/firmware/config/engines/hyundai.cpp @@ -10,6 +10,11 @@ #include "hyundai.h" void setHyundaiPb() { + engineConfiguration->specs.cylindersCount = 4; + engineConfiguration->specs.firingOrder = FO_1_3_4_2; + engineConfiguration->specs.displacement = 1.6; + strcpy(engineConfiguration->engineMake, ENGINE_MAKE_Hyundai); + strcpy(engineConfiguration->engineCode, "Gamma"); } static void commonGenesisCoupe() { diff --git a/firmware/controllers/algo/engine_configuration.cpp b/firmware/controllers/algo/engine_configuration.cpp index bcc864a1a1..ee577065eb 100644 --- a/firmware/controllers/algo/engine_configuration.cpp +++ b/firmware/controllers/algo/engine_configuration.cpp @@ -781,6 +781,9 @@ void resetConfigurationExt(configuration_callback_t boardCallback, engine_type_e case WASTEGATE_PROTEUS_TEST: proteusDcWastegateTest(); break; + case PROTEUS_HYUNDAI_PB: + setHyundaiPb(); + break; case PROTEUS_NISSAN_VQ35: setProteusNissanVQ(); break; diff --git a/firmware/controllers/algo/engine_types.h b/firmware/controllers/algo/engine_types.h index c8f231cca8..0c95e8dbdc 100644 --- a/firmware/controllers/algo/engine_types.h +++ b/firmware/controllers/algo/engine_types.h @@ -231,6 +231,8 @@ typedef enum __attribute__ ((__packed__)) { PROTEUS_NISSAN_VQ35 = 103, + PROTEUS_HYUNDAI_PB = 104, + // java code generator handles this value in a special way // also looks like 2 enums are either 1 byte or 4 bytes Force_4_bytes_size_engine_type = 70000,