wouldn't the last line in the final else statement break it out of the loop once it centers on the traget (the locked = 1). of course then i would still have the "Supervisor Uc" thing yall keep talking about to worry about so i guess it wouldn't work anyway....(not too mention the camera wont work in the loop Sorry for my confusion. I have programmed in a lot of other langauges besides C . I am just new to C and still trying to understand some of the stuff.
What if i put this code into the beginning of the while loop
Code:
Getdata(&rxdata);
Tracking_Info_Terminal();
Camera_Handler();
Servo_Track();
Putdata(&txdata);
also if i add a counter to 1000 and when it reached it it would run the program once but before it did it set a variable that had an if statement near the beginning of the run (but after "Supervisor Uc" checked) that put it back into the while loop. I hope i am not being to vague
it would almost be like making a super high priority interupt