mirror of
https://github.com/PhotonVision/photonvision
synced 2026-06-21 01:01:41 +00:00
Only allow changes if we aren't driver mode right now
This commit is contained in:
@@ -224,6 +224,10 @@ public class VisionProcess {
|
||||
return pipelineManager.driverModePipeline.settings;
|
||||
}
|
||||
|
||||
public boolean getIsDriverMode() {
|
||||
return pipelineManager.getDriverMode();
|
||||
}
|
||||
|
||||
/**
|
||||
* VisionProcessRunnable will process images as quickly as possible
|
||||
*/
|
||||
|
||||
@@ -136,6 +136,10 @@ public class SocketHandler {
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
|
||||
// TODO handle not setting binary stuff on driver mode
|
||||
if(currentProcess.getIsDriverMode()) break;
|
||||
|
||||
setField(currentPipeline.settings, entry.getKey(), entry.getValue());
|
||||
switch (entry.getKey()) {
|
||||
case "exposure": {
|
||||
|
||||
Reference in New Issue
Block a user