From 5ac0f0507b7bf239247bdb84c2eceb271920be67 Mon Sep 17 00:00:00 2001 From: iefomit Date: Thu, 12 Feb 2026 19:01:00 -0800 Subject: [PATCH] change to isSimulation() --- src/main/java/frc/robot/RobotId.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/main/java/frc/robot/RobotId.java b/src/main/java/frc/robot/RobotId.java index f19bb5b..bdd02fd 100644 --- a/src/main/java/frc/robot/RobotId.java +++ b/src/main/java/frc/robot/RobotId.java @@ -1,7 +1,5 @@ package frc.robot; -import frc.robot.constants.Constants; - import edu.wpi.first.wpilibj.Preferences; /** @@ -74,7 +72,7 @@ public enum RobotId { } if (robotId == RobotId.Default) { - if (Constants.CURRENT_MODE == Constants.Mode.SIM) { + if (Robot.isSimulation()) { robotId = RobotId.SwerveCompetition; // Default to competition robot for simulation } else { throw new RuntimeException("RobotId is set to Default (or was unset)! Please set it to something."); -- 2.39.5