auto-sync
This commit is contained in:
parent
34a4302ac9
commit
67a065d730
|
@ -220,6 +220,11 @@ floatms_t getCrankingFuel3(float coolantTemperature,
|
||||||
float durationCoef = interpolate2d(revolutionCounterSinceStart, config->crankingCycleBins,
|
float durationCoef = interpolate2d(revolutionCounterSinceStart, config->crankingCycleBins,
|
||||||
config->crankingCycleCoef, CRANKING_CURVE_SIZE);
|
config->crankingCycleCoef, CRANKING_CURVE_SIZE);
|
||||||
|
|
||||||
return interpolate2d(coolantTemperature, config->crankingFuelBins,
|
float coolantTempCoef = interpolate2d(coolantTemperature, config->crankingFuelBins,
|
||||||
config->crankingFuelCoef, CRANKING_CURVE_SIZE) * baseCrankingFuel * durationCoef;
|
config->crankingFuelCoef, CRANKING_CURVE_SIZE);
|
||||||
|
|
||||||
|
float tpsCoef = interpolate2d(getTPS(), engineConfiguration->crankingTpsBins,
|
||||||
|
engineConfiguration->crankingTpsCoef, CRANKING_CURVE_SIZE);
|
||||||
|
|
||||||
|
return baseCrankingFuel * durationCoef * coolantTempCoef * tpsCoef;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue