View Single Post
  #16   Spotlight this post!  
Unread 12-02-2006, 11:12
Tom Bottiglieri Tom Bottiglieri is offline
Registered User
FRC #0254 (The Cheesy Poofs)
Team Role: Engineer
 
Join Date: Jan 2004
Rookie Year: 2003
Location: San Francisco, CA
Posts: 3,188
Tom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond repute
Re: Has anyone else had trouble staying within the 10 second limit in autonomous?

Quote:
Originally Posted by lkdjm
Ok, good, I didn't realize that you could be locked on before autonomous starts, that cuts off a lot of time. But still, you will be facing straight, you may lock onto the wrong target, and even if you do happen to lock onto the right target, you have to make a turn twords the right target, and during that turn, it make loose the target. Thank you for the amazingly fast response at 3:30 in the morning. Clearly we have no lives, lol.
It could be done something like this

Code:
#define BEGIN_DISABLE     0

extern char robot_state=0;

Process_Data_From_Master_uP{
	switch(robot_state)
	{
		case: BEGIN_DISABLE
		{
			Tracking_Stuff();
                        break;
		}
	
		
		default: break;
	}

	Other Stuff...
	
	Default Routine;
}
(I put the switch statement in just in case you wanted other robot 'modes')

Code:
User_Autonmous_Mode
{
	robot_state=1;
	
	Autonomous Stuff;
}