From: iefomit Date: Fri, 13 Feb 2026 03:01:00 +0000 (-0800) Subject: change to isSimulation() X-Git-Url: https://git.taranathan.com/?a=commitdiff_plain;h=5ac0f0507b7bf239247bdb84c2eceb271920be67;p=FRC2026.git change to isSimulation() --- 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.");