Fix OV9782 typos (#1358)

There were a couple of typos in the last OV9782 fix, this addresses
those. Additionally, remove Matt's comment that he forgot.
This commit is contained in:
Cameron (3539)
2024-07-01 22:14:22 -04:00
committed by GitHub
parent 173b6d9ca8
commit fab75918da
3 changed files with 2 additions and 6 deletions

View File

@@ -50,11 +50,6 @@ public class TestUtils {
public static boolean loadLibraries() {
if (has_loaded) return true;
// None of these work either, wbhich is odd to me. commented out for now
// System.load("C:\\Users\\matth\\.wpilib\\nativecache\\windows\\x86-64\\4ca969397a399d7bcd38c546fd9ac2e1\\wpiutil.dll");
// System.load("C:\\Users\\matth\\.wpilib\\nativecache\\windows\\x86-64\\4ca969397a399d7bcd38c546fd9ac2e1\\wpiutiljni.dll");
// System.err.println("Test-load yay");
NetworkTablesJNI.Helper.setExtractOnStaticLoad(false);
WPIUtilJNI.Helper.setExtractOnStaticLoad(false);
CameraServerJNI.Helper.setExtractOnStaticLoad(false);

View File

@@ -82,7 +82,7 @@ public class QuirkyCamera {
"OV9782",
"OV9782",
CameraQuirk.ArduCamCamera,
CameraQuirk.ArduOV9281));
CameraQuirk.ArduOV9782));
public static final QuirkyCamera DefaultCamera = new QuirkyCamera(0, 0, "");
public static final QuirkyCamera ZeroCopyPiCamera =

View File

@@ -202,6 +202,7 @@ public class USBCameraSource extends VisionSource {
if (getCameraConfiguration().cameraQuirks.hasQuirk(CameraQuirk.ArduOV9782)) {
try {
// Set white balance temperature to 3500 for OV9782 camera
camera.getProperty("white_balance_automatic").set(0);
camera.getProperty("white_balance_temperature").set(3500);
} catch (VideoException e) {
logger.error("Failed to set white balance temperature for OV9782 camera!", e);