summaryrefslogtreecommitdiff
path: root/src/org/usfirst/frc/team4272
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/usfirst/frc/team4272')
-rw-r--r--src/org/usfirst/frc/team4272/robot2016/Teleop.java7
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)