Our User_Autonomous_Code() looks like this:
Code:
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.