From 0e5a0cb990007976cc17e23b54c9960c38ae398d Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Mon, 20 Feb 2017 23:23:55 -0500 Subject: Teleop: add comments --- src/org/usfirst/frc/team4272/robot2016/Teleop.java | 7 +++++-- 1 file 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) -- cgit v1.2.3