Skip to content

Commit ac263d9

Browse files
committed
add ov2311 to exposure check
1 parent b5277e5 commit ac263d9

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

photon-core/src/main/java/org/photonvision/vision/camera/USBCameras/GenericUSBCameraSettables.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,9 +170,11 @@ public void setAutoWhiteBalance(boolean autoWB) {
170170
@Override
171171
public void setAutoExposure(boolean cameraAutoExposure) {
172172
if ((configuration.cameraQuirks.hasQuirk(CameraQuirk.ArduOV9281Controls)
173-
|| configuration.cameraQuirks.hasQuirk(CameraQuirk.ArduOV9782Controls))
173+
|| configuration.cameraQuirks.hasQuirk(CameraQuirk.ArduOV9782Controls)
174+
|| configuration.cameraQuirks.hasQuirk(CameraQuirk.ArduOV2311Controls))
174175
&& !cameraAutoExposure) {
175-
// OV9281 and OV9782 on Linux seems to sometimes ignore our exposure requests on first boot if
176+
// OV9281, OV9782, and OV2311 on Linux seems to sometimes ignore our exposure requests on
177+
// first boot if
176178
// we're in manual mode. Poking the camera into and out of auto exposure seems to fix it.
177179
try {
178180
setAutoExposureImpl(false);

0 commit comments

Comments
 (0)