|
Re: Recieving data from a smart dashboard extension
Driver side; stick this in your widget where you think it's best.
Code:
NetworkTable.getTable("SmartDashboard").putValue("Your key", yourValue);
Robot side; this is to grab the data you sent from the driver's station. Put it where you think it's best in your robot code.
Code:
Object value = SmartDashboard.getValue("Your key");
__________________
WPILib dev (RobotBuilder, SmartDashboard, GRIP)
Last edited by Djur : 21-08-2012 at 14:54.
Reason: I was still in dev mode.
|