Thread: the main code
View Single Post
  #5   Spotlight this post!  
Unread 10-01-2008, 06:44
Roger Roger is offline
Registered User
FRC #1153
 
Join Date: Jan 2006
Rookie Year: 1900
Location: Walpole MA
Posts: 688
Roger has a reputation beyond reputeRoger has a reputation beyond reputeRoger has a reputation beyond reputeRoger has a reputation beyond reputeRoger has a reputation beyond reputeRoger has a reputation beyond reputeRoger has a reputation beyond reputeRoger has a reputation beyond reputeRoger has a reputation beyond reputeRoger has a reputation beyond reputeRoger has a reputation beyond repute
Re: the main code

Yeah, I get the different loops syntax mixed up. Be thankful I remember that I know they are there, and I know where to look them up!

I'm curious how far can you stretch the loop until you really ought to break out. I had a loop that took (I forget) 16-20 sonar readings in one pass of the code, then the next pass start printf'ing them out. The printf is much slower and I didn't try doing it in one pass, and as it turns out, the sonar readings take more time than one pass apiece.