Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Java (http://www.chiefdelphi.com/forums/forumdisplay.php?f=184)
-   -   Recieving data from a smart dashboard extension (http://www.chiefdelphi.com/forums/showthread.php?t=107783)

divixsoft 13-08-2012 13:24

Recieving data from a smart dashboard extension
 
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

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");


All times are GMT -5. The time now is 09:14.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi