diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2017-02-20 23:23:55 -0500 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2017-02-20 23:23:55 -0500 |
commit | 0e5a0cb990007976cc17e23b54c9960c38ae398d (patch) | |
tree | 697b8a5e5491e1c36b8ca503edbd3e79a47c2d57 | |
parent | 53e3465bd2c0bfc749fc066f4f8a7d5b352a0557 (diff) |
Teleop: add comments
-rw-r--r-- | src/org/usfirst/frc/team4272/robot2016/Teleop.java | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/org/usfirst/frc/team4272/robot2016/Teleop.java b/src/org/usfirst/frc/team4272/robot2016/Teleop.java index 9675f65..9d0662d 100644 --- a/src/org/usfirst/frc/team4272/robot2016/Teleop.java +++ b/src/org/usfirst/frc/team4272/robot2016/Teleop.java @@ -38,12 +38,14 @@ public class Teleop { control.lDrive = -jsScale(oi.lStick); control.rDrive = -jsScale(oi.rStick); + /* shifting */ if (oi.lStick.getTrigger()) { control.highGear = false; } else if (oi.rStick.getTrigger()) { control.highGear = true; } + /* auto gear wiggle */ if (oi.rStick.getRawButton(2) || oi.lStick.getRawButton(2)) { currentTime = Timer.getMatchTime(); if(currentTime-lastTime > 0.15){ @@ -59,7 +61,8 @@ public class Teleop { control.rDrive = 0.5; } } - + + /* climber */ if(oi.xbox.getRawAxis(1) > 0.2){ control.climber = oi.xbox.getRawAxis(1); } else if (oi.xbox.getRawAxis(1) < -0.2) { @@ -76,7 +79,7 @@ public class Teleop { control.gedOut = false; } - + /* camera */ if(oi.xbox.getTriggerAxis(Hand.kRight) > 0) control.camRotate = 1; else if(oi.xbox.getTriggerAxis(Hand.kLeft) > 0) |