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