![]() |
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. |
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.
|
Re: Getting SmartDashboard to Update Continuously
Quote:
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. |
Re: Getting SmartDashboard to Update Continuously
You can call SmartDashboard.getNumber from anywhere.
|
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
|
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