DeepBlueRobotics/lib199

Temperature checking is occasionally reporting bogus temperatures and disabling motors.

Closed this issue · 1 comments

For now, just comment this line out:

MotorErrors.reportSparkMaxTemp(spark, temperatureLimit);

I've tried to reproduce the problem by checking if the temp is too high from within RobotCode2023's Arm.java but haven't succeeded. However, not calling reportSparkMaxTemp() definitely makes the problem go away.

Specifically, I'm seeing:

Port 17 spark max is operating at 188.0 degrees Celsius! It will be disabled until the robot code is restarted.

but the value displayed on SmartDashboard seems to be consistently at 24. So I suspect the reported temperature spike only happens occasionally for some reason. Notably, the report high temp occurs shortly after:

Whoops, big oopsie : fault error(s) with spark max id : 17: [ ], ooF!
Bruh, you did an Error : sticky fault(s) error with spark max id : 17: kIWDTReset kEEPROMCRC kCANRX kHasReset kSoftLimitRev , Ouch!

I suspect the sticky faults are unrelated, but it's getting some sort of fault.