mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-23 01:21:42 +00:00
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:
committed by
Peter Johnson
parent
d36d72bd4f
commit
5c659fdcdf
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user