Class SparkMonitor

java.lang.Object
frc.lib.monitor.checkers.SparkMonitor

public class SparkMonitor extends Object
Monitors the health of a Spark Max or Spark Flex motor controller.
  • Constructor Details

    • SparkMonitor

      public SparkMonitor(String name)
      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].