It's a simple concept, and one of the easiest to do. One of my first programs was that. Of couse, I wouldn't recomend doing for
competition, but it is a method. I call it dumb because it uses NO sensory input, and when you start it, it goes until it finishes.
try something like:
Code:
const int gTime = 75;
//...
void Default_Routine(void)
{
static unsigned int i_Count;
if (i_Count > 6*gTime)
{
// Set-up for Mode 6
i_Count = 0;
}
else if (i_Count > 5*gTime)
{
// Set-up for Mode 6
}
else if (i_Count > 4*gTime)
{
// Set-up for Mode 4
}
else if (i_Count > 3*gTime)
{
// Set-up for Mode 3
}
else if (i_Count > 2*gTime)
{
// Set-up for Mode 2
}
else if (i_Count > 1*gTime)
{
// Set-up for Mode 1
}
i_Count = i_Count + 1;
printf("i_cCount=%d\n",(int)i_cCount);
} // END Default_Routine();
to expand this, just put in more else if's. Be shure to put the HIGHEST first. The sample should be enough to get you started. Of course, it will loop through this forever. To get it to stop I'll leave to YOU

. (you can roll your eyes and be a little sarcastic when you respond to that)
If you want to know more about DEAD reckoning, check
What to do with autonomous. Dead reckoning has been discussed there to the ends of posibility, then a considerate bit more.
Don't worry, this my first year too.
p.s. Can you use periods? PLEASE?