Class GameplayStateIO.GameplayStateIOInputs

java.lang.Object
frc.robot.subsystems.gameplaystate.io.GameplayStateIO.GameplayStateIOInputs
Enclosing interface:
GameplayStateIO

public static class GameplayStateIO.GameplayStateIOInputs extends Object
Container of gameplay state telemetry fields that AdvantageKit will persist.
  • Field Details

    • currentState

      public String currentState
      Name of the current gameplay state (e.g., "Idle", "Fire Ready").
    • requestedState

      public String requestedState
      Name of the most recently requested state before it was applied.
    • transitionSource

      public String transitionSource
      Source that triggered the most recent state transition (e.g., "operator", "fms", "auto", "timer").
    • isAutonomous

      public boolean isAutonomous
      True when the robot is in the autonomous match phase.
    • isTeleop

      public boolean isTeleop
      True when the robot is in the teleop match phase.
    • isDisabled

      public boolean isDisabled
      True when the robot is disabled.
    • matchTimeSeconds

      public double matchTimeSeconds
      Match time remaining in seconds, or -1.0 when unavailable.
    • autoTransitionEnabled

      public boolean autoTransitionEnabled
      True when auto-transition based on FMS match phase is enabled.
    • endgameSuggested

      public boolean endgameSuggested
      True when the endgame threshold has been reached.
    • distanceToTargetMeters

      public double distanceToTargetMeters
      Straight-line distance from the robot to the active field target in meters.
    • activeTargetName

      public String activeTargetName
      Human-readable name of the active field target (e.g., "Hub", "Left Rally", "Right Rally").
  • Constructor Details

    • GameplayStateIOInputs

      public GameplayStateIOInputs()