]> git.taranathan.com Git - FRC2026.git/commitdiff
change to isSimulation()
authoriefomit <timofei.stem@gmail.com>
Fri, 13 Feb 2026 03:01:00 +0000 (19:01 -0800)
committeriefomit <timofei.stem@gmail.com>
Fri, 13 Feb 2026 03:01:00 +0000 (19:01 -0800)
src/main/java/frc/robot/RobotId.java

index f19bb5ba5d5f863851872abbbec03f411e8beb8e..bdd02fd720df4cf22b78ece12fc72286be6fe40c 100644 (file)
@@ -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.");