diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-01-16 12:51:47 -0500 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-01-16 12:51:47 -0500 |
commit | 75c2407dd85a69b8f80e9b376da1bfb9ed0bb173 (patch) | |
tree | 09ef3a14f252bc2fd4cb9e8deb45da677383aff8 /src/org/mckenzierobotics/lib/robot/PIDController.java | |
parent | 636cf0465605d9dd482e1fb75f8b81e509703403 (diff) |
(mostly) update to new WPIlib.
PIDController has some TODOs in there
Diffstat (limited to 'src/org/mckenzierobotics/lib/robot/PIDController.java')
-rw-r--r-- | src/org/mckenzierobotics/lib/robot/PIDController.java | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/src/org/mckenzierobotics/lib/robot/PIDController.java b/src/org/mckenzierobotics/lib/robot/PIDController.java index dc2301a..e2f8087 100644 --- a/src/org/mckenzierobotics/lib/robot/PIDController.java +++ b/src/org/mckenzierobotics/lib/robot/PIDController.java @@ -60,14 +60,14 @@ public class PIDController extends edu.wpi.first.wpilibj.PIDController implement public PIDController(double Kp, double Ki, double Kd, PIDSource source, PIDOutput output, boolean autodisable) { super(Kp, Ki, Kd, source, output); this.autodisable = autodisable; - enabled = this.isEnable(); + enabled = this.isEnabled(); this.source = source; this.output = output; } public PIDController(double Kp, double Ki, double Kd, PIDSource source, PIDOutput output, double period, boolean autodisable) { super(Kp, Ki, Kd, source, output, period); this.autodisable = autodisable; - enabled = this.isEnable(); + enabled = this.isEnabled(); this.source = source; this.output = output; } @@ -101,4 +101,14 @@ public class PIDController extends edu.wpi.first.wpilibj.PIDController implement public void set(double output, byte syncGroup) { setSetpoint(output); } + + public void setInverted(boolean isInverted) { + // TODO Auto-generated method stub + + } + + public boolean getInverted() { + // TODO Auto-generated method stub + return false; + } } |