AlertPingu

public class AlertPingu extends SubsystemBase

FRC subsystem that monitors CTRE Phoenix 6 devices and raises alerts for disconnections.

This singleton object tracks the connection status of TalonFX motors and CANcoders, providing real-time monitoring through WPILib's alert system. It's designed for early detection of CAN bus or device issues during matches and testing.

Properties

Link copied to clipboard
public final static AlertPingu INSTANCE

Functions

Link copied to clipboard
public final static Unit add(CANcoder canCoder)

Registers a CANcoder for connection monitoring.

public final static Unit add(TalonFX motor, String motorName)

Registers a TalonFX motor for connection monitoring.

Link copied to clipboard
public Unit periodic()

Updates connection status for all monitored devices. Called periodically by the CommandScheduler during robot operation. Uses parallel processing for efficient handling of multiple devices.