diff --git a/photon-core/src/main/java/org/photonvision/vision/camera/USBCameras/ArduOV2311CameraSettables.java b/photon-core/src/main/java/org/photonvision/vision/camera/USBCameras/ArduOV2311CameraSettables.java index 1f04948f07..70af64f4bb 100644 --- a/photon-core/src/main/java/org/photonvision/vision/camera/USBCameras/ArduOV2311CameraSettables.java +++ b/photon-core/src/main/java/org/photonvision/vision/camera/USBCameras/ArduOV2311CameraSettables.java @@ -20,6 +20,9 @@ import edu.wpi.first.cscore.UsbCamera; import org.photonvision.common.configuration.CameraConfiguration; +/* + * This class holds the non-windows camera quirks for the Arducam OV2311. This version supports auto-exposure, while windows does not. + */ public class ArduOV2311CameraSettables extends GenericUSBCameraSettables { public ArduOV2311CameraSettables(CameraConfiguration configuration, UsbCamera camera) { super(configuration, camera); diff --git a/photon-core/src/main/java/org/photonvision/vision/camera/USBCameras/ArduOV2311WindowsCameraSettables.java b/photon-core/src/main/java/org/photonvision/vision/camera/USBCameras/ArduOV2311WindowsCameraSettables.java index 3272c90f6f..51cfd6ba51 100644 --- a/photon-core/src/main/java/org/photonvision/vision/camera/USBCameras/ArduOV2311WindowsCameraSettables.java +++ b/photon-core/src/main/java/org/photonvision/vision/camera/USBCameras/ArduOV2311WindowsCameraSettables.java @@ -20,9 +20,11 @@ import edu.wpi.first.cscore.UsbCamera; import edu.wpi.first.cscore.VideoException; import edu.wpi.first.math.MathUtil; - import org.photonvision.common.configuration.CameraConfiguration; +/* + * This class holds the windows specific camera quirks for the Arducam ov2311. A windows version is needed because windows doesn't expose the auto exposure properties of the arducam. + */ public class ArduOV2311WindowsCameraSettables extends GenericUSBCameraSettables { public ArduOV2311WindowsCameraSettables(CameraConfiguration configuration, UsbCamera camera) { super(configuration, camera); @@ -30,8 +32,13 @@ public ArduOV2311WindowsCameraSettables(CameraConfiguration configuration, UsbCa @Override protected void setUpExposureProperties() { - var expProp = findProperty( - "raw_exposure_absolute", "raw_exposure_time_absolute", "exposure", "raw_Exposure", "Exposure"); + var expProp = + findProperty( + "raw_exposure_absolute", + "raw_exposure_time_absolute", + "exposure", + "raw_Exposure", + "Exposure"); exposureAbsProp = expProp.get(); autoExposureProp = null;