auto-sync

This commit is contained in:
rusEfi 2016-03-11 14:03:23 -05:00
parent 88478aea92
commit 09a2a885bc
2 changed files with 15 additions and 9 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) {

View File

@ -880,8 +880,8 @@ fileVersion = { 20160122 }
upDownLabel = "(RICHER)", "(LEANER)"
table = tpsTpsAccelTbl, tpsTpsAccelMap, "TPS acceleration", 1
xBins = tpsTpsAccelFromRpmBins, tps
yBins = tpsTpsAccelToRpmBins, tps
xBins = tpsTpsAccelFromRpmBins, TPS
yBins = tpsTpsAccelToRpmBins, TPS
zBins = tpsTpsAccelTable