Skip to content

Commit

Permalink
Rebase changes
Browse files Browse the repository at this point in the history
  • Loading branch information
mcm001 committed Jul 4, 2024
1 parent fab7591 commit edb9b56
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,7 @@ public enum CameraQuirk {
/*
* Camera is an arducam ov9782 which has specific exposure ranges and needs a specific white balance issue
*/
ArduOV9782
ArduOV9782,
/** Camera has odd exposure range, and supports gain control */
See3Cam_24CUG
}
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@
public class QuirkyCamera {
private static final List<QuirkyCamera> quirkyCameras =
List.of(
// SeeCam, which has an odd exposure range
new QuirkyCamera(
0x2560, 0xc128, "See3Cam_24CUG", CameraQuirk.Gain, CameraQuirk.See3Cam_24CUG),
new QuirkyCamera(
0x9331,
0x5A3,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,9 @@ public void setExposure(double exposure) {
} else if (getCameraConfiguration().cameraQuirks.hasQuirk(CameraQuirk.ArduOV9782)) {
propMin = 1;
propMax = 60;
} else if (getCameraConfiguration().cameraQuirks.hasQuirk(CameraQuirk.See3Cam_24CUG)) {
propMin = 0;
propMax = 600;
}

var exposure_manual_val = MathUtils.map(Math.round(exposure), 0, 100, propMin, propMax);
Expand Down

0 comments on commit edb9b56

Please sign in to comment.