my take on useRunningMathForCranking

This commit is contained in:
rusefi 2020-02-18 10:47:39 -05:00
parent 83d7085f40
commit f929301d18
1 changed files with 6 additions and 1 deletions

View File

@ -52,7 +52,12 @@ DISPLAY_TEXT(eol);
DISPLAY(DISPLAY_IF(isCrankingState)) floatms_t getCrankingFuel3(float coolantTemperature, DISPLAY(DISPLAY_IF(isCrankingState)) floatms_t getCrankingFuel3(float coolantTemperature,
uint32_t revolutionCounterSinceStart DECLARE_ENGINE_PARAMETER_SUFFIX) { uint32_t revolutionCounterSinceStart DECLARE_ENGINE_PARAMETER_SUFFIX) {
// these magic constants are in Celsius // these magic constants are in Celsius
float baseCrankingFuel = engineConfiguration->cranking.baseFuel; float baseCrankingFuel;
if (engineConfiguration->useRunningMathForCranking) {
baseCrankingFuel = engine->engineState.running.baseFuel;
} else {
baseCrankingFuel = engineConfiguration->cranking.baseFuel;
}
/** /**
* Cranking fuel changes over time * Cranking fuel changes over time
*/ */