mirror of
https://github.com/PhotonVision/photonvision
synced 2026-06-22 01:11:40 +00:00
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:
@@ -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);
|
||||
|
||||
@@ -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 =
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user