View Single Post
  #2   Spotlight this post!  
Unread 20-08-2012, 21:49
Djur's Avatar
Djur Djur is offline
WPILib
AKA: Sam Carlberg
no team
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2009
Location: Massachusetts
Posts: 182
Djur will become famous soon enough
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.
Reply With Quote