X-Git-Url: http://challenge-bot.com/repos/?a=blobdiff_plain;f=src%2Forg%2Fusfirst%2Ffrc3501%2FRiceCatRobot%2FOI.java;fp=src%2Forg%2Fusfirst%2Ffrc3501%2FRiceCatRobot%2FOI.java;h=0000000000000000000000000000000000000000;hb=eb9e6bd8da48f0833680f6e6705542bacacd4dd8;hp=e463ea3e227410c4652ab503c453c3013b502446;hpb=de4f822fbfd21dd7421f56b749240e7b11d9bc5c;p=3501%2F2015-FRC-Spark diff --git a/src/org/usfirst/frc3501/RiceCatRobot/OI.java b/src/org/usfirst/frc3501/RiceCatRobot/OI.java deleted file mode 100644 index e463ea3..0000000 --- a/src/org/usfirst/frc3501/RiceCatRobot/OI.java +++ /dev/null @@ -1,31 +0,0 @@ -package org.usfirst.frc3501.RiceCatRobot; - -import org.usfirst.frc3501.RiceCatRobot.commands.ToggleClaw; -import org.usfirst.frc3501.RiceCatRobot.commands.ToggleCompressor; - -import edu.wpi.first.wpilibj.Joystick; -import edu.wpi.first.wpilibj.buttons.JoystickButton; - -public class OI { - public static Joystick leftJoystick; - public static Joystick rightJoystick; - public static JoystickButton trigger; - public static JoystickButton toggleCompressor; - public static JoystickButton toggleClaw; - - public OI() { - System.out.println("OI is open"); - leftJoystick = new Joystick(RobotMap.LEFT_STICK_PORT); - rightJoystick = new Joystick(RobotMap.RIGHT_STICK_PORT); - - trigger = new JoystickButton(rightJoystick, RobotMap.TRIGGER_PORT); - - toggleClaw = new JoystickButton(rightJoystick, RobotMap.TOGGLE_PORT); - toggleClaw.whenPressed(new ToggleClaw()); - - toggleCompressor = new JoystickButton(rightJoystick, - RobotMap.TOGGLE_COMPRESSOR_PORT); - toggleCompressor.whenPressed(new ToggleCompressor()); - - } -}