[wpimath] Add getAccumulatedError() to PIDController (#6813)

This commit is contained in:
Brendan Raykoff
2024-07-21 02:17:13 -04:00
committed by GitHub
parent eda63dc162
commit 45f3e3a069
5 changed files with 40 additions and 0 deletions

View File

@@ -110,6 +110,10 @@ double PIDController::GetVelocityTolerance() const {
return m_velocityTolerance;
}
double PIDController::GetAccumulatedError() const {
return m_totalError;
}
void PIDController::SetSetpoint(double setpoint) {
m_setpoint = setpoint;
m_haveSetpoint = true;