Skip to content

Commit 0305a77

Browse files
samfreundcswilson252
authored andcommitted
Add AE quirk to OV2311 (PhotonVision#2411)
1 parent 53c5130 commit 0305a77

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -170,10 +170,12 @@ 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-
// we're in manual mode. Poking the camera into and out of auto exposure seems to fix it.
176+
// OV9281, OV9782, and OV2311 on Linux seems to sometimes ignore our exposure requests on
177+
// first boot if we're in manual mode. Poking the camera into and out of auto exposure seems
178+
// to fix it.
177179
try {
178180
setAutoExposureImpl(false);
179181
Thread.sleep(2000);

0 commit comments

Comments
 (0)