diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2017-02-21 16:36:49 -0500 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2017-02-21 16:36:49 -0500 |
commit | a4f1f4363ed39972c0ac3541adf885c20ec19f58 (patch) | |
tree | 8896ab2952217750dee4ea349d9fe9a4d886456d /src | |
parent | c73ea4ba1b27cfd5842d8ae9f213d01f3fd434f2 (diff) |
AnnaLaura wants the GED on the trigger.
Diffstat (limited to 'src')
-rw-r--r-- | src/org/usfirst/frc/team4272/robot2017/Teleop.java | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/src/org/usfirst/frc/team4272/robot2017/Teleop.java b/src/org/usfirst/frc/team4272/robot2017/Teleop.java index 226ef6c..bc09f8a 100644 --- a/src/org/usfirst/frc/team4272/robot2017/Teleop.java +++ b/src/org/usfirst/frc/team4272/robot2017/Teleop.java @@ -117,15 +117,13 @@ public class Teleop { control.climber = 0; } - /* gear place */ - if (oi.xbox.getAButton()) { - control.gedOut = true; - } - if (oi.xbox.getBButton()) { - control.gedOut = false; - } - + /* GED */ + control.gedOut = oi.xbox.getTriggerAxis(Hand.kRight) > 0.5; + /* camera */ + // AnnaLaura wants the GED on the trigger, so we'll + // have to find somewhere else for the camera. + /* if (oi.xbox.getTriggerAxis(Hand.kRight) > 0) { control.camRotate = 1; } else if (oi.xbox.getTriggerAxis(Hand.kLeft) > 0) { @@ -134,7 +132,7 @@ public class Teleop { control.camRotate = 0; } control.camTilt = oi.xbox.getX(Hand.kRight); - + */ return control; } } |