implement CameraFeeds into robot.java and add todos
authorMeryem Esa <meresa14@gmail.com>
Fri, 3 Feb 2017 03:38:35 +0000 (19:38 -0800)
committerRayan Hirech <ramine411@gmail.com>
Tue, 7 Feb 2017 03:45:38 +0000 (19:45 -0800)
src/org/usfirst/frc/team3501/robot/CameraFeeds.java
src/org/usfirst/frc/team3501/robot/Robot.java

index c6cd477e7b159b61039437f8dd7d7c3cf9603f1d..c354594529961f38b6b252a003885bc4f740c830 100755 (executable)
@@ -32,10 +32,10 @@ public class CameraFeeds {
 
   public void run()
   {
-    if()
+    if(/*add test for toggle*/)
       changeCam(intakeCam);
 
-    if()
+    if(/*add test for toggle*/)
       changeCam(climberCam);
 
     updateCam();
index 29b1a3cdde2ecea9d847eb48dbf3b215fdae0e71..5be99d560fe62e46627fb3a66978f879d6c2f6ec 100644 (file)
@@ -18,6 +18,7 @@ public class Robot extends IterativeRobot {
   private static UsbCamera usbCamera;
   private static CameraServer cameraServer2;
   private static AxisCamera axisCamera;
+  private static CameraFeeds cameraFeeds;
 
   @Override
   public void robotInit() {
@@ -33,7 +34,11 @@ public class Robot extends IterativeRobot {
 
     cameraServer2 = CameraServer.getInstance();
     axisCamera = cameraServer2.addAxisCamera("axisCamera", "10.35.1.11");
+<<<<<<< HEAD
 
+=======
+    cameraFeeds = new CameraFeeds();
+>>>>>>> implement CameraFeeds into robot.java and add todos
   }
 
   public static DriveTrain getDriveTrain() {
@@ -67,12 +72,17 @@ public class Robot extends IterativeRobot {
 
   @Override
   public void teleopInit() {
+<<<<<<< HEAD
 
+=======
+    cameraFeeds.init();
+>>>>>>> implement CameraFeeds into robot.java and add todos
   }
 
   @Override
   public void teleopPeriodic() {
     Scheduler.getInstance().run();
+    cameraFeeds.run();
 
   }
 }