View Full Version : Using swing for Dashboard
02-18-2010, 04:15 PM
We've done most of our programming in Java and we want a custom interface for our robot. So, we've decided to use Swing to do this. How could we get the robot to send info to the Dashboard? Is there some documentation we can read up on the protocol through which the robot communicates? Thanks in advance.
02-18-2010, 08:29 PM
Check out the sunspotfrcsdk javadoc. Specifically, look up the DriverStation class. It has a nice, easy way to output to and control the elements of the DriverStation dashboard.
02-19-2010, 03:10 PM
its currently a work in progress.
03-02-2010, 10:00 AM
I've released my test swing dashboard:
svn checkout http://grtframework.googlecode.com/svn/trunk/ grtframework-read-only
its under FRCDashboard.
03-02-2010, 06:20 PM
it says i cant compile it, can you post a jar of it?
03-02-2010, 09:37 PM
Fixed that issue and posted a binary.
03-03-2010, 04:47 PM
How would I get information like the current victor speed to be displayed in a text box?
03-09-2010, 09:06 PM
This dashboard was meant as a proof-of-concept...that swing dashboards could be used without too much pain. I'd really like to write a more flexible one, but havent had the time.
If you would like to modify the dashboard, look at the source. The UI is pretty much entirely generated with the Netbeans UI builder(Eclipse's VEP didnt work on my Java EE build :( ) so i suggest that you open the project in netbeans and edit the Dashboard JPanel.
04-02-2010, 01:03 AM
Thanks for your code! We ended up using LabVIEW to program our interface because there were parts of the code I couldn't understand.
Would it be possible to simplify this to only a single class which gets packets from the robot, and then reassemble them back into the clusters which they were originally from? We might be using something similar to this next year :D
Thanks in advance!
04-03-2010, 06:36 PM
I have been working with ericarseneau(from Sun, Project Squawk) on this one, and expect that there will be an easy to use Swing system for building java dashboards by next season. While I wont be around to see it finished, GRT (192, Palo Alto CA) will do its best to pursue it and let it be used by all teams...
vBulletin® v3.6.4, Copyright ©2000-2016, Jelsoft Enterprises Ltd.