Enum Class Limelight.IMUMode

java.lang.Object
java.lang.Enum<Limelight.IMUMode>
com.limelightvision.Limelight.IMUMode
All Implemented Interfaces:
Serializable, Comparable<Limelight.IMUMode>, Constable
Enclosing class:
Limelight

public static enum Limelight.IMUMode extends Enum<Limelight.IMUMode>
IMU sources for the robot yaw that MegaTag2 uses. The external orientation comes from Limelight.setRobotOrientation(double, boolean) or Limelight.setSharedRobotOrientation(double). Only cameras with a built-in IMU use this.
  • Enum Constant Details

    • EXTERNAL

      public static final Limelight.IMUMode EXTERNAL
      Use the external orientation directly.
    • EXTERNAL_SEED_INTERNAL

      public static final Limelight.IMUMode EXTERNAL_SEED_INTERNAL
      Uses the external orientation. Continuously seeds the internal IMU with it
    • INTERNAL

      public static final Limelight.IMUMode INTERNAL
      Use the internal IMU only.
    • INTERNAL_MT1_ASSIST

      public static final Limelight.IMUMode INTERNAL_MT1_ASSIST
      Internal IMU with a complementary filter. The filter converges on the MegaTag1 yaw
    • INTERNAL_EXTERNAL_ASSIST

      public static final Limelight.IMUMode INTERNAL_EXTERNAL_ASSIST
      Internal IMU with a complementary filter converging on the external orientation.
    • UNKNOWN

      public static final Limelight.IMUMode UNKNOWN
      The camera reported a mode this library does not know (never valid to set).
  • Method Details

    • values

      public static Limelight.IMUMode[] 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 Limelight.IMUMode 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