Package com.crossbotics.ftchelper.drive
Enum Class AutoDrive.Result
- All Implemented Interfaces:
Serializable,Comparable<AutoDrive.Result>,Constable
- Enclosing class:
AutoDrive
How a move ended. Every move and turn returns one of these, so your autonomous can react
(for example, skip the next step if the robot got stuck).
An
enum is a fixed list of named choices; a variable of this type can only be one of them.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionReached the target.Did not move, or stopped: the odometry is not working (a cable, a fault).Stopped early because the robot was stuck.Stopped because the OpMode was stopped.Stopped because it took longer thanactionTimeoutSec. -
Method Summary
Modifier and TypeMethodDescriptionstatic AutoDrive.ResultReturns the enum constant of this class with the specified name.static AutoDrive.Result[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DONE
Reached the target. -
NO_ODOMETRY
Did not move, or stopped: the odometry is not working (a cable, a fault). -
STALLED
Stopped early because the robot was stuck. -
TIMED_OUT
Stopped because it took longer thanactionTimeoutSec. -
STOPPED
Stopped because the OpMode was stopped.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-