Go to Post I almost forgot the biggest advantage of all! Three times as many people get to hear me and Karthik sing at 2 am! - Derek Bessette [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 01-26-2013, 01:07 PM
1757 1757 is offline
Registered User
FRC #1757
 
Join Date: Oct 2012
Location: Westwood
Posts: 27
1757 is an unknown quantity at this point
Standard java onto smartdashboard

How can I print to the smart dashboard using a standard Java program, we've already imported wpilibj.
Reply With Quote
  #2   Spotlight this post!  
Unread 01-26-2013, 01:46 PM
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
  #3   Spotlight this post!  
Unread 01-26-2013, 02:05 PM
BradAMiller BradAMiller is online now
Registered User
AKA: Brad
#0190 ( Gompei and the Herd)
Team Role: Mentor
 
Join Date: Mar 2004
Location: Worcester, MA
Posts: 587
BradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant future
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
__________________
Brad Miller
Robotics Resource Center
Worcester Polytechnic Institute
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


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

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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