View Single Post
  #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?