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?