Class GameplayStateSubsystemConfig
Controls automatic state transitions triggered by FMS match phase changes and match time thresholds. All threshold values are tunable at runtime through AdvantageKit-backed SmartDashboard entries when not attached to the FMS.
-
Nested Class Summary
Nested classes/interfaces inherited from class frc.robot.shared.config.AbstractConfig
AbstractConfig.ComponentPoseConfig -
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanEnables automatic state transitions based on FMS match phase (autonomous, teleop, disabled).doubleMatch time threshold in seconds below which the subsystem sets the endgame suggestion flag for dashboard alerts.doubleDelay in seconds before the harvester arm sweeps Fuel toward the shooting array during fire ready.Fields inherited from class frc.robot.shared.config.AbstractSubsystemConfig
enabled, verbose -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns whether FMS-based automatic state transitions are enabled.doubleReturns the endgame match time threshold in seconds.doubleReturns the delay in seconds before the harvester sweeps Fuel forward during fire ready.Methods inherited from class frc.robot.shared.config.AbstractSubsystemConfig
getVerboseMethods inherited from class frc.robot.shared.config.AbstractConfig
getDashboardPrefix, initializeNestedDashboardPrefixes, readTunableBoolean, readTunableDegrees, readTunableDegreesAsRadians, readTunableNumber, readTunableString, setDashboardPrefix
-
Field Details
-
endgameThresholdSeconds
public double endgameThresholdSecondsMatch time threshold in seconds below which the subsystem sets the endgame suggestion flag for dashboard alerts.Only evaluated during teleop. A value of 30.0 means the suggestion fires when approximately 30 seconds remain in the teleop period.
-
autoTransitionEnabled
public boolean autoTransitionEnabledEnables automatic state transitions based on FMS match phase (autonomous, teleop, disabled).When true, the subsystem automatically transitions to
AUTO_CYCLEat the start of autonomous, reverts toIDLEat the start of teleop, and forcesIDLEwhen the robot is disabled. -
fireReadySweepDelaySeconds
public double fireReadySweepDelaySecondsDelay in seconds before the harvester arm sweeps Fuel toward the shooting array during fire ready.When the robot enters the FIRE_READY state, it begins shooting immediately. After this delay elapses, the harvester raises to its sweep position to push remaining Fuel forward from the back of the hopper. A value of 10.0 means the sweep starts 10 seconds into the firing sequence.
-
-
Constructor Details
-
GameplayStateSubsystemConfig
public GameplayStateSubsystemConfig()
-
-
Method Details
-
getEndgameThresholdSeconds
public double getEndgameThresholdSeconds()Returns the endgame match time threshold in seconds.- Returns:
- seconds remaining in teleop below which the endgame suggestion flag is set
-
getAutoTransitionEnabled
public boolean getAutoTransitionEnabled()Returns whether FMS-based automatic state transitions are enabled.- Returns:
- true when the subsystem should automatically transition states based on match phase
-
getFireReadySweepDelaySeconds
public double getFireReadySweepDelaySeconds()Returns the delay in seconds before the harvester sweeps Fuel forward during fire ready.After this many seconds of firing, the harvester arm raises to the sweep position to push remaining Fuel from the back of the hopper toward the shooting array. Tunable at runtime so operators can adjust based on hopper fill level and shot cadence.
- Returns:
- delay in seconds before the harvester sweep activates during fire ready
-