Skip to content

Commit

Permalink
formatting and javadoc
Browse files Browse the repository at this point in the history
  • Loading branch information
r4stered committed Sep 3, 2024
1 parent 95fc73a commit 24f94b6
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,25 @@
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);
}

@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;
Expand Down

0 comments on commit 24f94b6

Please sign in to comment.