View Full Version : Standard java onto smartdashboard
How can I print to the smart dashboard using a standard Java program, we've already imported wpilibj.
sarangmittal
26-01-2013, 13:46
Import the SmartDashboard package,
import edu.wpi.first.wpilibj.smartdashboard.SmartDashboar d;
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;:
double test = 4;
SmartDashboard.putNumber("Test", test);
That should automatically print the data to the SmartDashboard when you enable.
BradAMiller
26-01-2013, 14:05
Take a look here:
http://wpilib.screenstepslive.com/s/3120/m/7932/l/81106-displaying-expressions-from-within-the-robot-program
for some examples and more directions on using SmartDashboard.
Brad
vBulletin® v3.6.4, Copyright ©2000-2017, Jelsoft Enterprises Ltd.