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=1dc8e1ce52b3832a3a070c01b35b7c8de65ea4b3;hb=3cd438bd5b650a27b84ef37224025cd7f6086e7c;hp=82c4217ab6229cc1dd87f966c5c72c2ed98ec013;hpb=7f5908bed5e4b04836fdc27fa1d1ca0334a7468a;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 82c4217..1dc8e1c 100644 --- a/src/org/usfirst/frc/team3501/robot/OI.java +++ b/src/org/usfirst/frc/team3501/robot/OI.java @@ -5,22 +5,21 @@ import java.util.Arrays; import org.usfirst.frc.team3501.robot.commands.*; public class OI { + private Joystick left, right; public OI() { left = new Joystick(RobotMap.LEFT_JOYSTICK_PORT); right = new Joystick(RobotMap.RIGHT_JOYSTICK_PORT); - right.whenPressed(1, new CloseClaw()); + right.whenPressed(1, new CloseClaw()); right.whenReleased(1, new OpenClaw()); - - right.whenPressed(2, new ToggleClaw()); + 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()); + 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...