Enum Class GameplayState
- All Implemented Interfaces:
Serializable,Comparable<GameplayState>,Constable
Enumerates the high-level operating modes the robot can be in during a match.
Each state describes a coordinated configuration of multiple subsystems. When the robot transitions into a state, the
GameplayStateSubsystem publishes the new value and the command factory schedules the appropriate parallel command group so every mechanism
moves into position together.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionCombined harvest and fire mode for maximum autonomous throughput.Reverses the ball path to clear a jam.Robot is primed to shoot Fuel.Robot is configured to collect Fuel from the field.All mechanisms at rest.Safe transit mode for moving across the field.Low-profile transit mode for passing under field obstacles such as the trench. -
Method Summary
Modifier and TypeMethodDescriptionReturns a human-readable name for dashboard display and telemetry logging.static GameplayStateReturns the enum constant of this class with the specified name.static GameplayState[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
IDLE
All mechanisms at rest. Harvester stowed, turret centered, shooter at idle RPM, ball-path subsystems idle.This is the default state when no specific action is requested.
-
HARVEST_READY
Robot is configured to collect Fuel from the field. Harvester deployed, intake and feeder running forward, indexer in feed mode, shooter at idle RPM, turret tracking the field target. -
FIRE_READY
Robot is primed to shoot Fuel. Shooter spun up to distance-based RPM, turret tracking the field target, indexer and feeder primed to feed on command. Harvester stowed. -
AUTO_CYCLE
Combined harvest and fire mode for maximum autonomous throughput. Turret tracks the target while the intake collects Fuel simultaneously. All ball-path subsystems run forward and the shooter stays spun up. -
EJECT
Reverses the ball path to clear a jam. Intake, feeder, and indexer run in reverse. Shooter stops. Harvester stays in its current position. -
TRAVEL
Safe transit mode for moving across the field. The harvester stows to stay inside the frame perimeter while all other mechanisms idle. -
TRENCH_TRAVEL
Low-profile transit mode for passing under field obstacles such as the trench. The harvester deploys so the robot's profile clears the trench opening while all other mechanisms idle.
-
-
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
-
getDisplayName
Returns a human-readable name for dashboard display and telemetry logging.- Returns:
- display-friendly state name
-