From 32c09b2f21ef53005d20d904824cb9e9c88967e0 Mon Sep 17 00:00:00 2001 From: rusefi Date: Sat, 13 Aug 2022 23:37:02 -0400 Subject: [PATCH] NB1 Base Map, no sync, no start fix #4440 --- firmware/config/engines/mazda_miata_vvt.cpp | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/firmware/config/engines/mazda_miata_vvt.cpp b/firmware/config/engines/mazda_miata_vvt.cpp index 7028bd6312..16779eecf4 100644 --- a/firmware/config/engines/mazda_miata_vvt.cpp +++ b/firmware/config/engines/mazda_miata_vvt.cpp @@ -264,6 +264,11 @@ static void setCommonMazdaNB() { engineConfiguration->useOnlyRisingEdgeForTrigger = true; engineConfiguration->trigger.type = TT_MIATA_VVT; + // set vvt_mode 3 + engineConfiguration->vvtMode[0] = VVT_MIATA_NB; + engineConfiguration->vvtOffsets[0] = 98; // 2003 red car value + engineConfiguration->vvtCamSensorUseRise = true; + engineConfiguration->ignitionDwellForCrankingMs = 4; // set cranking_fuel 27.5 engineConfiguration->cranking.baseFuel = 27.5; // this value for return-less NB miata fuel system, higher pressure @@ -386,12 +391,6 @@ static void setMazdaMiataEngineNB2Defaults() { engineConfiguration->crankingIACposition = 60; engineConfiguration->afterCrankingIACtaperDuration = 250; - - engineConfiguration->vvtCamSensorUseRise = true; - // set vvt_mode 3 - engineConfiguration->vvtMode[0] = VVT_MIATA_NB; - engineConfiguration->vvtOffsets[0] = 98; // 2003 red car value - setCommonMazdaNB(); setMazdaNB2VVTSettings(); @@ -595,9 +594,6 @@ static void setMiataNB2_MRE_common() { engineConfiguration->ignitionDwellForCrankingMs = 8; - engineConfiguration->vvtOffsets[0] = 97; - - // # TLE8888 high current low side: VVT1 IN10 / OUT6 // Gpio::TLE8888_PIN_6: "7 - Lowside 1" engineConfiguration->vvtPins[0] = Gpio::TLE8888_PIN_6; // VVT solenoid control