public static enum DcMotor.ZeroPowerBehavior extends java.lang.Enum<DcMotor.ZeroPowerBehavior>
Enum Constant and Description |
---|
BRAKE
The motor stops and then brakes, actively resisting any external force which attempts
to turn the motor.
|
FLOAT
The motor stops and then floats: an external force attempting to turn the motor is not
met with active resistence.
|
UNKNOWN
The behavior of the motor when zero power is applied is not currently known.
|
Modifier and Type | Method and Description |
---|---|
static DcMotor.ZeroPowerBehavior |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DcMotor.ZeroPowerBehavior[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DcMotor.ZeroPowerBehavior UNKNOWN
DcMotor.setZeroPowerBehavior(ZeroPowerBehavior)
and will never be returned from
DcMotor.getZeroPowerBehavior()
public static final DcMotor.ZeroPowerBehavior BRAKE
public static final DcMotor.ZeroPowerBehavior FLOAT
public static DcMotor.ZeroPowerBehavior[] values()
for (DcMotor.ZeroPowerBehavior c : DcMotor.ZeroPowerBehavior.values()) System.out.println(c);
public static DcMotor.ZeroPowerBehavior 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