View Single Post
  #2   Spotlight this post!  
Unread 24-05-2010, 17:52
Radical Pi Radical Pi is offline
Putting the Jumper in the Bumper
AKA: Ian Thompson
FRC #0639 (Code Red Robotics)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2010
Location: New York
Posts: 655
Radical Pi has a spectacular aura aboutRadical Pi has a spectacular aura aboutRadical Pi has a spectacular aura about
Re: How Many Iterations?

By default the period is whenever a packet is recieved from the DS (about 50 Hz according to the source).

To define your own period, call SetPeriod(double seconds). FYI this is a minimum. If the code is taking longer than the period to execute, it will wait for the code to finish. Also, call SetPeriod(0.0) to reset it to DS packets.

For # of loops per second, call GetLoopsPerSec() (warning: it doesn't check for the special 0.0 value that signals DS packet sync. It will try to divide by zero if you call it when in DS sync mode)
__________________

"To have no errors would be life without meaning. No strugle, no joy"
"A network is only as strong as it's weakest linksys"
Reply With Quote