mirror of
https://github.com/PhotonVision/photonvision
synced 2026-06-20 00:51:41 +00:00
Small fix for driver settings
This commit is contained in:
@@ -52,7 +52,7 @@ public class Camera {
|
||||
//Driver mode camera settings
|
||||
public int driverExposure;
|
||||
public int driverBrightness;
|
||||
private boolean isDriver;
|
||||
public boolean isDriver;
|
||||
|
||||
public Camera(String cameraName) {
|
||||
this(cameraName, DEFAULT_FOV);
|
||||
|
||||
@@ -238,7 +238,7 @@ public class VisionProcess implements Runnable {
|
||||
point.put("calculated", calculated);
|
||||
point.put("rawPoint", center);
|
||||
WebSend.put("point", point);
|
||||
// ServerHandler.broadcastMessage(WebSend);
|
||||
ServerHandler.broadcastMessage(WebSend);
|
||||
}
|
||||
|
||||
cameraProcess.updateFrame(streamOutputMat);
|
||||
|
||||
@@ -59,6 +59,7 @@ public class ServerHandler {
|
||||
for (HashMap.Entry<String, Object> e : ((HashMap<String, Object>) entry.getValue()).entrySet()) {
|
||||
setField(CameraManager.getCurrentCamera(), e.getKey(), e.getValue());
|
||||
}
|
||||
CameraManager.getCurrentCamera().setDriverMode((Boolean) ((HashMap<String, Object>) entry.getValue()).get("isDriver"));
|
||||
CameraManager.saveCameras();
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user