X-Git-Url: http://challenge-bot.com/repos/?a=blobdiff_plain;f=src%2Forg%2Fusfirst%2Ffrc%2Fteam3501%2Frobot%2FCameraFeeds.java;h=34ecb42661f5a49dda7d11d91b38c1cc7295f415;hb=fbc1210e2473bf59f8e7f97e25aad9985b4ec7dd;hp=c354594529961f38b6b252a003885bc4f740c830;hpb=1cac6c82d7cd42d210d46ae0edb59bc10f44ba26;p=3501%2F2017steamworks diff --git a/src/org/usfirst/frc/team3501/robot/CameraFeeds.java b/src/org/usfirst/frc/team3501/robot/CameraFeeds.java index c354594..34ecb42 100755 --- a/src/org/usfirst/frc/team3501/robot/CameraFeeds.java +++ b/src/org/usfirst/frc/team3501/robot/CameraFeeds.java @@ -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() {