Add a fault management API #6573
Labels
component: wpiutil
WPI utility library
type: feature
Brand new functionality, features, pages, workflows, endpoints, etc.
We have DriverStation reportError() and reportWarning() for reporting faults, but the result is hard to manage and isn't accessible to dashboards.
Here's a Shuffleboard widget that supports info, warning, and error popups.
https://github.com/Mechanical-Advantage/NetworkAlerts
https://github.com/Mechanical-Advantage/RobotCode2023/blob/main/src/main/java/org/littletonrobotics/frc2023/util/Alert.java
They should be sendable over NT and DataLog. There should also be a way to clear faults. Multiple of the same fault could occur, which would be nice to group together (like loop overruns) so they don't clutter up the fault logs.
A fault at minimum could contain an enum for the fault type (info, warning, error) and a string for more information. In embedded, fault IDs are commonly used for classification and priority arbitration, but I doubt teams would bother allocating fault IDs.
The text was updated successfully, but these errors were encountered: