Go to Post The 3 probably stands for the number of years this season will take off your life - JohnSchneider [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 18-02-2010, 17:15
Patrick Chiang Patrick Chiang is offline
Programming
FRC #3070 (Team Pronto)
Team Role: Mentor
 
Join Date: Feb 2009
Rookie Year: 2009
Location: Seattle
Posts: 162
Patrick Chiang is a name known to allPatrick Chiang is a name known to allPatrick Chiang is a name known to allPatrick Chiang is a name known to allPatrick Chiang is a name known to allPatrick Chiang is a name known to all
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.
Reply With Quote
  #2   Spotlight this post!  
Unread 18-02-2010, 21:29
Lord_Jeremy's Avatar
Lord_Jeremy Lord_Jeremy is offline
Lord_Jeremy the Procrastinator
AKA: Jeremy Agostino
FRC #1546 (Chaos Inc.)
Team Role: Electrical
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Baldwin, New York
Posts: 45
Lord_Jeremy is an unknown quantity at this point
Send a message via ICQ to Lord_Jeremy Send a message via AIM to Lord_Jeremy Send a message via MSN to Lord_Jeremy Send a message via Yahoo to Lord_Jeremy
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.
__________________
Compiling...
Compiling...
Reply With Quote
  #3   Spotlight this post!  
Unread 19-02-2010, 16:10
spartango spartango is offline
Registered User
FRC #0192 (GRT)
Team Role: Alumni
 
Join Date: Nov 2009
Rookie Year: 2008
Location: Palo Alto, CA
Posts: 43
spartango is an unknown quantity at this point
Re: Using swing for Dashboard

its currently a work in progress.
https://squawk-frc.dev.java.net/sour...hostdashboard/
Reply With Quote
  #4   Spotlight this post!  
Unread 02-03-2010, 11:00
spartango spartango is offline
Registered User
FRC #0192 (GRT)
Team Role: Alumni
 
Join Date: Nov 2009
Rookie Year: 2008
Location: Palo Alto, CA
Posts: 43
spartango is an unknown quantity at this point
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.
Reply With Quote
  #5   Spotlight this post!  
Unread 02-03-2010, 19:20
Robototes2412's Avatar
Robototes2412 Robototes2412 is offline
1 * 4 != 14
FRC #2412 (Robototes)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2007
Location: Bellevue
Posts: 312
Robototes2412 is on a distinguished road
Re: Using swing for Dashboard

it says i cant compile it, can you post a jar of it?
Reply With Quote
  #6   Spotlight this post!  
Unread 02-03-2010, 22:37
spartango spartango is offline
Registered User
FRC #0192 (GRT)
Team Role: Alumni
 
Join Date: Nov 2009
Rookie Year: 2008
Location: Palo Alto, CA
Posts: 43
spartango is an unknown quantity at this point
Re: Using swing for Dashboard

Fixed that issue and posted a binary.

Check out
http://code.google.com/p/grtframewor...CDashboard.jar
Reply With Quote
  #7   Spotlight this post!  
Unread 03-03-2010, 17:47
Robototes2412's Avatar
Robototes2412 Robototes2412 is offline
1 * 4 != 14
FRC #2412 (Robototes)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2007
Location: Bellevue
Posts: 312
Robototes2412 is on a distinguished road
Re: Using swing for Dashboard

ok, thanks.

How would I get information like the current victor speed to be displayed in a text box?
Reply With Quote
  #8   Spotlight this post!  
Unread 09-03-2010, 22:06
spartango spartango is offline
Registered User
FRC #0192 (GRT)
Team Role: Alumni
 
Join Date: Nov 2009
Rookie Year: 2008
Location: Palo Alto, CA
Posts: 43
spartango is an unknown quantity at this point
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.
Reply With Quote
  #9   Spotlight this post!  
Unread 02-04-2010, 02:03
Patrick Chiang Patrick Chiang is offline
Programming
FRC #3070 (Team Pronto)
Team Role: Mentor
 
Join Date: Feb 2009
Rookie Year: 2009
Location: Seattle
Posts: 162
Patrick Chiang is a name known to allPatrick Chiang is a name known to allPatrick Chiang is a name known to allPatrick Chiang is a name known to allPatrick Chiang is a name known to allPatrick Chiang is a name known to all
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

Thanks in advance!
Reply With Quote
  #10   Spotlight this post!  
Unread 03-04-2010, 19:36
spartango spartango is offline
Registered User
FRC #0192 (GRT)
Team Role: Alumni
 
Join Date: Nov 2009
Rookie Year: 2008
Location: Palo Alto, CA
Posts: 43
spartango is an unknown quantity at this point
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...
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Selecting autonomous modes using FRC PC Dashboard ellisk C/C++ 5 07-02-2010 10:31
Is anyone using the Labview Dashboard during competition? programmr General Forum 11 05-02-2009 17:06
Using FRC dashboard w/ camera during competition? asianfez123 FRC Control System 2 05-02-2009 15:56
Using FRC dashboard w/ camera during competition? asianfez123 Rules/Strategy 7 24-01-2009 22:07
Swing Dancing Pamela Chit-Chat 7 29-06-2002 14:14


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

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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