-
Notifications
You must be signed in to change notification settings - Fork 1
Reef Display
Carson Rueter edited this page Jan 28, 2025
·
2 revisions
The reef display depicts a level of the reef.
To show the reef on the dashboard, you must send a boolean array to NetworkTables, e.g.:
// Reef tracking is up to you!
boolean[] m_reefStatus = ...;
SmartDashboard.putBooleanArray("Reef", m_reefStatus);
This will put the reef object under /SmartDashboard/Reef
. Drag that widget onto your tab to show the reef.
The reef is displayed as in the driver perspective; that is, index 0 is section "A", or the closest section to your left, and the rest go counterclockwise.
The reef display can be interacted with via the mouse; simply click on a triangle and the corresponding value will be toggled.
The values can be retrieved from the robot code as well:
boolean[] newReefStatus = SmartDashboard.getBooleanArray("Reef", m_reefStatus);
- Title Font Size: The font size of the title text.
- Topic: What NetworkTables topic to use.