Package frc.robot.constants
Class ModeConstants
java.lang.Object
frc.robot.constants.ModeConstants
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.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ModeConstants.ModeAutomatically detected execution mode.static final doubleThe primary robot loop period in seconds (50Hz = 0.02s).static final booleanSet to true to force REPLAY mode regardless of runtime environment. -
Method Summary
-
Field Details
-
OVERRIDE_REPLAY
public static final boolean OVERRIDE_REPLAYSet to true to force REPLAY mode regardless of runtime environment.- See Also:
-
CURRENT_MODE
Automatically detected execution mode. -
LOOP_PERIOD_SECS
public static final double LOOP_PERIOD_SECSThe primary robot loop period in seconds (50Hz = 0.02s).- See Also:
-