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.

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.

Link copied to clipboard
open fun addChild(p0: String, p1: Sendable)
Link copied to clipboard
open fun defer(p0: Supplier<Command>): Command
Link copied to clipboard
open fun getCurrentCommand(): Command
Link copied to clipboard
open fun getDefaultCommand(): Command
Link copied to clipboard
open override fun getName(): String
Link copied to clipboard
open fun getSubsystem(): String
Link copied to clipboard
open override fun initSendable(p0: 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(p0: Runnable): Command
Link copied to clipboard
open fun runEnd(p0: Runnable, p1: Runnable): Command
Link copied to clipboard
open fun runOnce(p0: Runnable): Command
Link copied to clipboard
open fun setDefaultCommand(p0: Command)
Link copied to clipboard
open fun setName(p0: String)
Link copied to clipboard
open fun setSubsystem(p0: String)
Link copied to clipboard
Link copied to clipboard
open fun startEnd(p0: Runnable, p1: Runnable): Command
Link copied to clipboard
open fun startRun(p0: Runnable, p1: Runnable): Command