From 1bbb9d2afd344ef0855c1c2ea52c6b07ba1daeae Mon Sep 17 00:00:00 2001 From: Arnav495 Date: Tue, 20 Jan 2026 15:40:55 -0800 Subject: [PATCH] Throw an error if a default robotid is encountered. The old behavior of using a Default was really annoying if you forgot to set it. --- src/main/java/frc/robot/RobotId.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/frc/robot/RobotId.java b/src/main/java/frc/robot/RobotId.java index bd26230..cbce674 100644 --- a/src/main/java/frc/robot/RobotId.java +++ b/src/main/java/frc/robot/RobotId.java @@ -71,6 +71,10 @@ public enum RobotId { } } + if (robotId == RobotId.Default) { + throw new RuntimeException("RobotId is set to Default (or was unset)! Please set it to something."); + } + // return the robot identity return robotId; } -- 2.39.5