mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-21 01:01:43 +00:00
Clear error buffer total when clearing the buffer contents
- Reported by Eli Barnett - See http://www.chiefdelphi.com/forums/showthread.php?p=1559160` Change-Id: I0efa4584452940bdfab3cc57c1823a8b33d387ff
This commit is contained in:
@@ -352,6 +352,7 @@ void PIDController::SetSetpoint(float setpoint) {
|
||||
|
||||
// Clear m_buf.
|
||||
m_buf = std::queue<double>();
|
||||
m_bufTotal = 0;
|
||||
}
|
||||
|
||||
if (m_table != nullptr) {
|
||||
|
||||
Reference in New Issue
Block a user