Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Java (http://www.chiefdelphi.com/forums/forumdisplay.php?f=184)
-   -   Getting SmartDashboard to Update Continuously (http://www.chiefdelphi.com/forums/showthread.php?t=124911)

JamesMcD_4505 19-01-2014 14:13

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.

Joe Ross 19-01-2014 14:20

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.

JamesMcD_4505 19-01-2014 14:51

Re: Getting SmartDashboard to Update Continuously
 
Quote:

Originally Posted by Joe Ross (Post 1329334)
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.

Joe Ross 19-01-2014 17:02

Re: Getting SmartDashboard to Update Continuously
 
You can call SmartDashboard.getNumber from anywhere.

CreativeName55 01-02-2014 00:37

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

Ginto8 01-02-2014 23:53

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.


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

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