View Single Post
  #2   Spotlight this post!  
Unread 04-10-2008, 13:53
Dave Scheck's Avatar
Dave Scheck Dave Scheck is offline
Registered User
FRC #0111 (WildStang)
Team Role: Engineer
 
Join Date: Feb 2003
Rookie Year: 2002
Location: Arlington Heights, IL
Posts: 574
Dave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond repute
Re: Encoder Oscillation Issues

You should take a look at the output of your sensors. We've seen that happen if one of the sensor channels is lost or the connection becomes loose. Add some prints to the encoder code to view the input and turn the encoder slowly to see that the output is consistent. Most likely what's happening is that the encoder is missing a transition and the encoder code thinks that it started turning the opposite direction.