fix bugs related to Config
[3501/2017steamworks] / src / org / usfirst / frc / team3501 / robot / CameraFeeds.java
index c354594529961f38b6b252a003885bc4f740c830..34ecb42661f5a49dda7d11d91b38c1cc7295f415 100755 (executable)
@@ -11,19 +11,20 @@ public class CameraFeeds {
   private Image frame;
   private CameraServer server;
 
+  @SuppressWarnings("deprecation")
   public CameraFeeds() {
     // Get camera ids by supplying camera name ex 'cam0', found on roborio web
     // interface
-    intakeCam = NIVision.IMAQdxOpenCamera(Config.CameraFeeds.camNameCenter,
+    intakeCam = NIVision.IMAQdxOpenCamera(Constants.CameraFeeds.camNameCenter,
         NIVision.IMAQdxCameraControlMode.CameraControlModeController);
-    climberCam = NIVision.IMAQdxOpenCamera(Config.CameraFeeds.camNameRight,
+    climberCam = NIVision.IMAQdxOpenCamera(Constants.CameraFeeds.camNameRight,
         NIVision.IMAQdxCameraControlMode.CameraControlModeController);
     curCam = intakeCam;
     // Img that will contain camera img
     frame = NIVision.imaqCreateImage(NIVision.ImageType.IMAGE_RGB, 0);
     // Server that we'll give the img to
     server = CameraServer.getInstance();
-    server.setQuality(Config.CameraFeeds.imgQuality);
+    server.setSize(Constants.CameraFeeds.imgQuality);
   }
 
   public void init() {