You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/main/java/org/carlmontrobotics/lib199/MotorErrors.java
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -131,6 +131,8 @@ public static void doReportSparkMaxTemp() {
131
131
// Check if temperature exceeds the setpoint or if the contoller has already overheated to prevent other code from resetting the current limit after the controller has cooled
132
132
if(numTrips >= kOverheatTripCount) {
133
133
if(numTrips < kOverheatTripCount + 1) {
134
+
// Set trip count to kOverheatTripCount + 1 to flag that an error message has already been printed
135
+
// This prevents the error message from being re-printed every time the periodic method is run
System.err.println("Port " + port + " spark max is operating at " + temp + " degrees Celsius! It will be disabled until the robot code is restarted.");
0 commit comments