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=9f8ea7ae594b5d33d07fa18bcb79935745041915;hb=ba9f0b126afd5973b11a22dd6640d8d6f0822f5a;hpb=fc01fb0fb74d31a0818c69d0306253deb4236c58 diff --git a/src/org/usfirst/frc/team3501/robot/OI.java b/src/org/usfirst/frc/team3501/robot/OI.java index 9f8ea7a..7002a58 100644 --- a/src/org/usfirst/frc/team3501/robot/OI.java +++ b/src/org/usfirst/frc/team3501/robot/OI.java @@ -1,13 +1,15 @@ package org.usfirst.frc.team3501.robot; -import org.usfirst.frc.team3501.robot.commands.driving.BrakeCANTalons; -import org.usfirst.frc.team3501.robot.commands.driving.CoastCANTalons; +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; import org.usfirst.frc.team3501.robot.commands.intake.RunIntakeContinuous; import org.usfirst.frc.team3501.robot.commands.shooter.DecreaseShootingSpeed; import org.usfirst.frc.team3501.robot.commands.shooter.IncreaseShootingSpeed; +import org.usfirst.frc.team3501.robot.commands.shooter.ResetShootingSpeed; import org.usfirst.frc.team3501.robot.commands.shooter.ReverseFlyWheelContinuous; import org.usfirst.frc.team3501.robot.commands.shooter.ReverseIndexWheelContinuous; import org.usfirst.frc.team3501.robot.commands.shooter.RunFlyWheelContinuous; @@ -36,9 +38,11 @@ public class OI { public static Button increaseShooterSpeed; public static Button decreaseShooterSpeed; + public static Button resetShooterSpeed; public static Button brakeCANTalons; public static Button coastCANTalons; + public static Button climb; public OI() { leftJoystick = new Joystick(Constants.OI.LEFT_STICK_PORT); @@ -84,6 +88,10 @@ public class OI { Constants.OI.DECREASE_SHOOTER_SPEED_PORT); decreaseShooterSpeed.whenPressed(new DecreaseShootingSpeed()); + resetShooterSpeed = new JoystickButton(gamePad, + Constants.OI.RESET_SHOOTER_SPEED_PORT); + resetShooterSpeed.whenPressed(new ResetShootingSpeed()); + brakeCANTalons = new JoystickButton(rightJoystick, Constants.OI.BRAKE_CANTALONS_PORT); brakeCANTalons.whenPressed(new BrakeCANTalons()); @@ -91,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() {