Enum Class OnboardIMU.MountOrientation

java.lang.Object
java.lang.Enum<OnboardIMU.MountOrientation>
org.wpilib.hardware.imu.OnboardIMU.MountOrientation
All Implemented Interfaces:
Serializable, Comparable<OnboardIMU.MountOrientation>, Constable
Enclosing class:
OnboardIMU

public static enum OnboardIMU.MountOrientation extends Enum<OnboardIMU.MountOrientation>
A mount orientation of Systemcore.
  • Enum Constant Details

    • FLAT

      public static final OnboardIMU.MountOrientation FLAT
      Flat (mounted parallel to the ground).
    • LANDSCAPE

      public static final OnboardIMU.MountOrientation LANDSCAPE
      Landscape (vertically mounted with long edge of Systemcore parallel to the ground).
    • PORTRAIT

      public static final OnboardIMU.MountOrientation PORTRAIT
      Portrait (vertically mounted with the short edge of Systemcore parallel to the ground).
  • Method Details

    • values

      public static OnboardIMU.MountOrientation[] 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 OnboardIMU.MountOrientation 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