I found that CAMERA_ON_TARGET state goes on and off too much to do any good. I've tried this state and it works realiby:
Code:
if( Get_Tracking_State() == SEARCHING)
{
pwm10 = pwm08 = 127;
}
else
{
pwm10 = pwm08 = 135; // 135 is nothing unless its a really geared down motor :)
}
The SEARCHING state works great and I was able to keep a spike on with relay output.