Package com.flarerobotics.lib.auto
Enum Class AutonomousManager.PrimaryCommandSource
java.lang.Object
java.lang.Enum<AutonomousManager.PrimaryCommandSource>
com.flarerobotics.lib.auto.AutonomousManager.PrimaryCommandSource
- All Implemented Interfaces:
Serializable
,Comparable<AutonomousManager.PrimaryCommandSource>
,Constable
- Enclosing class:
- AutonomousManager
public static enum AutonomousManager.PrimaryCommandSource
extends Enum<AutonomousManager.PrimaryCommandSource>
The primary source to get the autonomous command from for the
AutonomousManager
.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionGets the command from the command sendable chooser.Gets the command from a dashboard string input.Disables the autonomous mode.Gets the command from the supplier provided.Gets the command from the Flare autonomous routine builder widget. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONE
Disables the autonomous mode. The pre-auto command will still be ran. -
SUPPLIER
Gets the command from the supplier provided. -
CHOOSER_COMMAND
Gets the command from the command sendable chooser. -
DASHBOARD_PATTERN_STRING_INPUT
Gets the command from a dashboard string input. -
WIDGET_AUTO_BUILDER_INTEGRATION
Gets the command from the Flare autonomous routine builder widget. (ShuffleBoard)
-
-
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
-