Go to Post Give me enough gearboxes and I'll move the world. - SenorZ [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-17-2015, 05:42 PM
1024Programming 1024Programming is offline
Registered User
FRC #1024
 
Join Date: Jan 2014
Location: Indiana
Posts: 43
1024Programming is an unknown quantity at this point
SmartDashboard prints

I've been trying to print my ultrasonic and gyro values to the SmartDashboard using
SmartDashboard.putNumber(RobotMap.drivetrainultra. getVoltage());
SmartDashboard.putNumber(RobotMap.drivetraingyro.g etAngle());
and I can't find where it prints it out in the SmartDashboard window. Can anyone tell me where those commands will output, or a different command to print it out somewhere I can find?
I've also used the System.out.println to see it on the RIOlog, but I'd like to be able to put my status update prints on the SmartDashboard.
Reply With Quote
  #2   Spotlight this post!  
Unread 01-17-2015, 07:00 PM
M3rcuriel's Avatar
M3rcuriel M3rcuriel is offline
Mentor
AKA: Lee Mracek
FRC #0299 (Valkyrie Robotics)
Team Role: Mentor
 
Join Date: Jun 2014
Rookie Year: 2013
Location: Cupertino
Posts: 19
M3rcuriel is on a distinguished road
Re: SmartDashboard prints

You'd have to use it like so:
Code:
SmartDashboard.putNumber("Gyro", RobotMap.drivetraingyro.getAngle());
Edit: It outputs to the Java Dashboard.
Reply With Quote
  #3   Spotlight this post!  
Unread 01-17-2015, 07:01 PM
Fauge7 Fauge7 is offline
Head programmer
FRC #3019 (firebird robotics)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Scottsdale
Posts: 195
Fauge7 is a name known to allFauge7 is a name known to allFauge7 is a name known to allFauge7 is a name known to allFauge7 is a name known to allFauge7 is a name known to all
Re: SmartDashboard prints

SmartDashboard.putNumber("Gyro value", gyro.getAngle());
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:00 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