View Single Post
  #2   Spotlight this post!  
Unread 08-02-2006, 20:43
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,562
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Encoders and putdata

Quote:
Originally Posted by theycallhimtom
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--;
  }
Did you retype your code or cut and paste because you have an comment block terminator but no start in the code you have above.

Please cut and paste your entire interrupt handler and your InterruptHandlerLow function including all #pragmas.