Package frc.lib.monitor.checkers
Class SparkMonitor
java.lang.Object
frc.lib.monitor.checkers.SparkMonitor
Monitors the health of a Spark Max or Spark Flex motor controller.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidupdate(boolean isConnected, int[] status) Updates the health monitor with the latest motor status.
-
Constructor Details
-
SparkMonitor
Creates a new SparkHealthMonitor.- Parameters:
name- The name of the motor for alert messages.
-
-
Method Details
-
update
public void update(boolean isConnected, int[] status) Updates the health monitor with the latest motor status.- Parameters:
isConnected- Whether the motor is connected.status- An array containing[activeFaults, stickyFaults, activeWarnings, stickyWarnings].
-