mirror of
https://github.com/PhotonVision/photonvision
synced 2026-06-20 00:51:41 +00:00
Only change LED state in the vendor camera vision module (#206)
This commit is contained in:
@@ -270,7 +270,7 @@ public class VisionModule {
|
||||
|
||||
void setDriverMode(boolean isDriverMode) {
|
||||
pipelineManager.setDriverMode(isDriverMode);
|
||||
setVisionLEDs(!isDriverMode);
|
||||
if (isVendorCamera()) setVisionLEDs(!isDriverMode);
|
||||
saveAndBroadcastAll();
|
||||
}
|
||||
|
||||
@@ -368,7 +368,7 @@ public class VisionModule {
|
||||
visionSource.getSettables().setGain(Math.max(0, config.cameraGain));
|
||||
}
|
||||
|
||||
setVisionLEDs(config.ledMode);
|
||||
if (isVendorCamera()) setVisionLEDs(config.ledMode);
|
||||
|
||||
visionSource.getSettables().getConfiguration().currentPipelineIndex =
|
||||
pipelineManager.getCurrentPipelineIndex();
|
||||
|
||||
Reference in New Issue
Block a user