View Single Post
  #6   Spotlight this post!  
Unread 19-01-2012, 21:22
neal's Avatar
neal neal is offline
Neal
FRC #1777 (Viking Robotics)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2009
Location: United States
Posts: 56
neal is an unknown quantity at this point
Re: We got Sockets working

Quote:
Originally Posted by Patrickwhite View Post
Absolutely that's possible with the SmartDashboard.

The SmartDashboard package is edu.wpi.first.wpilibj.smartdashboard.

Data sent has a name and a value. The name is used to tie a set of values to a certain widget - if you send "Heading" as 90, then set up a widget to listen to that key, then subsequent sendings of "Heading" will go straight to that widget.

You can send booleans, ints, doubles, and Strings, as well as any class that implements SmartDashboardData. You can even make your own SmartDashboardData-implementing class, though doing so is a bit complicated.
Oh, cool! I was wondering what putint() and other methods did. But I won't have access to the robot until Saturday. Glad you explained!

How do you make the widgets, though?

Last edited by neal : 19-01-2012 at 21:24.
Reply With Quote