View Single Post
  #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