Class GameplayStateIO.GameplayStateIOInputs
java.lang.Object
frc.robot.subsystems.gameplaystate.io.GameplayStateIO.GameplayStateIOInputs
- Enclosing interface:
- GameplayStateIO
Container of gameplay state telemetry fields that AdvantageKit will persist.
-
Field Summary
FieldsModifier and TypeFieldDescriptionHuman-readable name of the active field target (e.g., "Hub", "Left Rally", "Right Rally").booleanTrue when auto-transition based on FMS match phase is enabled.Name of the current gameplay state (e.g., "Idle", "Fire Ready").doubleStraight-line distance from the robot to the active field target in meters.booleanTrue when the endgame threshold has been reached.booleanTrue when the robot is in the autonomous match phase.booleanTrue when the robot is disabled.booleanTrue when the robot is in the teleop match phase.doubleMatch time remaining in seconds, or -1.0 when unavailable.Name of the most recently requested state before it was applied.Source that triggered the most recent state transition (e.g., "operator", "fms", "auto", "timer"). -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
currentState
Name of the current gameplay state (e.g., "Idle", "Fire Ready"). -
requestedState
Name of the most recently requested state before it was applied. -
transitionSource
Source that triggered the most recent state transition (e.g., "operator", "fms", "auto", "timer"). -
isAutonomous
public boolean isAutonomousTrue when the robot is in the autonomous match phase. -
isTeleop
public boolean isTeleopTrue when the robot is in the teleop match phase. -
isDisabled
public boolean isDisabledTrue when the robot is disabled. -
matchTimeSeconds
public double matchTimeSecondsMatch time remaining in seconds, or -1.0 when unavailable. -
autoTransitionEnabled
public boolean autoTransitionEnabledTrue when auto-transition based on FMS match phase is enabled. -
endgameSuggested
public boolean endgameSuggestedTrue when the endgame threshold has been reached. -
distanceToTargetMeters
public double distanceToTargetMetersStraight-line distance from the robot to the active field target in meters. -
activeTargetName
Human-readable name of the active field target (e.g., "Hub", "Left Rally", "Right Rally").
-
-
Constructor Details
-
GameplayStateIOInputs
public GameplayStateIOInputs()
-