Custom Widget Examples
Single Color View
SwerveDrive
Note: Velocity must be in meters per second, and angles must be in either radians, degrees, or rotations, and CCW+
YAGSL Swerve Drive
If you are using the YAGSL Swerve Library, you can create a Swerve Drive widget without even modifying your code. Simply head to the SmartDashboard
table, and drag the swerve
table onto the grid, and you will have created a Swerve widget that shows your current and desired module states.
Alerts
This displays data from the NetworkAlerts by Team 6328. For examples and implementation, see Mechanical Advantage 2023 Robot Code
For robot code using a WPILib version after 2024, this will be available in all WPILib projects and no additional files need to be added.
Last updated