Go to Post You don't have to beat stronger teams to get better... to get better is to be forced to push the envelope against stronger teams. - Shankar M [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 12-02-2005, 14:13
Transporter08's Avatar
Transporter08 Transporter08 is offline
Registered User
AKA: Josh R.
#1502 (Technical Difficulties)
 
Join Date: Dec 2004
Rookie Year: 2004
Location: Chelsea
Posts: 1
Transporter08 is an unknown quantity at this point
Send a message via AIM to Transporter08
Loop execution time for Autonomous code

I know that the speed of execution for a non-autonomous code loop is 26.2 ms, but I jcan't find documentation of how long an autonomous code will take to loop. What is the correct time, for counter purposes?
__________________
Time is like a tortoise, its slow but will always pass.
  #2   Spotlight this post!  
Unread 12-02-2005, 14:22
AIBob's Avatar
AIBob AIBob is offline
AI Programmer
AKA: Bob Frank DOT org
FRC #0358 (Hauppauge Robotic Eagles)
Team Role: Alumni
 
Join Date: Jan 2005
Rookie Year: 2003
Location: Long Island, NY (in Binghamton now)
Posts: 297
AIBob is a splendid one to beholdAIBob is a splendid one to beholdAIBob is a splendid one to beholdAIBob is a splendid one to beholdAIBob is a splendid one to beholdAIBob is a splendid one to beholdAIBob is a splendid one to behold
Send a message via ICQ to AIBob Send a message via AIM to AIBob Send a message via MSN to AIBob Send a message via Yahoo to AIBob
Re: Loop execution time for Autonomous code

If you look at the code, it shows the autonomous mode and the non-autonomous mode called at the same time, so I am pretty sure it is the same time for a loop in autonomous mode as it is in non-autonomous mode.
they might be off by a microsecond or two, because of the functions called, but they're basically the same
__________________
- from B B frank


Last edited by AIBob : 12-02-2005 at 14:28.
  #3   Spotlight this post!  
Unread 13-02-2005, 16:17
ConKbot of Doom ConKbot of Doom is offline
Team Alumni
FRC #1184 (Cobra Robotics)
Team Role: Leadership
 
Join Date: Jan 2005
Rookie Year: 2004
Location: Maryland
Posts: 153
ConKbot of Doom has a spectacular aura aboutConKbot of Doom has a spectacular aura aboutConKbot of Doom has a spectacular aura about
Re: Loop execution time for Autonomous code

If you look at the beginning of User_Autonomous_Code() you see
Code:
while (autonomous_mode)   /* DO NOT CHANGE! */
  {
    if (statusflag.NEW_SPI_DATA)      /* 26.2ms loop area */
    {
        Getdata(&rxdata);   /* DO NOT DELETE, or you will be stuck here forever! */
the non-autonomous mode code only excecutes on the first cycle of the autonomous mode, after that, it is in that loop there.

So that gets executed every 26.2ms, and Process_Data_From_Master_uP() is not.

I'm not sure what you are asking, do you want to know how long it takes for the code to run?
Closed Thread


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
Example gyro code released. Kevin Watson Programming 60 17-03-2005 18:32
Team THRUST - Kevin's Code and Camera Code Combine Chris_Elston Programming 3 31-01-2005 22:28
Solution to Timing Loops Steven Carmain Programming 39 10-02-2003 13:33
How long should production time be??? archiver 1999 4 23-06-2002 23:16
Arm Rotation (1 Button Programming!!) Joelster Technical Discussion 1 14-02-2002 13:15


All times are GMT -5. The time now is 09:27.

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