I've now got the camera working in human operated mode but when we switch over to autonomous nothing happens. I've also included tracking.h in user_routines_fast.c, Our code currently looks something like this:
Code:
Getdata(&rxdata);
Camera_Handler();
Servo_Track();
if (Get_Tracking_State == TARGET_IN_VIEW)
{
pwm13 = pwm15 = 170;
}
else
{
pwm13 = pwm15 = 127;
}
Generate_Pwms(pwm13,pwm14,pwm15,pwm16);
Putdata(&txdata);
I was simply trying to see if i could get the motors to respond to what the camera was seeing. Is there some reason why this isn't working?