From 841b6de4c6c6571ea1780f451762d5f315c9d71d Mon Sep 17 00:00:00 2001 From: rusefi Date: Sun, 7 May 2017 18:37:44 -0400 Subject: [PATCH] better cranking defaults --- firmware/config/engines/mazda_miata_vvt.cpp | 7 ++++--- .../controllers/algo/engine_configuration.cpp | 18 +++++++++++------- 2 files changed, 15 insertions(+), 10 deletions(-) diff --git a/firmware/config/engines/mazda_miata_vvt.cpp b/firmware/config/engines/mazda_miata_vvt.cpp index a9bb7f8679..f191d0deba 100644 --- a/firmware/config/engines/mazda_miata_vvt.cpp +++ b/firmware/config/engines/mazda_miata_vvt.cpp @@ -416,12 +416,12 @@ void setMazdaMiata2003EngineConfigurationNewBoard(DECLARE_ENGINE_PARAMETER_F) { setEgoSensor(ES_14Point7_Free PASS_ENGINE_PARAMETER); - // set cranking_fuel 5 - engineConfiguration->cranking.baseFuel = 5; // higher value for return system NA conversion since lower fuel pressure + // set cranking_fuel 13 + engineConfiguration->cranking.baseFuel = 13; // higher value for return system NA conversion since lower fuel pressure engineConfiguration->vbattDividerCoeff = 9.30; // actual value on my new board engineConfiguration->useConstantDwellDuringCranking = true; - engineConfiguration->ignitionDwellForCrankingMs = 6; + engineConfiguration->ignitionDwellForCrankingMs = 8; engineConfiguration->vvtOffset = 97; @@ -430,4 +430,5 @@ void setMazdaMiata2003EngineConfigurationNewBoard(DECLARE_ENGINE_PARAMETER_F) { // set idle_position 30 boardConfiguration->manIdlePosition = 30; + engineConfiguration->crankingIdleAdjustment = 30; } diff --git a/firmware/controllers/algo/engine_configuration.cpp b/firmware/controllers/algo/engine_configuration.cpp index 9b7bce0e1c..4415fa6eb0 100644 --- a/firmware/controllers/algo/engine_configuration.cpp +++ b/firmware/controllers/algo/engine_configuration.cpp @@ -541,14 +541,18 @@ void setDefaultConfiguration(DECLARE_ENGINE_PARAMETER_F) { config->crankingFuelCoef[7] = 1; config->crankingFuelBins[7] = 90; - config->crankingCycleCoef[0] = 1.5; - config->crankingCycleBins[0] = 10; - config->crankingCycleCoef[1] = 1.2; - config->crankingCycleBins[1] = 31; - config->crankingCycleCoef[2] = 1; - config->crankingCycleBins[2] = 52; + config->crankingCycleCoef[0] = 1; + config->crankingCycleBins[0] = 4; + + config->crankingCycleCoef[1] = 0.9; + config->crankingCycleBins[1] = 8; + + config->crankingCycleCoef[2] = 0.7; + config->crankingCycleBins[2] = 12; + config->crankingCycleCoef[3] = 0.5; - config->crankingCycleBins[3] = 73; + config->crankingCycleBins[3] = 16; + config->crankingCycleCoef[4] = 0.5; config->crankingCycleBins[4] = 74; config->crankingCycleCoef[5] = 0.5;