From a04773538859feaaea7c6264e76c40f8f5dfd83d Mon Sep 17 00:00:00 2001 From: Emma Livne Date: Sat, 8 Feb 2025 17:03:38 +0200 Subject: [PATCH] Use simulated arena only in simulation --- src/main/kotlin/frc/robot/RobotContainer.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/kotlin/frc/robot/RobotContainer.kt b/src/main/kotlin/frc/robot/RobotContainer.kt index b772a8c6..1c618a24 100644 --- a/src/main/kotlin/frc/robot/RobotContainer.kt +++ b/src/main/kotlin/frc/robot/RobotContainer.kt @@ -52,7 +52,8 @@ object RobotContainer { configureDefaultCommands() visualizer = Visualizer() - SimulatedArena.getInstance().resetFieldForAuto() + if (CURRENT_MODE == Mode.SIM) + SimulatedArena.getInstance().resetFieldForAuto() enableAutoLogOutputFor(this) }