[wpimath] PIDController: Add getters for position & velocity tolerances (#4458)

This commit is contained in:
Justin
2022-10-25 19:10:19 -04:00
committed by GitHub
parent 9f36301dc8
commit 2a98d6b5d7
5 changed files with 76 additions and 0 deletions

View File

@@ -101,6 +101,20 @@ class WPILIB_DLLEXPORT PIDController
*/
units::second_t GetPeriod() const;
/**
* Gets the position tolerance of this controller.
*
* @return The position tolerance of the controller.
*/
double GetPositionTolerance() const;
/**
* Gets the velocity tolerance of this controller.
*
* @return The velocity tolerance of the controller.
*/
double GetVelocityTolerance() const;
/**
* Sets the setpoint for the PIDController.
*