View Single Post
  #1   Spotlight this post!  
Unread 17-02-2008, 21:44
duane's Avatar
duane duane is offline
Registered User
FRC #0701 (RoboVikes)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2003
Location: Vacaville
Posts: 98
duane is an unknown quantity at this point
Send a message via AIM to duane
Baffled by Encoder

We are using encoders on our transmissions. We are using Kevin Watson's Encoder library (from last year, not new).

In our experiments (due to things not working) we can move the encoder connections from 1-11 to 2-12, etc. Only 1,2,3 work, 4,5, & 6 do not.

This completley baffling to me. I've poked in some printfs in the interrupt handlers with enough information before crashing that the correct handler is getting called but not recording (I think down) transitions. That is the count is never incremented.

I'm not sure what's hapenning or why the same encoder that works on port 3 does not work on 4, 5, or 6.

Any ideas would be most helpful.

Thanks,
...Duane
__________________
Duane Murphy
Mentor - Software
Vanden Vikings FIRST Team 701
http://www.vandenrobotics.com