|
Re: Code cycles per second
Posted by Joe Ross at 03/24/2001 3:48 PM EST
Engineer on team #330, Beach Bot, from Hope Chapel Academy and NASA/JPL , J&F Machine, and Raytheon.
In Reply to: Code cycles per second
Posted by Patrick Dingle on 03/24/2001 9:19 AM EST:
: I'm pretty sure I heard (somewhere) the program cycles 40 times per second... Can anyone confirm or discomfirm that number? What i'm ultimately interested in knowing is how many packets per second the robot controller receives from the operator interface, and how many packets per second the operator interface receives from the controller. Does code size effect this rate?
The robot receives data from the modems 40 times a second. it is possible for your program to to execute slower than that, though it doesn't usually happen unless you have a lot of debug statements in your code. There is a variable "delta_t" that tells you how many packets you have missed since the last time that you went through the loop.
__________________
This message was archived from an earlier forum system. Some information may have been left out. Start new discussion in the current forums, and refer back to these threads when necessary.
|