Package edu.wpi.first.wpilibj
Enum Class OnboardIMU.MountOrientation
- All Implemented Interfaces:
Serializable
,Comparable<OnboardIMU.MountOrientation>
,Constable
- Enclosing class:
- OnboardIMU
A mount orientation of SystemCore.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionFlat (mounted parallel to the ground).Landscape (vertically mounted with long edge of SystemCore parallel to the ground).Portrait (vertically mounted with the short edge of SystemCore parallel to the ground). -
Method Summary
Modifier and TypeMethodDescriptionstatic OnboardIMU.MountOrientation
Returns the enum constant of this class with the specified name.static OnboardIMU.MountOrientation[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
kFlat
Flat (mounted parallel to the ground). -
kLandscape
Landscape (vertically mounted with long edge of SystemCore parallel to the ground). -
kPortrait
Portrait (vertically mounted with the short edge of SystemCore parallel to the ground).
-
-
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
-