|
Re: Counter loop
Posted by Rick Berube at 2/16/2001 12:16 AM EST
Engineer on team #121, Rhode Warriors, from Middletown H.S..
In Reply to: Re: Counter loop
Posted by Joe Ross on 2/12/2001 7:14 PM EST:
Actually, I observed the loop time between consecutive cylces vary between alternate cycles even with a stripped down version of the default program. We were transferring no more than 8-10 bytes (I don't remember exactly how many) between the player station & robot at the time. We measured 20-30 mS periods by simply toggling the state of the PWM signal at a relay channel every time through the main loop. We attached a scope to the channel and observed the period of PWM signal change from 20mS to 30 mS and continuously repeat. We also monitored delta_t during this time, using a debug statement to print a message whenever delta_t was not equal to zero, and never once saw the message!
I didn't dig into it any more, I just made note of it. I wonder if one were to monitor the serial stream between the receiver and RF modem, if they would see the same delay in the data stream or if the delay is incurred inside the receiver.
Rick
__________________
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.
|