View Full Version : Recieving data from a smart dashboard extension
divixsoft
13-08-2012, 13:24
Hi everybody,
I was just wondering how I could use smart dashboard to get data from a smart dashboard widget.
Thanks,
Dimitri
Driver side; stick this in your widget where you think it's best.
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.
Object value = SmartDashboard.getValue("Your key");
vBulletin® v3.6.4, Copyright ©2000-2017, Jelsoft Enterprises Ltd.