Package trclib.robotcore
Enum Class TrcRobot.RunMode
- All Implemented Interfaces:
Serializable
,Comparable<TrcRobot.RunMode>
,Constable
- Enclosing class:
- TrcRobot
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe robot is in this mode during the autonomous period.In FRC, the robot is in this mode before competition starts and between mode transitions from Autonomous to TeleOp, for example.The robot is only in this mode very briefly during initialization.The robot is in this mode during the operator control period.The robot is in this mode when Test Mode is selected on the DriverStation. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic TrcRobot.RunMode
Returns the enum constant of this class with the specified name.static TrcRobot.RunMode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INVALID_MODE
The robot is only in this mode very briefly during initialization. -
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
The robot is in this mode during the autonomous period. -
TELEOP_MODE
The robot is in this mode during the operator control period. -
TEST_MODE
The robot is in this mode when Test Mode is selected on the DriverStation.
-
-
Constructor Details
-
RunMode
private RunMode()
-
-
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
-