View Full Version : Getting SmartDashboard to Update Continuously
JamesMcD_4505
19-01-2014, 14:13
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
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
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
You can call SmartDashboard.getNumber from anywhere.
CreativeName55
01-02-2014, 00:37
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
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.
vBulletin® v3.6.4, Copyright ©2000-2017, Jelsoft Enterprises Ltd.