View Single Post
  #19   Spotlight this post!  
Unread 12-02-2006, 11:34
lkdjm's Avatar
lkdjm lkdjm is offline
Registered User
AKA: David Mazza
FRC #0564 (Digital Impact)
Team Role: Programmer
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Middle Island, NY
Posts: 31
lkdjm will become famous soon enough
Send a message via AIM to lkdjm Send a message via Yahoo to lkdjm
Re: Has anyone else had trouble staying within the 10 second limit in autonomous?

Quote:
Originally Posted by Tom Bottiglieri
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;
}

So I assume that means that by default the camera will not start searching until autonomous starts. With this code, will it remain locked on when autonomous starts, or will it just restart the search?
__________________
Longwood's Digital Impact