]> git.taranathan.com Git - FRC2026.git/commitdiff
Throw an error if a default robotid is encountered.
authorArnav495 <arnieincyberland@gmail.com>
Tue, 20 Jan 2026 23:40:55 +0000 (15:40 -0800)
committerArnav495 <arnieincyberland@gmail.com>
Tue, 20 Jan 2026 23:40:55 +0000 (15:40 -0800)
The old behavior of using a Default was really annoying if you forgot
to set it.

src/main/java/frc/robot/RobotId.java

index bd26230a9127effbcd9fdb9e0877ca63d4e6ef2b..cbce674fc0f067900c93e8d598f37ea31c201561 100644 (file)
@@ -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;
     }