mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user