mirror of
https://github.com/PhotonVision/photonvision
synced 2026-07-06 03:31: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;
|
return pipelineManager.driverModePipeline.settings;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public boolean getIsDriverMode() {
|
||||||
|
return pipelineManager.getDriverMode();
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* VisionProcessRunnable will process images as quickly as possible
|
* VisionProcessRunnable will process images as quickly as possible
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -136,6 +136,10 @@ public class SocketHandler {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
default: {
|
default: {
|
||||||
|
|
||||||
|
// TODO handle not setting binary stuff on driver mode
|
||||||
|
if(currentProcess.getIsDriverMode()) break;
|
||||||
|
|
||||||
setField(currentPipeline.settings, entry.getKey(), entry.getValue());
|
setField(currentPipeline.settings, entry.getKey(), entry.getValue());
|
||||||
switch (entry.getKey()) {
|
switch (entry.getKey()) {
|
||||||
case "exposure": {
|
case "exposure": {
|
||||||
|
|||||||
Reference in New Issue
Block a user