mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-21 01:01:43 +00:00
[wpimath] Add getAccumulatedError() to PIDController (#6813)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user