Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Java (http://www.chiefdelphi.com/forums/forumdisplay.php?f=184)
-   -   Standard java onto smartdashboard (http://www.chiefdelphi.com/forums/showthread.php?t=112094)

1757 01-26-2013 01:07 PM

Standard java onto smartdashboard
 
How can I print to the smart dashboard using a standard Java program, we've already imported wpilibj.

sarangmittal 01-26-2013 01:46 PM

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.

BradAMiller 01-26-2013 02:05 PM

Re: Standard java onto smartdashboard
 
Take a look here:

http://wpilib.screenstepslive.com/s/...-robot-program

for some examples and more directions on using SmartDashboard.

Brad


All times are GMT -5. The time now is 09:02 AM.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi