public static enum ModernRoboticsI2cGyro.HeadingMode extends java.lang.Enum<ModernRoboticsI2cGyro.HeadingMode>
ModernRoboticsI2cGyro.HeadingMode
can be used to configure the software to return either cartesian or
cardinal headings.Enum Constant and Description |
---|
HEADING_CARDINAL |
HEADING_CARTESIAN |
Modifier and Type | Method and Description |
---|---|
static ModernRoboticsI2cGyro.HeadingMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ModernRoboticsI2cGyro.HeadingMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ModernRoboticsI2cGyro.HeadingMode HEADING_CARTESIAN
public static final ModernRoboticsI2cGyro.HeadingMode HEADING_CARDINAL
public static ModernRoboticsI2cGyro.HeadingMode[] values()
for (ModernRoboticsI2cGyro.HeadingMode c : ModernRoboticsI2cGyro.HeadingMode.values()) System.out.println(c);
public static ModernRoboticsI2cGyro.HeadingMode valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null