Enum Class TrcRobot.RunMode

java.lang.Object
java.lang.Enum<TrcRobot.RunMode>
trclib.robotcore.TrcRobot.RunMode
All Implemented Interfaces:
Serializable, Comparable<TrcRobot.RunMode>, Constable
Enclosing class:
TrcRobot

public static enum TrcRobot.RunMode extends Enum<TrcRobot.RunMode>
  • Enum Constant Details

    • INVALID_MODE

      public static final TrcRobot.RunMode INVALID_MODE
      The robot is only in this mode very briefly during initialization.
    • DISABLED_MODE

      public static final TrcRobot.RunMode DISABLED_MODE
      In FRC, the robot is in this mode before competition starts and between mode transitions from Autonomous to TeleOp, for example. (i.e. DISABLED_MODE to AUTO_MODE to DISABLED_MODE to TELEOP_MODE to DISABLED_MODE). This mode does not exist in FTC.
    • AUTO_MODE

      public static final TrcRobot.RunMode AUTO_MODE
      The robot is in this mode during the autonomous period.
    • TELEOP_MODE

      public static final TrcRobot.RunMode TELEOP_MODE
      The robot is in this mode during the operator control period.
    • TEST_MODE

      public static final TrcRobot.RunMode TEST_MODE
      The robot is in this mode when Test Mode is selected on the DriverStation.
  • Constructor Details

    • RunMode

      private RunMode()
  • Method Details

    • values

      public static TrcRobot.RunMode[] 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 TrcRobot.RunMode 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