Deprecated PIDController::SetTolerance() (#764)

PIDController::SetPercentTolerance() behaves identically to it, so removing
SetTolerance() leaves one obvious way to do absolute or percent tolerance.
This commit is contained in:
Tyler Veness
2017-11-23 01:21:36 -08:00
committed by Peter Johnson
parent d36d72bd4f
commit 5c659fdcdf
2 changed files with 4 additions and 1 deletions

View File

@@ -554,9 +554,11 @@ public class PIDController implements PIDInterface, LiveWindowSendable, Controll
* object. Use it by creating the type of tolerance that you want to use: setTolerance(new
* PIDController.AbsoluteTolerance(0.1))
*
* @param tolerance a tolerance object of the right type, e.g. PercentTolerance or
* @deprecated Use setPercentTolerance() instead.
* @param tolerance A tolerance object of the right type, e.g. PercentTolerance or
* AbsoluteTolerance
*/
@Deprecated
public void setTolerance(Tolerance tolerance) {
m_tolerance = tolerance;
}