diff --git a/firmware/config/boards/hellen/hellen64_miataNA6_94/board_configuration.cpp b/firmware/config/boards/hellen/hellen64_miataNA6_94/board_configuration.cpp index 90f4079a3e..b1f89bb770 100644 --- a/firmware/config/boards/hellen/hellen64_miataNA6_94/board_configuration.cpp +++ b/firmware/config/boards/hellen/hellen64_miataNA6_94/board_configuration.cpp @@ -36,6 +36,11 @@ static void setInjectorPins() { } engineConfiguration->injectionPinMode = OM_DEFAULT; + + engineConfiguration->clutchDownPin = GPIOC_4; // Clutch switch input + engineConfiguration->clutchDownPinMode = PI_PULLDOWN; + engineConfiguration->launchActivationMode = CLUTCH_INPUT_LAUNCH; + engineConfiguration->malfunctionIndicatorPin = GPIOG_4; //1E - Check Engine Light } static void setIgnitionPins() { diff --git a/firmware/config/engines/mazda_miata_1_6.cpp b/firmware/config/engines/mazda_miata_1_6.cpp index 4804853d39..847a3a0084 100644 --- a/firmware/config/engines/mazda_miata_1_6.cpp +++ b/firmware/config/engines/mazda_miata_1_6.cpp @@ -152,6 +152,10 @@ static void miataNAcommonEngineSettings(DECLARE_CONFIG_PARAMETER_SIGNATURE) { engineConfiguration->specs.cylindersCount = 4; engineConfiguration->specs.firingOrder = FO_1_3_4_2; engineConfiguration->compressionRatio = 9.1; + engineConfiguration->cranking.rpm = 450; + engineConfiguration->cylinderBore = 78; + engineConfiguration->knockBandCustom = 6.8; + engineConfiguration->vehicleWeight = 950; engineConfiguration->debugMode = DBG_TRIGGER_COUNTERS; diff --git a/firmware/controllers/algo/engine_configuration.cpp b/firmware/controllers/algo/engine_configuration.cpp index f321d4ed9d..3ab2812ddd 100644 --- a/firmware/controllers/algo/engine_configuration.cpp +++ b/firmware/controllers/algo/engine_configuration.cpp @@ -711,6 +711,8 @@ static void setDefaultEngineConfiguration(DECLARE_ENGINE_PARAMETER_SIGNATURE) { setDefaultBoostParameters(PASS_CONFIG_PARAMETER_SIGNATURE); #endif + engineConfiguration->afterCrankingIACtaperDuration = 35; + CONFIG(tachPulsePerRev) = 1; // OBD-II default rate is 500kbps