|
Re: Help me understand PIDController::OnTarget()
Quote:
Originally Posted by Ether
On a side note:
It looks like m_tolerance, m_maximumInput, and m_minimumInput are all constants.
Take them, and the calculation, out of the critical region
|
They are class members but still - good advice. Critical regions should contain as little code as possible.
__________________
Fast, cheap or working - pick any two!
|