View Single Post
  #1   Spotlight this post!  
Unread 08-02-2006, 19:38
theycallhimtom theycallhimtom is offline
Registered User
AKA: Tom Conerly
FRC #1540 (The Flaming Chickens)
Team Role: College Student
 
Join Date: Jan 2006
Rookie Year: 2005
Location: Lake Oswego, Oregon
Posts: 52
theycallhimtom has a spectacular aura abouttheycallhimtom has a spectacular aura abouttheycallhimtom has a spectacular aura about
Send a message via AIM to theycallhimtom Send a message via MSN to theycallhimtom
Encoders and putdata

So I'm getting the error: Timeout on Packet Number (Infinite Loop or no call to put data)

I got the latest version of Kevin's stripped down camera code and added his eeprom and interrupts(following his instructions for how to add them). I also added my code for encoders which I have tested on a different code base and it works. When I ran the encoders off of the new code base I get the above error ONLY when I move a wheel and the interrupt routines get called. They get called around 20 times before it crashes.

I have tried adding putdata in anywhere from twice instead of once to calling it during every interrupt and I still get the same error. I have no loops at all in my code. I have tried commenting out all the function calls in Process_Data_From_Master_uP so that function only calls getdata then putdata and I still get the same error.

Anyone have any ideas?

Here is the encoder code: (which again has been tested to work)
Code:
if(ENCODER2 == INPUTTRUE){                
      directionTravelingOne = FORWARD;
  }else{
    clockwise*/
    directionTravelingOne = BACKWARD;
     clickRotationsOne--;
  }