How can I print to the smart dashboard using a standard Java program, we’ve already imported wpilibj.
Import the SmartDashboard package,
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;:
double test = 4;
SmartDashboard.putNumber("Test", test);
That should automatically print the data to the SmartDashboard when you enable.
Take a look here:
for some examples and more directions on using SmartDashboard.
Brad