Go to Post But now we know what's inside Shaun's backpack! ...Don Rotolo's plastic egg. - MishraArtificer [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 19-11-2016, 20:25
dash102 dash102 is offline
Registered User
FRC #5968
 
Join Date: Nov 2016
Location: Manhattan, KS
Posts: 3
dash102 is an unknown quantity at this point
Re: SmartDashboard Problem

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?
Reply With Quote
  #2   Spotlight this post!  
Unread 20-11-2016, 12:44
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: 296
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
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 09:40.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi