Skip to content

Reef Display

Carson Rueter edited this page Jan 28, 2025 · 2 revisions

The reef display depicts a level of the reef.

image

Robot Code

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.

image

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.

Interaction

The reef display can be interacted with via the mouse; simply click on a triangle and the corresponding value will be toggled.

Reef

The values can be retrieved from the robot code as well:

boolean[] newReefStatus = SmartDashboard.getBooleanArray("Reef", m_reefStatus);

Configuration

image

  • Title Font Size: The font size of the title text.
  • Topic: What NetworkTables topic to use.
Clone this wiki locally