Where, or how, should we call the camera tracking functions to get the camera to track in autonomous mode? Calling the individual Servo_Track and Camera_Handler functions didn’t work. We copied Process_Data_From_Master_uP, gave it a new name, commented out the call to Default_Routine, and called that from within User_Autonomous_Code and that didn’t work either. We moved things around relative to the getdata and putdata statements, and even tried commenting some of them out, to no avail. The camera stops tracking as soon as it goes into autonomous mode. Any suggestions would be appreciated.
Our User_Autonomous_Code() looks like this:
while (autonomous_mode) /* DO NOT CHANGE! */
{
if (statusflag.NEW_SPI_DATA) /* 26.2ms loop area */
{
Getdata(&rxdata); /* DO NOT DELETE, or you will be stuck here forever! */
Camera_Handler();
Servo_Track();
The trick iss to look in Process_Data_From_Master_uP() to see what functions looked necessary and what order things were called in.