View Single Post
  #6   Spotlight this post!  
Unread 17-08-2013, 17:34
fovea1959's Avatar
fovea1959 fovea1959 is offline
Herder of programmers
AKA: Doug Wegscheid
FRC #3620 (The Average Joes)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2011
Location: St Joseph
Posts: 330
fovea1959 will become famous soon enough
Re: Interactive Widgets on SmartDashboard

I want the same capability we have with LabView. We can add GUI widgets to the LV Dashboard, and the value of the widgets are tied to what's in the SmartDashboard network tables. If the GUI widget is a LV "indicator", then it just reflects what's in the network table, if it's a LV "control", then changing what's on the dashboard will change the corresponding table entry.

The Java SmartDashboard has some of this, but doesn't seem to have GUi elements; I can't tie a slider to a number in the NetworkTable, for instance; my only display option is a text box.

We can work around it; Test mode gets us part of the way there, using the "fake" analog and digital inputs on the DS helps more (or building a real console with the Cypress), but I wanted to be sure that I wasn't missing a capability that was already there.

Writing a Swing application to present a UI and poke/read the network tables is straightforward, but doing and persisting the GUI layout would be a challenge for where I am right now, Swing-wise (I'm a J2EE guy)...
Reply With Quote