Package org.photonvision.vision.camera
Class QuirkyCamera
java.lang.Object
org.photonvision.vision.camera.QuirkyCamera
-
Field Summary
Modifier and TypeFieldDescriptionfinal String
static final QuirkyCamera
final String
final HashMap<CameraQuirk,
Boolean> final int
final int
static final QuirkyCamera
-
Constructor Summary
ConstructorDescriptionQuirkyCamera
(String baseName, int usbVid, int usbPid, String displayName, HashMap<CameraQuirk, Boolean> quirks) -
Method Summary
Modifier and TypeMethodDescriptionboolean
static QuirkyCamera
getQuirkyCamera
(int usbVid, int usbPid) static QuirkyCamera
getQuirkyCamera
(int usbVid, int usbPid, String baseName) int
hashCode()
boolean
hasQuirk
(CameraQuirk quirk) Check if this cameraboolean
toString()
void
updateQuirks
(HashMap<CameraQuirk, Boolean> quirksToChange) Add/remove quirks from the camera we're controlling
-
Field Details
-
DefaultCamera
-
ZeroCopyPiCamera
-
baseName
-
usbVid
public final int usbVid -
usbPid
public final int usbPid -
displayName
-
quirks
-
-
Constructor Details
-
QuirkyCamera
public QuirkyCamera(String baseName, int usbVid, int usbPid, String displayName, HashMap<CameraQuirk, Boolean> quirks)
-
-
Method Details
-
hasQuirk
Check if this camera- Parameters:
quirk
-- Returns:
-
getQuirkyCamera
-
getQuirkyCamera
-
hasQuirks
public boolean hasQuirks() -
equals
-
toString
-
hashCode
public int hashCode() -
updateQuirks
Add/remove quirks from the camera we're controlling- Parameters:
quirksToChange
- map of true/false for quirks we should change
-