Go to Post Think outside the bot. Find a different regional someplace you never considered before. There's plenty of them. - Koko Ed [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #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--;
  }
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 22:05.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi