View Single Post
  #5   Spotlight this post!  
Unread 16-02-2015, 16:31
Ozuru's Avatar
Ozuru Ozuru is offline
It's always the programmer's fault.
no team
 
Join Date: May 2013
Rookie Year: 2010
Location: Earth
Posts: 268
Ozuru is a splendid one to beholdOzuru is a splendid one to beholdOzuru is a splendid one to beholdOzuru is a splendid one to beholdOzuru is a splendid one to beholdOzuru is a splendid one to beholdOzuru is a splendid one to behold
Re: Get SmartDashboard keys?

Quote:
Originally Posted by Toa Circuit View Post
I should clarify. I need to do it programmatically, in the robot code. (I want to save values to disk so we don't keep losing them) I'd sneak through and grab the underlying hashtable, but it's private in WPILib.

When you do
Code:
SmartDashboard.putString("Key","value");
"Key" is the key. I need to, through code, fetch a list of all keys that are on the SmartDashboard/NetworkTable.
With each setter method there is (obviously) a getter -- you could try just doing that. I would recommend put it all into function and then just call the function.

I'm unsure but there might be a way to do a for-each loop in the table -- try seeing what datatypes it returns and try doing a simple for-each loop for that.
Reply With Quote