Package frc.robot
Class MotorMonitor
java.lang.Object
frc.robot.MotorMonitor
Util class that handles periodically iterating over all of the motors on the robot and notifying on the dashboard if one goes over a temperature threshold.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddMotor(HasTalonSignals motor) Adds a motor to the motor monitor.static voidupdate()Iterates over all the motors and alerts if they're over their temperature threshold.
-
Constructor Details
-
MotorMonitor
public MotorMonitor()
-
-
Method Details
-
addMotor
Adds a motor to the motor monitor.- Parameters:
motor- The motor to add.
-
update
public static void update()Iterates over all the motors and alerts if they're over their temperature threshold.
-