|
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.
|