Go to Post [on the 2007 field control software] its crazy -- not only did they sound like the same old sound effects we know and love, but it seemed like they actually occured at the time they were supposed to! :) - Aidan F. Browne [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 24-05-2010, 17:42
masoug's Avatar
masoug masoug is offline
Food Consumer
FRC #0114
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2009
Location: Planet Earth
Posts: 78
masoug is an unknown quantity at this point
Question How Many Iterations?

Hi,
How many iterations per second does "Iterative Robot" method do for periodic functions?
Are they constant? Or are they variable?

THANKS!!!

-Masoug
__________________

JabbaScript
Reply With Quote
  #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
  #3   Spotlight this post!  
Unread 24-05-2010, 21:43
masoug's Avatar
masoug masoug is offline
Food Consumer
FRC #0114
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2009
Location: Planet Earth
Posts: 78
masoug is an unknown quantity at this point
Re: How Many Iterations?

Coll thanks! But:
Quote:
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)
do we have to include additional header files and etc?

THANKS!!!

-Masoug
__________________

JabbaScript
Reply With Quote
  #4   Spotlight this post!  
Unread 25-05-2010, 18:10
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?

Nothing extra is needed. Those functions are inherited with the IterativeRobot class
__________________

"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
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

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


All times are GMT -5. The time now is 02:49.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi