Progress Bar - Q-FRC/QDash GitHub Wiki
The Progress Bar widget showcases a number as a percentage on a line, with tick marks for ease of viewing.
Robot Code
Similarly to other number widgets, to display a progress bar, you must put a number to NetworkTables:
PowerDistribution m_powerDistribution = ...;
SmartDashboard.putNumber("Voltage", m_powerDistribution.getVoltage());
To get a progress bar, right-click a spin box, dial, or radial gauge and select "Progress Bar":
Configuration
- Title Font Size: The font size of the title text.
- Font Size: The font size of the displayed value.
- Minimum Value: The minimum displayed value of the gauge.
- Maximum Value: The maximum displayed value of the gauge.
- Number of Ticks: How many ticks/numbers to show around the gauge.
- Suffix: The string suffix to display after the values.
- Vertical?: Whether or not you want the progress bar to display vertically.
- Topic: What NetworkTables topic to use.
Common Configurations
Voltage
To display the robot controller's voltage, use a configuration such as the following, replacing the maximum value with whatever you expect potential voltage spikes to reach: