View Single Post
  #13   Spotlight this post!  
Unread 17-02-2003, 08:58
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,588
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
Quote:
Originally posted by whickedmoo
My point is, if worse comes to worse, perhapse you could try and add some debug statements to your code and see what happens, though I don't recommend it.
debug statements are SLOW. They send data serially through the programming port at 9600 bps = 1200 bytes/sec. since there are 38 packets a second, you can send at the most 31 bytes. Since you do a lot of other stuff in your program, it's really much less. If you have too many, you will skip loops.

If you incremented your counter by 1+delta_t, the debug statements would have far less of an impact, however, it would still be affected because you wouldn't have the same resolution.