mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
[wpimath] Document default tolerances of PIDController (#7377)
This commit is contained in:
committed by
GitHub
parent
425bf83036
commit
07345712dc
@@ -246,7 +246,7 @@ public class PIDController implements Sendable, AutoCloseable {
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the error tolerance of this controller.
|
||||
* Returns the error tolerance of this controller. Defaults to 0.05.
|
||||
*
|
||||
* @return the error tolerance of the controller.
|
||||
*/
|
||||
@@ -255,7 +255,7 @@ public class PIDController implements Sendable, AutoCloseable {
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the error derivative tolerance of this controller.
|
||||
* Returns the error derivative tolerance of this controller. Defaults to ∞.
|
||||
*
|
||||
* @return the error derivative tolerance of the controller.
|
||||
*/
|
||||
@@ -301,7 +301,8 @@ public class PIDController implements Sendable, AutoCloseable {
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns true if the error is within the tolerance of the setpoint.
|
||||
* Returns true if the error is within the tolerance of the setpoint. The error tolerance defaults
|
||||
* to 0.05, and the error derivative tolerance defaults to ∞.
|
||||
*
|
||||
* <p>This will return false until at least one input value has been computed.
|
||||
*
|
||||
|
||||
@@ -178,14 +178,14 @@ class WPILIB_DLLEXPORT PIDController
|
||||
constexpr units::second_t GetPeriod() const { return m_period; }
|
||||
|
||||
/**
|
||||
* Gets the error tolerance of this controller.
|
||||
* Gets the error tolerance of this controller. Defaults to 0.05.
|
||||
*
|
||||
* @return The error tolerance of the controller.
|
||||
*/
|
||||
constexpr double GetErrorTolerance() const { return m_errorTolerance; }
|
||||
|
||||
/**
|
||||
* Gets the error derivative tolerance of this controller.
|
||||
* Gets the error derivative tolerance of this controller. Defaults to ∞.
|
||||
*
|
||||
* @return The error derivative tolerance of the controller.
|
||||
*/
|
||||
@@ -252,6 +252,8 @@ class WPILIB_DLLEXPORT PIDController
|
||||
|
||||
/**
|
||||
* Returns true if the error is within the tolerance of the setpoint.
|
||||
* The error tolerance defauls to 0.05, and the error derivative tolerance
|
||||
* defaults to ∞.
|
||||
*
|
||||
* This will return false until at least one input value has been computed.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user