package org.usfirst.frc.team3501.robot;
+import org.usfirst.frc.team3501.robot.commands.accessories.ToggleCameraFeed;
import org.usfirst.frc.team3501.robot.commands.driving.ToggleGear;
import edu.wpi.first.wpilibj.Joystick;
public static Button toggleIndexWheel;
public static Button toggleFlyWheel;
+ public static Button toggleCameraFeeds;
+
public static Button toggleGear;
public OI() {
Constants.OI.TOGGLE_INDEXWHEEL_PORT);
toggleFlyWheel = new JoystickButton(leftJoystick,
Constants.OI.TOGGLE_FLYWHEEL_PORT);
+
toggleGear = new JoystickButton(leftJoystick,
Constants.OI.TOGGLE_GEAR_PORT);
toggleGear.whenPressed(new ToggleGear());
+
+ toggleCameraFeeds = new JoystickButton(leftJoystick,
+ Constants.OI.TOGGLE_CAMERA_FEEDS);
+
+ toggleCameraFeeds.whenReleased(new ToggleCameraFeed());
+
}
public static OI getOI() {