AlertPingu

object AlertPingu : 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
open val currentCommand: Command?
Link copied to clipboard
open var defaultCommand: Command?
Link copied to clipboard
open var name: String?
Link copied to clipboard
open var subsystem: String?

Functions

Link copied to clipboard
fun add(canCoder: CANcoder)

Registers a CANcoder for connection monitoring.

fun add(motor: TalonFX, motorName: String)

Registers a TalonFX motor for connection monitoring.

fun add(motor: Mongu<TalonFX>, motorName: String)

Registers a Mongu wrapper containing a TalonFX motor for connection monitoring.

Link copied to clipboard
open fun addChild(name: String?, child: Sendable?)
Link copied to clipboard
open fun defer(supplier: Supplier<Command?>?): Command?
Link copied to clipboard
open fun initSendable(builder: SendableBuilder?)
Link copied to clipboard
open override fun 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.

Link copied to clipboard
open fun register()
Link copied to clipboard
Link copied to clipboard
open fun run(action: Runnable?): Command?
Link copied to clipboard
open fun runEnd(run: Runnable?, end: Runnable?): Command?
Link copied to clipboard
open fun runOnce(action: Runnable?): Command?
Link copied to clipboard
Link copied to clipboard
open fun startEnd(start: Runnable?, end: Runnable?): Command?
Link copied to clipboard
open fun startRun(start: Runnable?, run: Runnable?): Command?