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=07c47e8405422f77149aa54fabaf7c0cc81b0559;hp=bde311bd3147356a90d92129557a340b7f134bc7;hb=1e41dfe4e5913508b81298ba64e6d879b6739f39;hpb=93241e25b57f6a7e7f64207682246957cd47e353 diff --git a/src/org/usfirst/frc/team3501/robot/OI.java b/src/org/usfirst/frc/team3501/robot/OI.java index bde311bd..07c47e84 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.shooter.Shoot; import edu.wpi.first.wpilibj.Joystick; import edu.wpi.first.wpilibj.buttons.Button; @@ -43,9 +44,13 @@ public class OI { rightJoystick = new Joystick(Constants.OI.RIGHT_STICK_PORT); toggleGear = new JoystickButton(leftJoystick, - Constants.OI.LEFT_JOYSTICK_TRIGGER_PORT); + Constants.OI.LEFT_JOYSTICK_TOP_CENTER_PORT); toggleGear.toggleWhenPressed(new ChangeGear()); + shootBoulder = new JoystickButton(leftJoystick, + Constants.OI.LEFT_JOYSTICK_TRIGGER_PORT); + shootBoulder.whenPressed(new Shoot()); + // passPortcullis = new DigitalButton( // new DigitalInput(Constants.OI.PASS_PORTCULLIS_PORT)); // passPortcullis.whenPressed(new PassPortcullis());