X-Git-Url: http://challenge-bot.com/repos/?a=blobdiff_plain;f=src%2Forg%2Fusfirst%2Ffrc%2Fteam3501%2Frobot%2FOI.java;h=243e330f5b7b1c041cd6989140d3caf989e2656c;hb=ee1a80061659d7845cf8e2654cbc2a744b967d2d;hp=c608b86b8d1767a8eeab2c2b268693ef6ce74d0e;hpb=307be8c9a0a5a8f356e70182f880529a329206c5;p=3501%2F2017steamworks diff --git a/src/org/usfirst/frc/team3501/robot/OI.java b/src/org/usfirst/frc/team3501/robot/OI.java index c608b86..243e330 100644 --- a/src/org/usfirst/frc/team3501/robot/OI.java +++ b/src/org/usfirst/frc/team3501/robot/OI.java @@ -32,6 +32,8 @@ public class OI { public static Button increaseShooterSpeed; public static Button decreaseShooterSpeed; + private static Button changeCam; + public OI() { leftJoystick = new Joystick(Constants.OI.LEFT_STICK_PORT); rightJoystick = new Joystick(Constants.OI.RIGHT_STICK_PORT); @@ -70,6 +72,10 @@ public class OI { decreaseShooterSpeed = new JoystickButton(leftJoystick, Constants.OI.DECREASE_SHOOTER_SPEED_PORT); decreaseShooterSpeed.whenPressed(new DecreaseShootingSpeed()); + + changeCam = new JoystickButton(rightJoystick, + Constants.OI.CHANGE_CAMERA_VIEW); + changeCam.toggleWhenPressed(new ChangeCameraView()); } public static OI getOI() {