auto-sync
This commit is contained in:
parent
88478aea92
commit
09a2a885bc
|
@ -112,20 +112,26 @@ floatms_t AccelEnrichmemnt::getTpsEnrichment(DECLARE_ENGINE_PARAMETER_F) {
|
||||||
float deltaMult = tpsTpsMap.getValue(tpsFrom, tpsTo);
|
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 !EFI_UNIT_TEST
|
||||||
if (engineConfiguration->debugMode == DBG_TPS_ACCEL) {
|
if (engineConfiguration->debugMode == DBG_TPS_ACCEL) {
|
||||||
tsOutputChannels.debugFloatField1 = tpsFrom;
|
tsOutputChannels.debugFloatField1 = tpsFrom;
|
||||||
tsOutputChannels.debugFloatField2 = tpsTo;
|
tsOutputChannels.debugFloatField2 = tpsTo;
|
||||||
|
tsOutputChannels.debugFloatField3 = deltaMult;
|
||||||
|
tsOutputChannels.debugFloatField4 = result;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (d > engineConfiguration->tpsAccelEnrichmentThreshold) {
|
|
||||||
return deltaMult;
|
return result;
|
||||||
}
|
|
||||||
if (d < -engineConfiguration->tpsDecelEnleanmentThreshold) {
|
|
||||||
return d * engineConfiguration->tpsDecelEnleanmentMultiplier;
|
|
||||||
}
|
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
float AccelEnrichmemnt::getEngineLoadEnrichment(DECLARE_ENGINE_PARAMETER_F) {
|
float AccelEnrichmemnt::getEngineLoadEnrichment(DECLARE_ENGINE_PARAMETER_F) {
|
||||||
|
|
|
@ -880,8 +880,8 @@ fileVersion = { 20160122 }
|
||||||
upDownLabel = "(RICHER)", "(LEANER)"
|
upDownLabel = "(RICHER)", "(LEANER)"
|
||||||
|
|
||||||
table = tpsTpsAccelTbl, tpsTpsAccelMap, "TPS acceleration", 1
|
table = tpsTpsAccelTbl, tpsTpsAccelMap, "TPS acceleration", 1
|
||||||
xBins = tpsTpsAccelFromRpmBins, tps
|
xBins = tpsTpsAccelFromRpmBins, TPS
|
||||||
yBins = tpsTpsAccelToRpmBins, tps
|
yBins = tpsTpsAccelToRpmBins, TPS
|
||||||
zBins = tpsTpsAccelTable
|
zBins = tpsTpsAccelTable
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue