auto-sync

This commit is contained in:
rusEfi 2015-08-19 01:01:23 -04:00
parent 34a4302ac9
commit 67a065d730
1 changed files with 7 additions and 2 deletions

View File

@ -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;
} }