mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
[wpimath] Fix PIDController error tolerance getters (#7341)
This commit is contained in:
@@ -103,11 +103,11 @@ units::second_t PIDController::GetPeriod() const {
|
||||
}
|
||||
|
||||
double PIDController::GetPositionTolerance() const {
|
||||
return m_error;
|
||||
return m_errorTolerance;
|
||||
}
|
||||
|
||||
double PIDController::GetVelocityTolerance() const {
|
||||
return m_errorDerivative;
|
||||
return m_errorDerivativeTolerance;
|
||||
}
|
||||
|
||||
double PIDController::GetAccumulatedError() const {
|
||||
@@ -166,7 +166,7 @@ void PIDController::SetTolerance(double errorTolerance,
|
||||
}
|
||||
|
||||
double PIDController::GetErrorTolerance() const {
|
||||
return m_error;
|
||||
return m_errorTolerance;
|
||||
}
|
||||
|
||||
double PIDController::GetErrorDerivativeTolerance() const {
|
||||
|
||||
Reference in New Issue
Block a user