Alrighty heres what I would do.
In user_routines_fast.c
at the beginning
Code:
int counter=0;
int tracking_green=0;
In the autonomous section
Code:
#if _use_CMU_Camera
if(counter=0)
{
camera_init(x,y,z);
auto_servo(0);
camera_find_color(GREEN);
counter++
}
if (camera_track_update()=1 && cam.size > 0)
{
tracking_green=1;
}
else
{
tracking_green=0;
}
#endif
then later you just have to check the value of tracking_green. Oh and remember to plug in your calibration values in that camera_init(x,y,z) function.