mirror of
https://github.com/PhotonVision/photonvision
synced 2026-06-26 01:51:40 +00:00
Add AE quirk to OV2311 (#2411)
This commit is contained in:
@@ -170,10 +170,12 @@ public class GenericUSBCameraSettables extends VisionSourceSettables {
|
||||
@Override
|
||||
public void setAutoExposure(boolean cameraAutoExposure) {
|
||||
if ((configuration.cameraQuirks.hasQuirk(CameraQuirk.ArduOV9281Controls)
|
||||
|| configuration.cameraQuirks.hasQuirk(CameraQuirk.ArduOV9782Controls))
|
||||
|| configuration.cameraQuirks.hasQuirk(CameraQuirk.ArduOV9782Controls)
|
||||
|| configuration.cameraQuirks.hasQuirk(CameraQuirk.ArduOV2311Controls))
|
||||
&& !cameraAutoExposure) {
|
||||
// OV9281 and OV9782 on Linux seems to sometimes ignore our exposure requests on first boot if
|
||||
// we're in manual mode. Poking the camera into and out of auto exposure seems to fix it.
|
||||
// OV9281, OV9782, and OV2311 on Linux seems to sometimes ignore our exposure requests on
|
||||
// first boot if we're in manual mode. Poking the camera into and out of auto exposure seems
|
||||
// to fix it.
|
||||
try {
|
||||
setAutoExposureImpl(false);
|
||||
Thread.sleep(2000);
|
||||
|
||||
Reference in New Issue
Block a user