|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
Hi,
How many iterations per second does "Iterative Robot" method do for periodic functions? Are they constant? Or are they variable? THANKS!!! -Masoug |
|
#2
|
|||
|
|||
|
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) |
|
#3
|
||||
|
||||
|
Re: How Many Iterations?
Coll thanks! But:
Quote:
THANKS!!! -Masoug |
|
#4
|
|||
|
|||
|
Re: How Many Iterations?
Nothing extra is needed. Those functions are inherited with the IterativeRobot class
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How many spikes | The Ars-sassin | Electrical | 3 | 13-02-2010 00:22 |
| People as Support Personnel in the Elims, How many is too many? | thefro526 | Championship Event | 9 | 02-05-2009 23:09 |
| How many interrupts is too many interrupts? | Madison | Programming | 14 | 08-02-2008 12:09 |
| How many teams.... | archiver | 2001 | 0 | 24-06-2002 04:03 |