Default bufLength for PIDController in Java should be 1

- cpp version defaults to 1
- Documentation in getAvgError() says it defaults to 1

Change-Id: Id45f345f048f4c02709745ec1fb97744b7af7715
This commit is contained in:
Dustin Spicuzza
2016-01-02 12:00:40 -05:00
parent e2ec34090a
commit 31a39b4e59

View File

@@ -40,7 +40,7 @@ public class PIDController implements PIDInterface, LiveWindowSendable, Controll
// integral calc
private Tolerance m_tolerance; // the tolerance object used to check if on
// target
private int m_bufLength = 0;
private int m_bufLength = 1;
private LinkedList<Double> m_buf;
private double m_bufTotal = 0.0;
private double m_setpoint = 0.0;