X-Git-Url: http://challenge-bot.com/repos/?a=blobdiff_plain;f=src%2Forg%2Fusfirst%2Ffrc%2Fteam3501%2Frobot%2FOI.java;fp=src%2Forg%2Fusfirst%2Ffrc%2Fteam3501%2Frobot%2FOI.java;h=f573281d6b4a7bb86328cfec799991cfa8826734;hb=d24e8611dc96b16cc613a0de54bde4e682a06ba2;hp=58781e3b038ea24db01c3967b1d9c7f26814a941;hpb=510cff21b567a9d71b188b28081b716b9ea816cc;p=ozzloy%40gmail.com%2F3501-spark-go diff --git a/src/org/usfirst/frc/team3501/robot/OI.java b/src/org/usfirst/frc/team3501/robot/OI.java index 58781e3..f573281 100644 --- a/src/org/usfirst/frc/team3501/robot/OI.java +++ b/src/org/usfirst/frc/team3501/robot/OI.java @@ -12,11 +12,21 @@ public class OI { right.whenPressed(1, new CloseClaw()); right.whenReleased(1, new OpenClaw()); + right.whenPressed(2, new ToggleClaw()); + right.whenPressed(11, new TurnOffCompressor()); right.whenPressed(12, new TurnOffCompressor()); right.whenPressed(7, new TurnOnCompressor()); right.whenPressed(8, new TurnOnCompressor()); + + // potential bug point: this should "Just Work" because as soon as + // command stops running, left stick pos at 0 should take over... + // if that is not the case, arm will continue indefinitely. + left.whileHeld(7, new TensionLeftWinch(RobotMap.ARM_ADJUST_SPEED)); + left.whileHeld(6, new TensionLeftWinch(-RobotMap.ARM_ADJUST_SPEED)); + left.whileHeld(11, new TensionRightWinch(RobotMap.ARM_ADJUST_SPEED)); + left.whileHeld(10, new TensionRightWinch(-RobotMap.ARM_ADJUST_SPEED)); } public double getForwardL() {