Attempt to toggle cameras
[3501/2017steamworks] / src / org / usfirst / frc / team3501 / robot / CameraFeeds.java
index 855d32a5bcbfe6935772af9a5ea5ce7f849ed6a9..6872428f32efd6fdf9671abc70a32e49ab747d1e 100755 (executable)
@@ -11,7 +11,7 @@ public class CameraFeeds {
   // private final int intakeCam;
   // private final int climberCam;
   private Image frame;
-  private int curCam;
+  private boolean curCam = true;
   private CameraServer server;
   private static UsbCamera intakeCam;
   private static AxisCamera climberCam;
@@ -71,6 +71,15 @@ public class CameraFeeds {
    *          for camera
    */
   public void changeCam(/* int newId */) {
+    if (curCam = true) {
+      public void removeCamera(/*Axis Camera name*/);
+      public void addCamera(VideoSource intakeCam);
+      curCam = false;
+    } else if (curCam = false) {
+      public void removeCamera(/*Usb Camera name*/);
+      public void addCamera(VideoSource climberCam);
+      curCam = false;
+    }
     // NIVision.IMAQdxStopAcquisition(curCam);
     // NIVision.IMAQdxConfigureGrab(newId);
     // NIVision.IMAQdxStartAcquisition(newId);