ETB duty cycle jitter #4833
This commit is contained in:
parent
82a3074cbd
commit
5f7ba304bf
|
@ -518,7 +518,7 @@ expected<percent_t> EtbController::getClosedLoop(percent_t target, percent_t obs
|
||||||
float output = m_pid.getOutput(target, observation, etbPeriodSeconds);
|
float output = m_pid.getOutput(target, observation, etbPeriodSeconds);
|
||||||
etbDutyAverage = m_dutyAverage.average(output);
|
etbDutyAverage = m_dutyAverage.average(output);
|
||||||
|
|
||||||
etbDutyAverage = m_dutyRocAverage.average(prevOutput - output);
|
etbDutyRateOfChange = m_dutyRocAverage.average(output - prevOutput);
|
||||||
prevOutput = output;
|
prevOutput = output;
|
||||||
|
|
||||||
// seems good enough to simply check for both TPS sensors
|
// seems good enough to simply check for both TPS sensors
|
||||||
|
|
Loading…
Reference in New Issue