View Single Post
  #1   Spotlight this post!  
Unread 26-01-2012, 23:16
Hjelstrom's Avatar
Hjelstrom Hjelstrom is offline
Mentor
FRC #0987 (High Rollers)
Team Role: Mentor
 
Join Date: Mar 2008
Rookie Year: 2005
Location: Las Vegas
Posts: 146
Hjelstrom has a reputation beyond reputeHjelstrom has a reputation beyond reputeHjelstrom has a reputation beyond reputeHjelstrom has a reputation beyond reputeHjelstrom has a reputation beyond reputeHjelstrom has a reputation beyond reputeHjelstrom has a reputation beyond reputeHjelstrom has a reputation beyond reputeHjelstrom has a reputation beyond reputeHjelstrom has a reputation beyond reputeHjelstrom has a reputation beyond repute
Data sent from the SmartDashboard to the cRio

We have written a custom 'StaticWidget' extension for the smart dashboard which is attempting to send some data from the dashboard to the robot. We're trying to use some code like this in our widget:

// Plug our values right into the robot's network table
NetworkTable table = Robot.getTable();
table.putInt("987IntValue", integer_value);
table.putDouble("987DoubleValue",double_value);

I see other controls doing this such as 'CheckBox', etc. Our widget seems to be working in the dashboard.

My question is, what C++ API can we use to read those values on the cRio side? I was expecting something like SmartDashboard::Get... But I don't see anything like that.