package org.usfirst.frc.team3501.robot;
-<<<<<<< HEAD
+
import org.usfirst.frc.team3501.robot.commands.driving.ToggleGear;
=======
import org.usfirst.frc.team3501.robot.commands.accessories.ToggleCameraFeed;
public static Button toggleIndexWheel;
public static Button toggleFlyWheel;
-
+
public static Button toggleCameraFeeds;
public static Button toggleGear;
Constants.OI.TOGGLE_INDEXWHEEL_PORT);
toggleFlyWheel = new JoystickButton(leftJoystick,
Constants.OI.TOGGLE_FLYWHEEL_PORT);
-<<<<<<< HEAD
+
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());
->>>>>>> added command for toggling camera feeds
+
}
public static OI getOI() {
shooter = Shooter.getShooter();
intake = Intake.getIntake();
- usbCamera = CameraServer.getInstance().startAutomaticCapture();
+ // usbCamera = CameraServer.getInstance().startAutomaticCapture();
// cameraServer2 = CameraServer;getInstance();
// axisCamera = cameraServer2.addAxisCamera("axisCamera", "10.35.1.11");
@Override
public void teleopPeriodic() {
Scheduler.getInstance().run();
-
}
}