public static enum DcMotorSimple.Direction extends java.lang.Enum<DcMotorSimple.Direction>
At the start of an OpMode, motors are guaranteed to be in the forward direction.
DcMotorSimple.setDirection(Direction)
Modifier and Type | Method and Description |
---|---|
DcMotorSimple.Direction |
inverted() |
static DcMotorSimple.Direction |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DcMotorSimple.Direction[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DcMotorSimple.Direction FORWARD
public static final DcMotorSimple.Direction REVERSE
public static DcMotorSimple.Direction[] values()
for (DcMotorSimple.Direction c : DcMotorSimple.Direction.values()) System.out.println(c);
public static DcMotorSimple.Direction 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 nullpublic DcMotorSimple.Direction inverted()