|
Re: Help me understand PIDController::OnTarget()
m_continuous is used to indicate if the range specified should be considered to be continuous (wraps from max to min) or not (the default is false). This is explained some in the documentation for the SetContinuous method.
So for something like a continuous rotation turret or swerve pod, you may set min as zero, max as 360 and continuous to true using SetContinuous(true). In this case the minimum and maximum represent the same value so the error for your hypothetical is indeed 0.
|