Enum Class LimelightSettings.ImuMode
java.lang.Object
java.lang.Enum<LimelightSettings.ImuMode>
io.github.roboblazers7617.limelight.LimelightSettings.ImuMode
- All Implemented Interfaces:
Serializable
,Comparable<LimelightSettings.ImuMode>
,Constable
- Enclosing class:
- LimelightSettings
IMU Mode Enum for the
Limelight
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionUse internal IMU for MT2 localization while correcting it with external IMU updates fromLimelight.setRobotOrientation(edu.wpi.first.math.geometry.Rotation3d)
.Use external IMU yaw submitted viaLimelight.setRobotOrientation(edu.wpi.first.math.geometry.Rotation3d)
for MT2 localization.Use internal IMU for MT2 localization.Use internal IMU for MT2 localization while using correcting it with estimated yaws from MT1.Use external IMU yaw submitted viaLimelight.setRobotOrientation(edu.wpi.first.math.geometry.Rotation3d)
for MT2 localization. -
Method Summary
Modifier and TypeMethodDescriptionstatic LimelightSettings.ImuMode
Returns the enum constant of this class with the specified name.static LimelightSettings.ImuMode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ExternalImu
Use external IMU yaw submitted viaLimelight.setRobotOrientation(edu.wpi.first.math.geometry.Rotation3d)
for MT2 localization. The internal IMU is ignored entirely. -
SyncInternalImu
Use external IMU yaw submitted viaLimelight.setRobotOrientation(edu.wpi.first.math.geometry.Rotation3d)
for MT2 localization. The internal IMU is synced with the external IMU. -
InternalImu
Use internal IMU for MT2 localization. Ignores external IMU updates fromLimelight.setRobotOrientation(edu.wpi.first.math.geometry.Rotation3d)
. -
MT1AssistInternalImu
Use internal IMU for MT2 localization while using correcting it with estimated yaws from MT1. Ignores external IMU updates fromLimelight.setRobotOrientation(edu.wpi.first.math.geometry.Rotation3d)
. -
ExternalAssistInternalIMU
Use internal IMU for MT2 localization while correcting it with external IMU updates fromLimelight.setRobotOrientation(edu.wpi.first.math.geometry.Rotation3d)
.
-
-
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
-