reworked driverMode, fixed streamDivisor

This commit is contained in:
Banks Troutman
2019-11-02 03:34:51 -04:00
parent 58e39b2922
commit bff2c2d8e0
5 changed files with 117 additions and 56 deletions

View File

@@ -17,8 +17,8 @@ public class CameraSerializer implements JsonSerializer<Camera> {
obj.addProperty("resolution", camera.getVideoModeIndex());
obj.add("camVideoMode", context.serialize(camera.getVideoMode()));
obj.add("isDriver",context.serialize(camera.getDriverMode()));
obj.add("driverExposure",context.serialize(camera.driverExposure));
obj.add("driverBrightness",context.serialize(camera.driverBrightness));
obj.add("driverExposure",context.serialize(camera.getDriverExposure()));
obj.add("driverBrightness",context.serialize(camera.getDriverBrightness()));
return obj;
}
}