View Single Post
  #15   Spotlight this post!  
Unread 18-02-2007, 23:41
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,113
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: Encoder Problemo

Quote:
Originally Posted by cgront View Post
Help! It's not displaying the data frrom the encoders. Please any help would be appreciated asap
we checked the encoders and they are wired correctly.
we are trying to print the functions which should return the values in the code.

Thank you.
How are you trying to print the functions? The Get_Encoder... functions return long integers. If you try to print them using the %d format, you'll likely get zero unless the encoders have turned far enough to start setting the high bytes of the value.

Also, here's my standard question for problems of this type: what exactly does "wired correctly" mean?