Skip to content

Commit

Permalink
[wpimath] Fix PIDController error tolerance getters (wpilibsuite#7341)
Browse files Browse the repository at this point in the history
  • Loading branch information
calcmogul authored Nov 5, 2024
1 parent f2d2500 commit 3113627
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions wpimath/src/main/native/cpp/controller/PIDController.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -166,7 +166,7 @@ void PIDController::SetTolerance(double errorTolerance,
}

double PIDController::GetErrorTolerance() const {
return m_error;
return m_errorTolerance;
}

double PIDController::GetErrorDerivativeTolerance() const {
Expand Down

0 comments on commit 3113627

Please sign in to comment.