X-Git-Url: http://challenge-bot.com/repos/?a=blobdiff_plain;f=src%2Forg%2Fusfirst%2Ffrc%2Fteam3501%2Frobot%2FOI.java;h=77791cdd590c182e263a3459c04c31e7428cf2e7;hb=338130b6ad701e4a5f3f6217186d9cb45cd91895;hp=935c4c6e32eb4da8fb3dbc5590e4f51bfef6aea5;hpb=b470d03d70f3cc30a2ca8124692744496eaac155;p=3501%2F2017steamworks diff --git a/src/org/usfirst/frc/team3501/robot/OI.java b/src/org/usfirst/frc/team3501/robot/OI.java index 935c4c6..77791cd 100644 --- a/src/org/usfirst/frc/team3501/robot/OI.java +++ b/src/org/usfirst/frc/team3501/robot/OI.java @@ -1,5 +1,7 @@ package org.usfirst.frc.team3501.robot; +import org.usfirst.frc.team3501.robot.commands.accessories.ToggleCameraFeed; + import edu.wpi.first.wpilibj.Joystick; import edu.wpi.first.wpilibj.buttons.Button; import edu.wpi.first.wpilibj.buttons.JoystickButton; @@ -12,6 +14,8 @@ public class OI { public static Button toggleIndexWheel; public static Button toggleFlyWheel; + + public static Button toggleCameraFeeds; public OI() { leftJoystick = new Joystick(Constants.OI.LEFT_STICK_PORT); @@ -22,6 +26,10 @@ public class OI { Constants.OI.TOGGLE_INDEXWHEEL_PORT); toggleFlyWheel = new JoystickButton(leftJoystick, Constants.OI.TOGGLE_FLYWHEEL_PORT); + + toggleCameraFeeds = new JoystickButton(leftJoystick, Constants.OI.TOGGLE_CAMERA_FEEDS); + + toggleCameraFeeds.whenReleased(new ToggleCameraFeed()); } public static OI getOI() {