|
Re: Help me understand PIDController::OnTarget()
The implementation looks correct to me. It looks for the error to be less than the tolerance % of the full range. Since m_tolerance is divided by 100, I assume that 5% should be 5.0, not 0.05.
HTH
__________________
Fast, cheap or working - pick any two!
|