View Single Post
  #3   Spotlight this post!  
Unread 19-02-2003, 19:59
rbayer's Avatar Unsung FIRST Hero
rbayer rbayer is offline
Blood, Sweat, and Code
no team (Teamless Orphan)
 
Join Date: Mar 2002
Rookie Year: 2001
Location: Minnetonka, MN
Posts: 1,087
rbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of light
Send a message via AIM to rbayer
Re: Re: loops inside of subs???

Quote:
Originally posted by Joel J.
MyCounter is declared as a byte. A byte can store a number no larger than 254. After that it loops around to a negative number (an illusion).
While true, that is not the problem here. The problem is that the controllers need a SEROUT at least once every 125ms (that's once every five normal loops) in order to function properly. During your 3000-loop for structure, no data is sent or received from the rest of the RC causing it to die miserably. You need to find some way of putting a SEROUT in there somewhere.
__________________
New C-based RoboEmu2 (code simulator) available at: http://www.robbayer.com/software.php