Fix int/double cast exception in request handler

This commit is contained in:
Matt
2019-11-29 21:05:21 -08:00
parent bea80cb700
commit 31f5c805a3

View File

@@ -43,7 +43,8 @@ public class RequestHandler {
VisionProcess currentVisionProcess = VisionManager.getCurrentUIVisionProcess();
CameraCapture currentCamera = currentVisionProcess.getCamera();
Double newFOV = (Double) camSettings.get("fov");
Integer newFOV = (Integer) camSettings.get("fov");
Integer newStreamDivisor = (Integer) camSettings.get("streamDivisor");
Integer newResolution = (Integer) camSettings.get("resolution");