diff options
author | FRC_4272 <FRC_4272@USER-PC.lan> | 2017-03-23 01:33:38 -0400 |
---|---|---|
committer | FRC_4272 <FRC_4272@USER-PC.lan> | 2017-03-23 01:33:38 -0400 |
commit | 2e328065b7a7d89c15dd7e124d6383c2b61726fd (patch) | |
tree | b2c50eede0ccc4f941a672c8e2a23fe47a2fb2d1 /src/org/usfirst/frc/team4272/robot2016/Teleop.java | |
parent | ed3db134b11bc37d9a4bad77b1e92aea71daf564 (diff) |
Changes sitting on the Dell.dell-1
Diffstat (limited to 'src/org/usfirst/frc/team4272/robot2016/Teleop.java')
-rw-r--r-- | src/org/usfirst/frc/team4272/robot2016/Teleop.java | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/org/usfirst/frc/team4272/robot2016/Teleop.java b/src/org/usfirst/frc/team4272/robot2016/Teleop.java index 73b7b60..d07e5ce 100644 --- a/src/org/usfirst/frc/team4272/robot2016/Teleop.java +++ b/src/org/usfirst/frc/team4272/robot2016/Teleop.java @@ -74,8 +74,17 @@ public class Teleop { control.fBall = 1; } } + + if(oi.xbox.getAxis(Axis.RTrigger) > 0) + control.camRotate = 1; + else if(oi.xbox.getAxis(Axis.LTrigger) > 0) + control.camRotate = -1; + else + control.camRotate = 0; + control.camTilt = oi.xbox.getAxis(Axis.RX); - //if (robot.armE.pidGet() > armSoftStop && control.arm > 0) + control.PCM = oi.xbox.getButton(Button.A); + //if (robot.armE.piedGet() > armSoftStop && control.arm > 0) // control.arm = 0; /* Take pictures */ |