From: Arnav495 Date: Tue, 20 Jan 2026 23:40:55 +0000 (-0800) Subject: Throw an error if a default robotid is encountered. X-Git-Url: https://git.taranathan.com/?a=commitdiff_plain;h=1bbb9d2afd344ef0855c1c2ea52c6b07ba1daeae;p=FRC2026.git 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. --- 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; }