View Single Post
  #2   Spotlight this post!  
Unread 26-01-2006, 20:10
Validius's Avatar
Validius Validius is offline
There is a shadow following me.....
AKA: Mark Ratering
FRC #1549 (Washtenuts)
Team Role: College Student
 
Join Date: Feb 2005
Rookie Year: 2005
Location: South Lyon
Posts: 159
Validius will become famous soon enoughValidius will become famous soon enough
Send a message via AIM to Validius
Re: Autonomous speed

Quote:
Originally Posted by Shadow31
We're trying to look at autonomous code and we're trying to figure out how much time we need to move the robot to travel 19.5 feet. Does anyone know how fast the autonomous loop executes? How many milliseconds?
If you look at main.c you will see this code:


if (statusflag.NEW_SPI_DATA) /* 26.2ms loop area */
{ /* I'm slow! I only execute every 26.2ms because */
/* that's how fast the Master uP gives me data. */
Process_Data_From_Master_uP(); /* You edit this in user_routines.c */


if (autonomous_mode) /* DO NOT CHANGE! */
{
User_Autonomous_Code(); /* You edit this in user_routines_fast.c */
}
}
Process_Data_From_Local_IO(); /* You edit this in user_routines_fast.c */
/* I'm fast! I execute during every loop.*/
}

From this one could conclude that it loops every 26.2ms because it is within the slow loop area.
__________________
When a sociaty comes to believe that human life is not inherently worth living, it is a slippery slope to the gas chamber. You wind up on a low road that twists past Columbine and leads toward Auschwitz.

-Peggy Noonan

Last edited by Validius : 26-01-2006 at 20:35.