X-Git-Url: http://challenge-bot.com/repos/?a=blobdiff_plain;f=src%2Forg%2Fusfirst%2Ffrc%2Fteam3501%2Frobot%2FOI.java;h=87f069bdb8ce692ad33721fcbb7ed4d570bd3d89;hb=72beefffed75fb4ead02721f516ffd7a436bac45;hp=a9948d7ae500cce9d4167a140ce592530b40c59e;hpb=5bee67e1c82f6a9e7f12a1e217b1fb80beb616bf;p=3501%2F2017steamworks diff --git a/src/org/usfirst/frc/team3501/robot/OI.java b/src/org/usfirst/frc/team3501/robot/OI.java index a9948d7..87f069b 100644 --- a/src/org/usfirst/frc/team3501/robot/OI.java +++ b/src/org/usfirst/frc/team3501/robot/OI.java @@ -1,10 +1,14 @@ package org.usfirst.frc.team3501.robot; + import org.usfirst.frc.team3501.robot.commands.driving.ToggleGear; ======= import org.usfirst.frc.team3501.robot.commands.accessories.ToggleCameraFeed; >>>>>>> added command for toggling camera feeds +======= +import org.usfirst.frc.team3501.robot.commands.accessories.ToggleCameraFeed; +>>>>>>> cb0f662264528bcb0d783fcb00db22eb8d4f4283 import edu.wpi.first.wpilibj.Joystick; import edu.wpi.first.wpilibj.buttons.Button; @@ -21,6 +25,8 @@ public class OI { public static Button toggleCameraFeeds; + public static Button toggleCameraFeeds; + public static Button toggleGear; public OI() { @@ -33,6 +39,7 @@ public class OI { toggleFlyWheel = new JoystickButton(leftJoystick, Constants.OI.TOGGLE_FLYWHEEL_PORT); + toggleGear = new JoystickButton(leftJoystick, Constants.OI.TOGGLE_GEAR_PORT); toggleGear.whenPressed(new ToggleGear()); @@ -42,6 +49,12 @@ public class OI { toggleCameraFeeds.whenReleased(new ToggleCameraFeed()); + + + toggleCameraFeeds = new JoystickButton(leftJoystick, Constants.OI.TOGGLE_CAMERA_FEEDS); + + toggleCameraFeeds.whenReleased(new ToggleCameraFeed()); + } public static OI getOI() {