View Single Post
  #2   Spotlight this post!  
Unread 26-01-2013, 13:46
sarangmittal's Avatar
sarangmittal sarangmittal is offline
Registered User
FRC #1683 (Techno Titans)
Team Role: Programmer
 
Join Date: Feb 2011
Rookie Year: 2011
Location: Atlanta GA
Posts: 20
sarangmittal is an unknown quantity at this point
Re: Standard java onto smartdashboard

Import the SmartDashboard package,
Code:
 import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard;
And then in wherever you want to print stuff, use the putNumber() or putBoolean() or putString (look in API for all things you can put).
For example;:
Code:
double test = 4;
SmartDashboard.putNumber("Test", test);
That should automatically print the data to the SmartDashboard when you enable.
Reply With Quote