Quote:
Originally Posted by dash102
Thanks! So do I have to be connected to the robot to be able to see the dashboard? Am I able to see it disconnected, just with no values in the spaces where values are supposed to be?
|
You have to be connected. If you are not connected, this (deprecated) throws an exception
Code:
NetworkTable.getTable("SmartDashboard").getNumber("something")
and this (the recommended way)
Code:
NetworkTable.getTable("SmartDashboard").getNumber("something", defaultValue)
returns defaultValue
However if you connect and then disconnect, the values returned will be the last known values.