Enum Class Limelight.IMUMode
- All Implemented Interfaces:
Serializable, Comparable<Limelight.IMUMode>, Constable
- Enclosing class:
Limelight
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.-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionUse the external orientation directly.Uses the external orientation.Use the internal IMU only.Internal IMU with a complementary filter converging on the external orientation.Internal IMU with a complementary filter.The camera reported a mode this library does not know (never valid to set). -
Method Summary
Modifier and TypeMethodDescriptionstatic Limelight.IMUModeReturns the enum constant of this class with the specified name.static Limelight.IMUMode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
EXTERNAL
Use the external orientation directly. -
EXTERNAL_SEED_INTERNAL
Uses the external orientation. Continuously seeds the internal IMU with it -
INTERNAL
Use the internal IMU only. -
INTERNAL_MT1_ASSIST
Internal IMU with a complementary filter. The filter converges on the MegaTag1 yaw -
INTERNAL_EXTERNAL_ASSIST
Internal IMU with a complementary filter converging on the external orientation. -
UNKNOWN
The camera reported a mode this library does not know (never valid to set).
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-