View Single Post
  #2   Spotlight this post!  
Unread 11-20-2016, 12:44 PM
euhlmann's Avatar
euhlmann euhlmann is offline
CTO, Programmer
AKA: Erik Uhlmann
FRC #2877 (LigerBots)
Team Role: Leadership
 
Join Date: Dec 2015
Rookie Year: 2015
Location: United States
Posts: 298
euhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud of
Re: SmartDashboard Problem

Quote:
Originally Posted by dash102 View Post
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.
__________________
Creator of SmartDashboard.js, an extensible nodejs/webkit replacement for SmartDashboard


https://ligerbots.org
Reply With Quote