public final static int TOGGLE_WINCH_PORT = 0;
public final static int TOGGLE_FLYWHEEL_PORT = 0;
public final static int TOGGLE_INDEXWHEEL_PORT = 0;
- public static final int TOGGLE_CAMERA_FEEDS = 4;
+
+ public final static int TOGGLE_GEAR_PORT = 0;
+
+ public static final int TOGGLE_CAMERA_FEEDS = 7;
+
++ public static final int TOGGLE_CAMERA_FEEDS = 4;
++
}
public static class Shooter {
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;
public static Button toggleIndexWheel;
public static Button toggleFlyWheel;
-
+
+ public static Button toggleCameraFeeds;
+
+ public static Button toggleCameraFeeds;
+
+ public static Button toggleGear;
+
public OI() {
leftJoystick = new Joystick(Constants.OI.LEFT_STICK_PORT);
rightJoystick = new Joystick(Constants.OI.RIGHT_STICK_PORT);
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());
+
++
++
++ toggleCameraFeeds = new JoystickButton(leftJoystick, Constants.OI.TOGGLE_CAMERA_FEEDS);
++
++ toggleCameraFeeds.whenReleased(new ToggleCameraFeed());
++
}
public static OI getOI() {
// CameraServer.getInstance().startAutomaticCapture();
// cameraServer2 = CameraServer.getInstance();
// axisCamera = cameraServer2.addAxisCamera("axisCamera", "10.35.1.11");
++
+ // cameraFeeds = new CameraFeeds();
+
+ cameraFeeds = new CameraFeeds();
++
}
public static DriveTrain getDriveTrain() {
@Override
public void teleopInit() {
+
cameraFeeds.init();
+
++ cameraFeeds.init();
++
}
@Override