View Single Post
  #3   Spotlight this post!  
Unread 02-02-2006, 14:38
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 counting randomly off by x4 factor

Just to reduce the number of variables, try putting in some code to toggle an otherwise unused output every time you compute the delta. Look at that output with a scope to see that you're actually doing it every 26.2 milliseconds. That'll help tell you where to focus your attention.

Look at the encoder output with the scope too, just to make sure that it stays consistent.