Class ModeConstants

java.lang.Object
frc.robot.constants.ModeConstants

public final class ModeConstants extends Object
Central mode configuration for robot execution context (Real hardware, Simulation, or Replay).

The mode is automatically detected from the WPILib runtime environment. To force replay mode, set OVERRIDE_REPLAY to true.

  • Field Details

    • OVERRIDE_REPLAY

      public static final boolean OVERRIDE_REPLAY
      Set to true to force REPLAY mode regardless of runtime environment.
      See Also:
    • CURRENT_MODE

      public static final ModeConstants.Mode CURRENT_MODE
      Automatically detected execution mode.
    • LOOP_PERIOD_SECS

      public static final double LOOP_PERIOD_SECS
      The primary robot loop period in seconds (50Hz = 0.02s).
      See Also: