auto-sync

This commit is contained in:
rusEfi 2016-03-11 14:03:23 -05:00
parent 30b2f2ebe0
commit b9ce32d39c
1 changed files with 13 additions and 7 deletions

View File

@ -112,20 +112,26 @@ floatms_t AccelEnrichmemnt::getTpsEnrichment(DECLARE_ENGINE_PARAMETER_F) {
float deltaMult = tpsTpsMap.getValue(tpsFrom, tpsTo);
float result;
if (d > engineConfiguration->tpsAccelEnrichmentThreshold) {
result = deltaMult;
} else if (d < -engineConfiguration->tpsDecelEnleanmentThreshold) {
result= d * engineConfiguration->tpsDecelEnleanmentMultiplier;
} else {
result = 0;
}
#if !EFI_UNIT_TEST
if (engineConfiguration->debugMode == DBG_TPS_ACCEL) {
tsOutputChannels.debugFloatField1 = tpsFrom;
tsOutputChannels.debugFloatField2 = tpsTo;
tsOutputChannels.debugFloatField3 = deltaMult;
tsOutputChannels.debugFloatField4 = result;
}
#endif
if (d > engineConfiguration->tpsAccelEnrichmentThreshold) {
return deltaMult;
}
if (d < -engineConfiguration->tpsDecelEnleanmentThreshold) {
return d * engineConfiguration->tpsDecelEnleanmentMultiplier;
}
return 0;
return result;
}
float AccelEnrichmemnt::getEngineLoadEnrichment(DECLARE_ENGINE_PARAMETER_F) {