diff --git a/firmware/controllers/actuators/electronic_throttle.cpp b/firmware/controllers/actuators/electronic_throttle.cpp index 648617333a..7aecc1ff12 100644 --- a/firmware/controllers/actuators/electronic_throttle.cpp +++ b/firmware/controllers/actuators/electronic_throttle.cpp @@ -518,7 +518,7 @@ expected EtbController::getClosedLoop(percent_t target, percent_t obs float output = m_pid.getOutput(target, observation, etbPeriodSeconds); etbDutyAverage = m_dutyAverage.average(output); - etbDutyAverage = m_dutyRocAverage.average(prevOutput - output); + etbDutyRateOfChange = m_dutyRocAverage.average(output - prevOutput); prevOutput = output; // seems good enough to simply check for both TPS sensors