Enum Class VisionTelemetryField

java.lang.Object
java.lang.Enum<VisionTelemetryField>
yall.telemetry.VisionTelemetryField
All Implemented Interfaces:
Serializable, Comparable<VisionTelemetryField>, Constable

public enum VisionTelemetryField extends Enum<VisionTelemetryField>
One group of values a camera can publish, and the lowest verbosity that publishes it.
  • Enum Constant Details

    • CONNECTED

      public static final VisionTelemetryField CONNECTED
      connected: whether the camera is sending data.
    • HAS_TARGETS

      public static final VisionTelemetryField HAS_TARGETS
      hasTargets: whether the newest frame has targets.
    • TARGET_COUNT

      public static final VisionTelemetryField TARGET_COUNT
      targetCount: how many targets the newest frame has.
    • ACCEPTED_POSES

      public static final VisionTelemetryField ACCEPTED_POSES
      acceptedPoses: the pose estimates the filter accepted in the last update.
    • REJECTED_POSES

      public static final VisionTelemetryField REJECTED_POSES
      rejectedPoses: the pose estimates the filter rejected in the last update.
    • REJECTION_REASON

      public static final VisionTelemetryField REJECTION_REASON
      rejectionReason: why the filter last rejected an estimate.
    • LATENCY

      public static final VisionTelemetryField LATENCY
      latencyMillis: the newest frame's latency.
    • FILTER_STATS

      public static final VisionTelemetryField FILTER_STATS
      stats/...: pose filter counts (accepted, rejected, rejected by each check, acceptance rate) and the spread of the accepted poses (mean, standard deviations, sample count). Set stats/reset to true to start counting again.
    • TARGETS

      public static final VisionTelemetryField TARGETS
      targets/...: every target's ID, yaw, pitch and area.
  • Method Details

    • values

      public static VisionTelemetryField[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static VisionTelemetryField valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getVerbosity

      public TelemetryVerbosity getVerbosity()
      The lowest verbosity that publishes this field.
      Returns:
      The verbosity.