Go to Post We draw the line when our students are more affectionate towards the tools rather than eachother. - ksafin [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-01-2014, 11:48
ZachTheSloth ZachTheSloth is offline
Registered User
FRC #1719
 
Join Date: Jan 2014
Location: America
Posts: 2
ZachTheSloth is an unknown quantity at this point
How to communicate with the network table from the Dashboard

Curious how you communicate with the network table form the dashboard.
Reply With Quote
  #2   Spotlight this post!  
Unread 18-01-2014, 11:54
fsilberberg fsilberberg is offline
WPILib Developer
AKA: Fred Silberberg
FRC #0190
Team Role: Alumni
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Redmond
Posts: 146
fsilberberg has a spectacular aura aboutfsilberberg has a spectacular aura aboutfsilberberg has a spectacular aura about
Re: How to communicate with the network table from the Dashboard

The WPILib documentation has a bunch of information on how to use the SmartDashboard, you can find it here:
http://wpilib.screenstepslive.com/s/3120/m/7932.

In a nutshell, any call to one of the SmartDashboard methods will put information in or retrieve information from NetworkTables. The SmartDashboard.put/get methods wrap this for you, so you don't have to manually search for a NetworkTables key and find the value on your own. If you have any more questions, feel free to ask.
Reply With Quote
  #3   Spotlight this post!  
Unread 18-01-2014, 12:17
ZachTheSloth ZachTheSloth is offline
Registered User
FRC #1719
 
Join Date: Jan 2014
Location: America
Posts: 2
ZachTheSloth is an unknown quantity at this point
Re: How to communicate with the network table from the Dashboard

Thanks, but I'm trying to communicate from the smartdashboard extension, so SmartDashbord.get won't work.
Reply With Quote
  #4   Spotlight this post!  
Unread 18-01-2014, 18:20
Arhowk's Avatar
Arhowk Arhowk is offline
FiM CSA
AKA: Jake Niman
FRC #1684 (The Chimeras) (5460 Mentor)
 
Join Date: Jan 2013
Rookie Year: 2013
Location: Lapeer
Posts: 542
Arhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to behold
Re: How to communicate with the network table from the Dashboard

Quote:
Originally Posted by ZachTheSloth View Post
Thanks, but I'm trying to communicate from the smartdashboard extension, so SmartDashbord.get won't work.
include the NetworkTables desktop .jar and use that.
Reply With Quote
  #5   Spotlight this post!  
Unread 19-01-2014, 15:00
byteit101's Avatar
byteit101 byteit101 is offline
WPILib maintainer (WPI)
AKA: Patrick Plenefisch
no team (The Cat Attack (Formerly))
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Worcester
Posts: 699
byteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of light
Re: How to communicate with the network table from the Dashboard

You seem to be withholding information so I'll have to guess what you mean. You mention extensions, so if you are writing a plugin, you call observable.setData(someDataSpecifierObject) where observable is gotten from the DataCore via getObservable("some/path") inside the registered() method.
However, I somehow doubt that is what you meant and instead are wondering about the UI. In that case, simply use a UI element that supports sending like the sliders or number box, then when running drag/edit them and the value is sent back.
If I guessed incorrectly and you mean something else please clarify what you are trying to do
__________________
Bubble Wrap: programmers rewards
Watchdog.Kill();
printf("Watchdog is Dead, Celebrate!");
How to make a self aware robot: while (∞) cout<<(sqrt(-∞)/-0);
Previously FRC 451 (The Cat Attack)
Now part of the class of 2016 at WPI & helping on WPILib
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 11:41.

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