my take on useRunningMathForCranking
This commit is contained in:
parent
83d7085f40
commit
f929301d18
|
@ -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
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue