RPM correction/multiplier for Accel Enrich fix #4760
This commit is contained in:
parent
57ad9b7311
commit
743bdad7e0
|
@ -32,6 +32,7 @@ Release template (copy/paste this for new release):
|
||||||
- Electronic throttle supply voltage compensation, giving more consistent behavior as battery voltage changes #4838
|
- Electronic throttle supply voltage compensation, giving more consistent behavior as battery voltage changes #4838
|
||||||
- VR trigger input oscilloscope for boards with "discrete VR" hardware (AlphaX ECUs, some Hellen) #4885
|
- VR trigger input oscilloscope for boards with "discrete VR" hardware (AlphaX ECUs, some Hellen) #4885
|
||||||
- Jammed ETB detection #4873
|
- Jammed ETB detection #4873
|
||||||
|
- RPM correction/multiplier for Accel Enrich #4760
|
||||||
|
|
||||||
## December 2022 Release - "Day 289"
|
## December 2022 Release - "Day 289"
|
||||||
|
|
||||||
|
|
|
@ -33,7 +33,8 @@ floatms_t TpsAccelEnrichment::getTpsEnrichment() {
|
||||||
// If disabled, return 0.
|
// If disabled, return 0.
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
if (!engine->rpmCalculator.isRunning()) {
|
int rpm = Sensor::getOrZero(SensorType::Rpm);
|
||||||
|
if (rpm == 0) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -82,7 +83,13 @@ floatms_t TpsAccelEnrichment::getTpsEnrichment() {
|
||||||
}
|
}
|
||||||
#endif /* EFI_TUNER_STUDIO */
|
#endif /* EFI_TUNER_STUDIO */
|
||||||
|
|
||||||
return extraFuel;
|
float mult = interpolate2d(rpm, engineConfiguration->tpsTspCorrValuesBins,
|
||||||
|
engineConfiguration->tpsTspCorrValues);
|
||||||
|
if (mult != 0 && (mult < 0.01 || mult > 100)) {
|
||||||
|
mult = 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
return extraFuel * mult;
|
||||||
}
|
}
|
||||||
|
|
||||||
void TpsAccelEnrichment::onEngineCycleTps() {
|
void TpsAccelEnrichment::onEngineCycleTps() {
|
||||||
|
|
Loading…
Reference in New Issue