Enum Class AutoEnd.Reason
- All Implemented Interfaces:
Serializable, Comparable<AutoEnd.Reason>, Constable
- Enclosing class:
AutoEnd
Why the auto command ended.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionCancelled by code while enabled, with nothing taking its place.Disabled from a Driver Station with no field attached.Disabled by the field with time left in the period.Disabled because the Driver Station stopped talking to the robot (a comms drop).Disabled by an E-stop.Disabled with no time left in the period: the normal end of a match's auto.The auto ran to its end.Another command took one of its subsystems;Auton/EndInterruptedBynames it.It ran past its time limit and was cancelled. -
Method Summary
Modifier and TypeMethodDescriptionstatic AutoEnd.ReasonReturns the enum constant of this class with the specified name.static AutoEnd.Reason[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
FINISHED
The auto ran to its end. -
TIMED_OUT
It ran past its time limit and was cancelled. -
INTERRUPTED
Another command took one of its subsystems;Auton/EndInterruptedBynames it. -
CANCELLED
Cancelled by code while enabled, with nothing taking its place. -
E_STOP
Disabled by an E-stop. -
END_OF_PERIOD
Disabled with no time left in the period: the normal end of a match's auto. -
DISABLED_BY_FMS_EARLY
Disabled by the field with time left in the period. The 2027 Driver Station API has no A-Stop flag, so an A-Stop and a field fault look the same here. -
DISABLED_BY_DS
Disabled from a Driver Station with no field attached. -
DS_DISCONNECTED
Disabled because the Driver Station stopped talking to the robot (a comms drop).
-
-
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
-