better handling of weird TPS values
This commit is contained in:
parent
8c1c892907
commit
9d4f6522e2
|
@ -345,7 +345,7 @@ floatms_t getCrankingFuel3(float coolantTemperature,
|
|||
|
||||
percent_t tps = getTPS(PASS_ENGINE_PARAMETER_SIGNATURE);
|
||||
|
||||
float tpsCoef = cisnan(tps) ? 1 : interpolate2d("crankTps", , engineConfiguration->crankingTpsBins,
|
||||
float tpsCoef = cisnan(tps) ? 1 : interpolate2d("crankTps", tps, engineConfiguration->crankingTpsBins,
|
||||
engineConfiguration->crankingTpsCoef, CRANKING_CURVE_SIZE);
|
||||
|
||||
return baseCrankingFuel * durationCoef * coolantTempCoef * tpsCoef;
|
||||
|
|
Loading…
Reference in New Issue