Thread: Crazy Loops
View Single Post
  #8   Spotlight this post!  
Unread 04-02-2007, 01:06
mluckham's Avatar
mluckham mluckham is offline
Registered User
FRC #0758 (Sky Robotics)
Team Role: Mentor
 
Join Date: Mar 2006
Rookie Year: 2006
Location: Ontario, Canada
Posts: 116
mluckham will become famous soon enoughmluckham will become famous soon enough
Re: Crazy Loops

If your 'done' variable was changing by itself, then perhaps the gyro call is assigning a variable of the wrong type ... if that variable is immediately adjacent in memory to the 'done' variable, the overflow would affect it.

This normally wouldn't be possible with a compiler like EasyC, which doesn't use pointers (well, it doesn't let US use pointers).

Please post the exact code - C code preferrably.

Mike

BTW - PSEUDO-CODE, not SUDO (but probably you know that)