Nick wonders if DC wastegate is still FUBAR #5075

This commit is contained in:
rusefi 2023-02-19 00:36:03 -05:00
parent 816d2b01c0
commit fbb59e6b75
1 changed files with 9 additions and 9 deletions

View File

@ -549,15 +549,6 @@ void EtbController::setOutput(expected<percent_t> outputValue) {
}
bool EtbController::checkStatus() {
if (!isEtbMode()) {
// no validation for h-bridge or idle mode
return true;
}
// ETB-specific code belo. The whole mix-up between DC and ETB is shameful :(
m_pid.iTermMin = engineConfiguration->etb_iTermMin;
m_pid.iTermMax = engineConfiguration->etb_iTermMax;
#if EFI_TUNER_STUDIO
// Only debug throttle #1
if (m_function == DC_Throttle1) {
@ -567,6 +558,15 @@ bool EtbController::checkStatus() {
}
#endif /* EFI_TUNER_STUDIO */
if (!isEtbMode()) {
// no validation for h-bridge or idle mode
return true;
}
// ETB-specific code belo. The whole mix-up between DC and ETB is shameful :(
m_pid.iTermMin = engineConfiguration->etb_iTermMin;
m_pid.iTermMax = engineConfiguration->etb_iTermMax;
// Only allow autotune with stopped engine, and on the first throttle
// Update local state about autotune
m_isAutotune = Sensor::getOrZero(SensorType::Rpm) == 0