-
Notifications
You must be signed in to change notification settings - Fork 1
Match Time
Carson Rueter edited this page Jan 27, 2025
·
1 revision
The match time widget displays a time in minutes & seconds in large font.
To display the match time, send the match time value to NetworkTables:
SmartDashboard.putNumber("Match Time", DriverStation.getMatchTime());
Note that using an integer will not work.
To get a match time, right-click a spin box, dial, gauge, progress bar, or number display widget and select "Match Time":
- Title Font Size: The font size of the title text.
- Max Font Size: The maximum font size of the displayed value. The widget will make the font as large as possible without exceeding this size or clipping the widget.
- Warning Color: What color to change the text to when the match time is under 30 seconds (endgame).
- Topic: What NetworkTables topic to use.