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.

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.

You can call SmartDashboard.getNumber from anywhere.

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.