All code will be added to the while 1 loop. If the program has to read the values from an R/C receiver then that can be done with CCP2 in capture mode - what it's designed to do.
Do you have a complete description of what the system is designed to do? I assumed it was some kind of autonomous drone but now an R/C component has been introduced. I also assumed the UART data was from a GPS module, is that correct? You get a complete string from the GPS unit, do some calculation and feed the result to the servos, ish?
Mike.
Do you have a complete description of what the system is designed to do? I assumed it was some kind of autonomous drone but now an R/C component has been introduced. I also assumed the UART data was from a GPS module, is that correct? You get a complete string from the GPS unit, do some calculation and feed the result to the servos, ish?
Mike.