Class QuirkyCamera

java.lang.Object
org.photonvision.vision.camera.QuirkyCamera

public class QuirkyCamera extends Object
  • Field Details

    • DefaultCamera

      public static final QuirkyCamera DefaultCamera
    • ZeroCopyPiCamera

      public static final QuirkyCamera ZeroCopyPiCamera
    • baseName

      public final String baseName
    • usbVid

      public final int usbVid
    • usbPid

      public final int usbPid
    • displayName

      public final String displayName
    • quirks

      public final HashMap<CameraQuirk,Boolean> quirks
  • Constructor Details

  • Method Details

    • hasQuirk

      public boolean hasQuirk(CameraQuirk quirk)
      Check if this camera
      Parameters:
      quirk -
      Returns:
    • getQuirkyCamera

      public static QuirkyCamera getQuirkyCamera(int usbVid, int usbPid)
    • getQuirkyCamera

      public static QuirkyCamera getQuirkyCamera(int usbVid, int usbPid, String baseName)
    • hasQuirks

      public boolean hasQuirks()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • updateQuirks

      public void updateQuirks(HashMap<CameraQuirk,Boolean> quirksToChange)
      Add/remove quirks from the camera we're controlling
      Parameters:
      quirksToChange - map of true/false for quirks we should change