View Single Post
  #2   Spotlight this post!  
Unread 14-01-2008, 18:30
BradAMiller BradAMiller is offline
Registered User
AKA: Brad
#0190 ( Gompei and the Herd)
Team Role: Mentor
 
Join Date: Mar 2004
Location: Worcester, MA
Posts: 590
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: PrintToScreen() function prints out hex values?

Quote:
Originally Posted by Nathan View Post
When I use the PrintToScreen function provided in the WPI library it prints out hexadecimal values, is there any way to make it print in decimal?

This is the code I'm using:
Code:
PrintToScreen ( "%ld\n" , temp ) ;
"temp" is a long.

I thought that "%ld" was the correct value to put in for a long? What am I doing wrong?

Thanks,
Nathan

Nathan -

I'm at home now and don't have a controller here to test this. But if you use printf instead of PrintToScreen, I'm pretty sure that will work as advertised. I'll try to test it tomorrow sometime when I get to the office to see what's up.

Thanks,
Brad
__________________
Brad Miller
Robotics Resource Center
Worcester Polytechnic Institute