Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Java (http://www.chiefdelphi.com/forums/forumdisplay.php?f=184)
-   -   Using swing for Dashboard (http://www.chiefdelphi.com/forums/showthread.php?t=83018)

Patrick Chiang 18-02-2010 17:15

Using swing for Dashboard
 
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.

Lord_Jeremy 18-02-2010 21:29

Re: Using swing for Dashboard
 
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.

spartango 19-02-2010 16:10

Re: Using swing for Dashboard
 
its currently a work in progress.
https://squawk-frc.dev.java.net/sour...hostdashboard/

spartango 02-03-2010 11:00

Re: Using swing for Dashboard
 
I've released my test swing dashboard:
svn checkout http://grtframework.googlecode.com/svn/trunk/ grtframework-read-only
its under FRCDashboard.

Robototes2412 02-03-2010 19:20

Re: Using swing for Dashboard
 
it says i cant compile it, can you post a jar of it?

spartango 02-03-2010 22:37

Re: Using swing for Dashboard
 
Fixed that issue and posted a binary.

Check out
http://code.google.com/p/grtframewor...CDashboard.jar

Robototes2412 03-03-2010 17:47

Re: Using swing for Dashboard
 
ok, thanks.

How would I get information like the current victor speed to be displayed in a text box?

spartango 09-03-2010 22:06

Re: Using swing for Dashboard
 
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.

Patrick Chiang 02-04-2010 02:03

Re: Using swing for Dashboard
 
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!

spartango 03-04-2010 19:36

Re: Using swing for Dashboard
 
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...


All times are GMT -5. The time now is 09:43.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi