Log in

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

Djur
20-08-2012, 21:49
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");