X-Git-Url: http://challenge-bot.com/repos/?p=3501%2F2017steamworks;a=blobdiff_plain;f=src%2Forg%2Fusfirst%2Ffrc%2Fteam3501%2Frobot%2FOI.java;h=ec405ac0aeca44daba0e501381b186e0ba476dbe;hp=935c4c6e32eb4da8fb3dbc5590e4f51bfef6aea5;hb=7935bf262ed52d56431a191e55fd5cfb8d1f49c2;hpb=f388cdf4d1245a47fd37a95024075f24b7d25c04 diff --git a/src/org/usfirst/frc/team3501/robot/OI.java b/src/org/usfirst/frc/team3501/robot/OI.java index 935c4c6..ec405ac 100644 --- a/src/org/usfirst/frc/team3501/robot/OI.java +++ b/src/org/usfirst/frc/team3501/robot/OI.java @@ -1,5 +1,7 @@ package org.usfirst.frc.team3501.robot; +import org.usfirst.frc.team3501.robot.commands.driving.ToggleGear; + import edu.wpi.first.wpilibj.Joystick; import edu.wpi.first.wpilibj.buttons.Button; import edu.wpi.first.wpilibj.buttons.JoystickButton; @@ -13,6 +15,8 @@ public class OI { public static Button toggleIndexWheel; public static Button toggleFlyWheel; + public static Button toggleGear; + public OI() { leftJoystick = new Joystick(Constants.OI.LEFT_STICK_PORT); rightJoystick = new Joystick(Constants.OI.RIGHT_STICK_PORT); @@ -22,6 +26,9 @@ public class OI { Constants.OI.TOGGLE_INDEXWHEEL_PORT); toggleFlyWheel = new JoystickButton(leftJoystick, Constants.OI.TOGGLE_FLYWHEEL_PORT); + toggleGear = new JoystickButton(leftJoystick, + Constants.OI.TOGGLE_GEAR_PORT); + toggleGear.whenPressed(new ToggleGear()); } public static OI getOI() {