Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a fault management API #6573

Open
calcmogul opened this issue May 1, 2024 · 0 comments
Open

Add a fault management API #6573

calcmogul opened this issue May 1, 2024 · 0 comments
Labels
component: wpiutil WPI utility library type: feature Brand new functionality, features, pages, workflows, endpoints, etc.

Comments

@calcmogul
Copy link
Member

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.

@calcmogul calcmogul added type: feature Brand new functionality, features, pages, workflows, endpoints, etc. component: wpiutil WPI utility library labels May 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: wpiutil WPI utility library type: feature Brand new functionality, features, pages, workflows, endpoints, etc.
Projects
None yet
Development

No branches or pull requests

1 participant