RPM correction/multiplier for Accel Enrich fix #4760

This commit is contained in:
rusefillc 2022-12-14 19:57:07 -05:00
parent 57ad9b7311
commit 743bdad7e0
2 changed files with 10 additions and 2 deletions

View File

@ -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
- VR trigger input oscilloscope for boards with "discrete VR" hardware (AlphaX ECUs, some Hellen) #4885
- Jammed ETB detection #4873
- RPM correction/multiplier for Accel Enrich #4760
## December 2022 Release - "Day 289"

View File

@ -33,7 +33,8 @@ floatms_t TpsAccelEnrichment::getTpsEnrichment() {
// If disabled, return 0.
return 0;
}
if (!engine->rpmCalculator.isRunning()) {
int rpm = Sensor::getOrZero(SensorType::Rpm);
if (rpm == 0) {
return 0;
}
@ -82,7 +83,13 @@ floatms_t TpsAccelEnrichment::getTpsEnrichment() {
}
#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() {