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:
Dustin Spicuzza
2016-03-17 21:27:44 -04:00
parent 16343bbe71
commit bee507eda8
2 changed files with 2 additions and 0 deletions

View File

@@ -352,6 +352,7 @@ void PIDController::SetSetpoint(float setpoint) {
// Clear m_buf.
m_buf = std::queue<double>();
m_bufTotal = 0;
}
if (m_table != nullptr) {