DeepBlueRobotics / lib199

Code that we reuse in different projects/years.
Other
2 stars 0 forks source link

Report spark max temperatures and add auto-disable code #16

Closed CoolSpy3 closed 3 years ago

CoolSpy3 commented 3 years ago

This code adds the temperatures of all CANSparkMax motor controllers to SmartDashboard and sets their smart current limit to 1 if they exceed 100 degrees Celsius. In this case, a message will be printed to the console, and the robot code will need to be restarted to reset the affected controllers.