Open GoogleCodeExporter opened 8 years ago
I do not know if the SmartDashboard can communicate with the robot to feed it
data, so if we want to have control of this before TeleOp, We mightneed to put
a switch or some other input on the robot to have control.
-David
Original comment by jonie4
on 29 Mar 2013 at 11:00
I don’t have experience with sending data from SmartDashboard to the robot,
but I believe there are several ways you can do it, according to the
documentation.
- For most SmartDashboard “Put*” functions, there’s a corresponding
“Get” function. For instance, PutNumber(key, value) and GetNumber(key).
- SmartDashboard supports a data type called SendableChooser, which allows you
to have radio buttons on the SmartDashboard that can be read by the robot.
- You can save preferences on the cRIO using the Preferences class.
SmartDashboard has a built-in widget to display and modify the robot
preferences. (I wish I’d know about this sooner!!!)
Most of this is discussed in the WPILib Cookbook, and of course documented in
the WPILib C++ reference.
Original comment by jtec...@gmail.com
on 29 Mar 2013 at 11:33
^ See WPILib Cookbook pages 65-67.
Original comment by jtec...@gmail.com
on 29 Mar 2013 at 11:36
The driver control / SmartDashboard issue is really a separate issue, and has
been moved to Issue #38.
This issue should henceforth only refer to driving the robot forward the
instant TeleOp begins - but of course can use the mechanism referenced in Issue
#38.
Original comment by jtec...@gmail.com
on 31 Mar 2013 at 2:06
Original issue reported on code.google.com by
jtec...@gmail.com
on 29 Mar 2013 at 4:41