Go to Post Must...squish....bugs... :p - nighterfighter [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 14-02-2012, 16:33
ksafin's Avatar
ksafin ksafin is offline
Registered User
AKA: Kirill Safin
FRC #3992 (Eagles Robotics Xperience)
Team Role: Leadership
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Delray Beach, FL
Posts: 498
ksafin has a brilliant futureksafin has a brilliant futureksafin has a brilliant futureksafin has a brilliant futureksafin has a brilliant futureksafin has a brilliant futureksafin has a brilliant futureksafin has a brilliant futureksafin has a brilliant futureksafin has a brilliant futureksafin has a brilliant future
Outputting to Smart Dashboard

We are using netbeans and we have the output to the built in compiler on netbeans, but we can't get the output to display on the smartdashboard, any help would be greatly appreciated! If you give us basic code for outputting to the smart dashboard that would be even better
Reply With Quote
  #2   Spotlight this post!  
Unread 14-02-2012, 17:29
Patrickwhite's Avatar
Patrickwhite Patrickwhite is offline
May the North be with you
FRC #0610 (The Coyotes)
Team Role: Programmer
 
Join Date: Dec 2008
Rookie Year: 2008
Location: Toronto
Posts: 88
Patrickwhite is a glorious beacon of lightPatrickwhite is a glorious beacon of lightPatrickwhite is a glorious beacon of lightPatrickwhite is a glorious beacon of lightPatrickwhite is a glorious beacon of lightPatrickwhite is a glorious beacon of light
Re: Outputting to Smart Dashboard

Code:
SmartDashboard.putData("name", 123)
Is enough to send data. On the dashboard side you should see a field named "name" show up. You can then choose to format it as anything you want.

It's helpful to add a connection indicator to the SDB so you know when its connected.
__________________
while(!going.isTough());
tough.exit();

What will we do tonight, Warfa?
The same thing we do every night, Patrick. Sit and wait for Electrical.
Reply With Quote
  #3   Spotlight this post!  
Unread 14-02-2012, 17:48
ksafin's Avatar
ksafin ksafin is offline
Registered User
AKA: Kirill Safin
FRC #3992 (Eagles Robotics Xperience)
Team Role: Leadership
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Delray Beach, FL
Posts: 498
ksafin has a brilliant futureksafin has a brilliant futureksafin has a brilliant futureksafin has a brilliant futureksafin has a brilliant futureksafin has a brilliant futureksafin has a brilliant futureksafin has a brilliant futureksafin has a brilliant futureksafin has a brilliant futureksafin has a brilliant future
Re: Outputting to Smart Dashboard

Thanks, that makes sense. However, how do I get the "name", I do not see it on the Driver Station, unless this is not what you meant by the "dashboard side".

And after looking at the constructor, I am still confused as to what a "key" is. Also, what does the 123 in your code signify?

Thanks again!
Reply With Quote
  #4   Spotlight this post!  
Unread 14-02-2012, 17:57
Patrickwhite's Avatar
Patrickwhite Patrickwhite is offline
May the North be with you
FRC #0610 (The Coyotes)
Team Role: Programmer
 
Join Date: Dec 2008
Rookie Year: 2008
Location: Toronto
Posts: 88
Patrickwhite is a glorious beacon of lightPatrickwhite is a glorious beacon of lightPatrickwhite is a glorious beacon of lightPatrickwhite is a glorious beacon of lightPatrickwhite is a glorious beacon of lightPatrickwhite is a glorious beacon of light
Re: Outputting to Smart Dashboard

Do you have the SmartDashboard running? The SmartDashboard is not the default dashboard or driver station. You can get it here. It's intended to be a replacement for the default dashboard, and easier to customize.

The SmartDashboard displays data based on the key of the data. The first parameter of putData is the key, the second is the data. If I wrote putData("Gyro Heading", gyro.getAngle());, a field would be created called "Gyro Heading" with the current value of the gyro. Subsequent calls to putData with the key "Gyro Heading" would update the same field instead of creating a new one.

The 123 was just a sample value to send.
__________________
while(!going.isTough());
tough.exit();

What will we do tonight, Warfa?
The same thing we do every night, Patrick. Sit and wait for Electrical.
Reply With Quote
  #5   Spotlight this post!  
Unread 14-02-2012, 18:17
ksafin's Avatar
ksafin ksafin is offline
Registered User
AKA: Kirill Safin
FRC #3992 (Eagles Robotics Xperience)
Team Role: Leadership
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Delray Beach, FL
Posts: 498
ksafin has a brilliant futureksafin has a brilliant futureksafin has a brilliant futureksafin has a brilliant futureksafin has a brilliant futureksafin has a brilliant futureksafin has a brilliant futureksafin has a brilliant futureksafin has a brilliant futureksafin has a brilliant futureksafin has a brilliant future
Re: Outputting to Smart Dashboard

Alright thanks, I had downloaded the file previously, but I was confused why it was merely blank when I ran it. It makes sense now.

Now, do you have any idea how I would go about putting the camera feed from the default dashboard onto this Smart Dashboard?

Thanks so much!
Reply With Quote
  #6   Spotlight this post!  
Unread 14-02-2012, 18:40
Thundrio Thundrio is offline
Dedicated Racer
FRC #3673
 
Join Date: Feb 2011
Rookie Year: 2010
Location: The Internet
Posts: 67
Thundrio is on a distinguished road
Re: Outputting to Smart Dashboard

I believe there is an option to add a camera widget on the top of the SmartDashboard. its under add->.

granted i havent got smartdashboard to connect, so idk if it works.
__________________
Interested in a new way of playing old games?
visit http://www.speedrunslive.com for a way to make single player games multiplayer!
visit http://www.zeldaspeedruns.com to open up a new world for zelda lovers!
pm me here or at zsr for more information!
Reply With Quote
  #7   Spotlight this post!  
Unread 16-02-2012, 14:03
mv2112's Avatar
mv2112 mv2112 is offline
Derpologist
AKA: Mike
FRC #3044 (0xBE4)
Team Role: Programmer
 
Join Date: Oct 2010
Rookie Year: 2010
Location: New York
Posts: 10
mv2112 is an unknown quantity at this point
Re: Outputting to Smart Dashboard

Hey im kinda new to the SmartDashboard. Is it legal to use in competition?
Reply With Quote
  #8   Spotlight this post!  
Unread 16-02-2012, 14:51
nickpeq nickpeq is offline
Turing-complete
FRC #1255 (Blarglefish)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Baytown, TX
Posts: 60
nickpeq is an unknown quantity at this point
Re: Outputting to Smart Dashboard

Quote:
Originally Posted by mv2112 View Post
Hey im kinda new to the SmartDashboard. Is it legal to use in competition?
Absolutely. Any dashboard is. It's the Driver Station that cannot be changed.
Reply With Quote
  #9   Spotlight this post!  
Unread 16-02-2012, 16:37
BradAMiller BradAMiller is offline
Registered User
AKA: Brad
#0190 ( Gompei and the Herd)
Team Role: Mentor
 
Join Date: Mar 2004
Location: Worcester, MA
Posts: 592
BradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant future
Re: Outputting to Smart Dashboard

Quote:
Originally Posted by mv2112 View Post
Hey im kinda new to the SmartDashboard. Is it legal to use in competition?
It's legal and uses TCP/IP port 1735 which has been opened this year in the field management system.

Brad
__________________
Brad Miller
Robotics Resource Center
Worcester Polytechnic Institute
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


All times are GMT -5. The time now is 00:45.

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