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.
This code adds the temperatures of all
CANSparkMax
motor controllers toSmartDashboard
and sets their smart current limit to1
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.