X-Git-Url: http://challenge-bot.com/repos/?a=blobdiff_plain;f=src%2Forg%2Fusfirst%2Ffrc%2Fteam3501%2Frobot%2FOI.java;h=5322f36255843eda81a4ac4e63b2f68ffb5b5b4b;hb=55504016e6ceb598032460d3d590681a1640c6a9;hp=997be71cdbe551afe2477d093f6172a28c1cfe26;hpb=38a404b33adc222b57179884470913cb4c0a011d;p=3501%2Fstronghold-2016 diff --git a/src/org/usfirst/frc/team3501/robot/OI.java b/src/org/usfirst/frc/team3501/robot/OI.java index 997be71c..5322f362 100644 --- a/src/org/usfirst/frc/team3501/robot/OI.java +++ b/src/org/usfirst/frc/team3501/robot/OI.java @@ -1,14 +1,32 @@ package org.usfirst.frc.team3501.robot; import edu.wpi.first.wpilibj.Joystick; +import edu.wpi.first.wpilibj.buttons.Button; +import edu.wpi.first.wpilibj.buttons.JoystickButton; public class OI { public static Joystick leftJoystick; public static Joystick rightJoystick; + public static Button decrementShooterSpeed; + public static Button incrementShooterSpeed; + public static Button outputCurrentShooterSpeed; + public static Button trigger; public OI() { leftJoystick = new Joystick(Constants.OI.LEFT_STICK_PORT); rightJoystick = new Joystick(Constants.OI.RIGHT_STICK_PORT); + decrementShooterSpeed = new JoystickButton(rightJoystick, + Constants.OI.DEC_SHOOTER_SPD_PORT); + + incrementShooterSpeed = new JoystickButton(rightJoystick, + Constants.OI.INC_SHOOTER_SPD_PORT); + + outputCurrentShooterSpeed = new JoystickButton(rightJoystick, + Constants.OI.SHOOT_PORT); + + trigger = new JoystickButton(rightJoystick, Constants.OI.TRIGGER_PORT); + } + }