Only allow changes if we aren't driver mode right now

This commit is contained in:
Matt
2019-11-29 21:21:40 -08:00
parent 4aa9cc5dfc
commit 55f01fb4b5
2 changed files with 8 additions and 0 deletions

View File

@@ -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
*/

View File

@@ -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": {