summaryrefslogtreecommitdiff
path: root/src/org/usfirst/frc
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2016-01-16 12:51:47 -0500
committerLuke Shumaker <lukeshu@sbcglobal.net>2016-01-16 12:51:47 -0500
commit75c2407dd85a69b8f80e9b376da1bfb9ed0bb173 (patch)
tree09ef3a14f252bc2fd4cb9e8deb45da677383aff8 /src/org/usfirst/frc
parent636cf0465605d9dd482e1fb75f8b81e509703403 (diff)
(mostly) update to new WPIlib.
PIDController has some TODOs in there
Diffstat (limited to 'src/org/usfirst/frc')
-rw-r--r--src/org/usfirst/frc/team4272/robot2016/HwRobot.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/org/usfirst/frc/team4272/robot2016/HwRobot.java b/src/org/usfirst/frc/team4272/robot2016/HwRobot.java
index a1072dc..27e64d8 100644
--- a/src/org/usfirst/frc/team4272/robot2016/HwRobot.java
+++ b/src/org/usfirst/frc/team4272/robot2016/HwRobot.java
@@ -7,7 +7,7 @@ import org.usfirst.frc.team4272.robotlib.LimitSwitchedPIDOutput;
import edu.wpi.first.wpilibj.DigitalInput;
import edu.wpi.first.wpilibj.Encoder;
import edu.wpi.first.wpilibj.PIDOutput;
-import edu.wpi.first.wpilibj.PIDSource.PIDSourceParameter;
+import edu.wpi.first.wpilibj.PIDSourceType;
import edu.wpi.first.wpilibj.Relay;
import edu.wpi.first.wpilibj.Talon;
@@ -48,9 +48,9 @@ public class HwRobot {
private Relay rIntake = new Relay(/*Relay*/0, Relay.Direction.kBoth);
public HwRobot() {
- lDriveE.setPIDSourceParameter(PIDSourceParameter.kRate);
- rDriveE.setPIDSourceParameter(PIDSourceParameter.kRate);
- winchE.setPIDSourceParameter(PIDSourceParameter.kRate);
+ lDriveE.setPIDSourceType(PIDSourceType.kRate);
+ rDriveE.setPIDSourceType(PIDSourceType.kRate);
+ winchE.setPIDSourceType(PIDSourceType.kRate);
}
public void run(Control c) {