public enum MotorControlAlgorithm extends java.lang.Enum<MotorControlAlgorithm>
DcMotor.RunMode.RUN_TO_POSITION and DcMotor.RunMode.RUN_USING_ENCODER.| Enum Constant and Description |
|---|
LegacyPID
Deprecated.
Switch to
PIDF instead |
PIDF |
Unknown |
| Modifier and Type | Method and Description |
|---|---|
static MotorControlAlgorithm |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static MotorControlAlgorithm[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MotorControlAlgorithm Unknown
@Deprecated public static final MotorControlAlgorithm LegacyPID
PIDF insteadpublic static final MotorControlAlgorithm PIDF
public static MotorControlAlgorithm[] values()
for (MotorControlAlgorithm c : MotorControlAlgorithm.values()) System.out.println(c);
public static MotorControlAlgorithm 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