Enum Class AutoEnd.Reason

java.lang.Object
java.lang.Enum<AutoEnd.Reason>
frc.robot.auton.AutoEnd.Reason
All Implemented Interfaces:
Serializable, Comparable<AutoEnd.Reason>, Constable
Enclosing class:
AutoEnd

public static enum AutoEnd.Reason extends Enum<AutoEnd.Reason>
Why the auto command ended.
  • Enum Constant Details

    • FINISHED

      public static final AutoEnd.Reason FINISHED
      The auto ran to its end.
    • TIMED_OUT

      public static final AutoEnd.Reason TIMED_OUT
      It ran past its time limit and was cancelled.
    • INTERRUPTED

      public static final AutoEnd.Reason INTERRUPTED
      Another command took one of its subsystems; Auton/EndInterruptedBy names it.
    • CANCELLED

      public static final AutoEnd.Reason CANCELLED
      Cancelled by code while enabled, with nothing taking its place.
    • E_STOP

      public static final AutoEnd.Reason E_STOP
      Disabled by an E-stop.
    • END_OF_PERIOD

      public static final AutoEnd.Reason END_OF_PERIOD
      Disabled with no time left in the period: the normal end of a match's auto.
    • DISABLED_BY_FMS_EARLY

      public static final AutoEnd.Reason 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

      public static final AutoEnd.Reason DISABLED_BY_DS
      Disabled from a Driver Station with no field attached.
    • DS_DISCONNECTED

      public static final AutoEnd.Reason DS_DISCONNECTED
      Disabled because the Driver Station stopped talking to the robot (a comms drop).
  • Method Details

    • values

      public static AutoEnd.Reason[] 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

      public static AutoEnd.Reason valueOf(String name)
      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 name
      NullPointerException - if the argument is null