Go to Post A challenge to those of you grumbling about the refereeing this year: Be a referee next year. - Alan Anderson [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

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Spotlight this post!  
Unread 15-01-2015, 18:48
gadet gadet is offline
Registered User
AKA: Danny Qiu
FRC #0694 (StuyPulse)
Team Role: Programmer
 
Join Date: Dec 2014
Rookie Year: 2011
Location: New York, USA
Posts: 3
gadet is an unknown quantity at this point
Re: How to print values on smartdashboard

I assume that you are putting a number from the potentiometer onto the dashboard. The code below is an example for when the potentiometer is connected to port 0

Code:
AnalogPotentiometer pot = new AnalogPotentiometer(0, 360, 30);
SmartDashboard.putNumber("Potentiometer Value", pot.get());
For more reference:
Reply With Quote
 


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 18:06.

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