Go to Post This site is truly the best resource out there for FIRST teams, the information that flows on here is just amazing and I don't know what FIRST would be like without it. - Ricky Q. [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 19-01-2014, 14:13
JamesMcD_4505 JamesMcD_4505 is offline
Registered User
FRC #4505
 
Join Date: Jan 2014
Location: Maryland
Posts: 4
JamesMcD_4505 is an unknown quantity at this point
Getting SmartDashboard to Update Continuously

Hello Chief Delphi,

Our software team is trying to find a way to get SmartDashboard to update continuously. We want to make sure that when we change a value on SmartDashboard, it actually updates within the code (in a command based system). What is the best way to go about doing this?

Thanks,
Team 4505.
Reply With Quote
  #2   Spotlight this post!  
Unread 19-01-2014, 14:20
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,561
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Getting SmartDashboard to Update Continuously

Network Tables makes sure that the values are always available in the robot code, so that all you have to do is do a get.
Reply With Quote
  #3   Spotlight this post!  
Unread 19-01-2014, 14:51
JamesMcD_4505 JamesMcD_4505 is offline
Registered User
FRC #4505
 
Join Date: Jan 2014
Location: Maryland
Posts: 4
JamesMcD_4505 is an unknown quantity at this point
Re: Getting SmartDashboard to Update Continuously

Quote:
Originally Posted by Joe Ross View Post
Network Tables makes sure that the values are always available in the robot code, so that all you have to do is do a get.
Thanks Mr. Ross,

Would we need to create a separate class in our command based system, or can we just insert this into any pre-existing class?

Thanks again,
Team 4505.
Reply With Quote
  #4   Spotlight this post!  
Unread 19-01-2014, 17:02
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,561
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Getting SmartDashboard to Update Continuously

You can call SmartDashboard.getNumber from anywhere.
Reply With Quote
  #5   Spotlight this post!  
Unread 01-02-2014, 00:37
CreativeName55 CreativeName55 is offline
Registered User
FRC #2729 (Storm Robotics)
Team Role: Programmer
 
Join Date: Jan 2014
Rookie Year: 2011
Location: Marlton
Posts: 17
CreativeName55 is an unknown quantity at this point
Re: Getting SmartDashboard to Update Continuously

SmartDashboard also has properties, such as integerproperties, which allow it to rather easily take in and edit values sent to it by the user. They're a tad more confusing than network table at times, but can be edited in a popup, rather than cluttering the dashboard
Reply With Quote
  #6   Spotlight this post!  
Unread 01-02-2014, 23:53
Ginto8's Avatar
Ginto8 Ginto8 is offline
Programming Lead
AKA: Joe Doyle
FRC #2729 (Storm)
Team Role: Programmer
 
Join Date: Oct 2010
Rookie Year: 2010
Location: Marlton, NJ
Posts: 174
Ginto8 is a glorious beacon of lightGinto8 is a glorious beacon of lightGinto8 is a glorious beacon of lightGinto8 is a glorious beacon of lightGinto8 is a glorious beacon of light
Re: Getting SmartDashboard to Update Continuously

Keep in mind that NetworkTable values can have a latency of ~200ms between the dashboard and robot. For most stuff you won't notice this, but you can't rely on it for high-frequency stuff.
__________________
I code stuff.
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:01.

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