X-Git-Url: http://challenge-bot.com/repos/?p=3501%2F2017steamworks;a=blobdiff_plain;f=src%2Forg%2Fusfirst%2Ffrc%2Fteam3501%2Frobot%2FOI.java;h=7002a58bf1e4cbaeef433d5bd560c78543da1e60;hp=e9c055248327cc7ca4bc57741eb93fe1c997072e;hb=ba9f0b126afd5973b11a22dd6640d8d6f0822f5a;hpb=150f450f2b4f9e6094d71007507a7b877e05328a diff --git a/src/org/usfirst/frc/team3501/robot/OI.java b/src/org/usfirst/frc/team3501/robot/OI.java index e9c0552..7002a58 100644 --- a/src/org/usfirst/frc/team3501/robot/OI.java +++ b/src/org/usfirst/frc/team3501/robot/OI.java @@ -2,6 +2,7 @@ package org.usfirst.frc.team3501.robot; import org.usfirst.frc.team3501.robot.commands.climber.BrakeCANTalons; import org.usfirst.frc.team3501.robot.commands.climber.CoastCANTalons; +import org.usfirst.frc.team3501.robot.commands.climber.ToggleWinch; import org.usfirst.frc.team3501.robot.commands.driving.ToggleDriveGear; import org.usfirst.frc.team3501.robot.commands.driving.ToggleGearManipulatorPiston; import org.usfirst.frc.team3501.robot.commands.intake.ReverseIntakeContinuous; @@ -41,6 +42,7 @@ public class OI { public static Button brakeCANTalons; public static Button coastCANTalons; + public static Button climb; public OI() { leftJoystick = new Joystick(Constants.OI.LEFT_STICK_PORT); @@ -97,6 +99,9 @@ public class OI { coastCANTalons = new JoystickButton(rightJoystick, Constants.OI.COAST_CANTALONS_PORT); coastCANTalons.whenPressed(new CoastCANTalons()); + + climb = new JoystickButton(leftJoystick, Constants.OI.CLIMB_PORT); + climb.whenPressed(new ToggleWinch()); } public static OI getOI() {