View Single Post
  #6   Spotlight this post!  
Unread 15-02-2009, 13:44
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Ultrasonics / Sonar

Quote:
Originally Posted by Shira View Post
Code:
double range;
 :
range = m_ultra->GetRangeInches();
But when I print out the range I get only zeros. Actually, I've gotten other values with that code occasionally...
How are you printing it? If your format specifier doesn't match the variable type, it won't work properly.
Reply With Quote