View Single Post
  #8   Spotlight this post!  
Unread 20-01-2005, 13:13
Kevin Watson's Avatar
Kevin Watson Kevin Watson is offline
La Caņada High School
FRC #2429
Team Role: Mentor
 
Join Date: Jan 2002
Rookie Year: 2001
Location: La Caņada, California
Posts: 1,335
Kevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond repute
Re: Analog Input Trouble

Quote:
Originally Posted by Matt Krass
I'll definitely try that, however once I get to robotics I won't have access to these forums, so in case it doesn't work out, does anyone have any other tips or things for me to check?

Thanks, Matt.
Matt,

To expand upon Mike's reply above, Get_Analog_Value() returns an unsigned int. Your printf() is expecting to manipulate an int because you used %d instead of %u. I fixed it in my code above, but forgot to mention it as another problem.

-Kevin
__________________
Kevin Watson
Engineer at stealth-mode startup
http://kevin.org