X-Git-Url: http://challenge-bot.com/repos/?p=3501%2Fstronghold-2016;a=blobdiff_plain;f=src%2Forg%2Fusfirst%2Ffrc%2Fteam3501%2Frobot%2FOI.java;fp=src%2Forg%2Fusfirst%2Ffrc%2Fteam3501%2Frobot%2FOI.java;h=8de027b73502223533f8b786c11f1804909ca53a;hp=cb7e12d9b3120c094e24f39869be0d6deea94cf6;hb=ee82dd56da8889e008eb1a09aa8b8e016a59fd72;hpb=86d7310bff2430b6963fec800ac441d4314a2c3a diff --git a/src/org/usfirst/frc/team3501/robot/OI.java b/src/org/usfirst/frc/team3501/robot/OI.java index cb7e12d9..8de027b7 100644 --- a/src/org/usfirst/frc/team3501/robot/OI.java +++ b/src/org/usfirst/frc/team3501/robot/OI.java @@ -1,6 +1,7 @@ package org.usfirst.frc.team3501.robot; import org.usfirst.frc.team3501.robot.commands.driving.ChangeGear; +import org.usfirst.frc.team3501.robot.commands.driving.ToggleCompressor; import edu.wpi.first.wpilibj.Joystick; import edu.wpi.first.wpilibj.buttons.Button; @@ -34,6 +35,7 @@ public class OI { public static Button intakeBoulder; public static Button shootBoulder; public static Button toggleGear; + public static Button toggleCompressor; // button to change robot to the scaling mode public static DigitalButton toggleScaling; @@ -46,6 +48,10 @@ public class OI { Constants.OI.RIGHT_JOYSTICK_TRIGGER_PORT); toggleGear.toggleWhenPressed(new ChangeGear()); + toggleCompressor = new JoystickButton(rightJoystick, + Constants.OI.TOGGLE_COMPRESSOR_PORT); + toggleCompressor.whenPressed(new ToggleCompressor()); + // passPortcullis = new DigitalButton( // new DigitalInput(Constants.OI.PASS_PORTCULLIS_PORT)); // passPortcullis.whenPressed(new PassPortcullis());