mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
[wpimath] PIDController: Add getters for position & velocity tolerances (#4458)
This commit is contained in:
@@ -68,6 +68,14 @@ units::second_t PIDController::GetPeriod() const {
|
||||
return m_period;
|
||||
}
|
||||
|
||||
double PIDController::GetPositionTolerance() const {
|
||||
return m_positionTolerance;
|
||||
}
|
||||
|
||||
double PIDController::GetVelocityTolerance() const {
|
||||
return m_velocityTolerance;
|
||||
}
|
||||
|
||||
void PIDController::SetSetpoint(double setpoint) {
|
||||
m_setpoint = setpoint;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user