From 3113627be66c09d1d33d2588dff8f829fa8eb052 Mon Sep 17 00:00:00 2001 From: Tyler Veness Date: Tue, 5 Nov 2024 08:52:22 -0800 Subject: [PATCH] [wpimath] Fix PIDController error tolerance getters (#7341) --- wpimath/src/main/native/cpp/controller/PIDController.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wpimath/src/main/native/cpp/controller/PIDController.cpp b/wpimath/src/main/native/cpp/controller/PIDController.cpp index 93fa6d5d12..eeb3e758c5 100644 --- a/wpimath/src/main/native/cpp/controller/PIDController.cpp +++ b/wpimath/src/main/native/cpp/controller/PIDController.cpp @@ -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 {