|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
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. |
|
#2
|
||||||
|
||||||
|
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.
|
|
#3
|
|||
|
|||
|
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. |
|
#4
|
||||||
|
||||||
|
Re: Getting SmartDashboard to Update Continuously
You can call SmartDashboard.getNumber from anywhere.
|
|
#5
|
|||
|
|||
|
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
|
|
#6
|
||||
|
||||
|
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.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|