Hi All, 

I'm looking for some autopilot code to stick inside a UAV I'm desiging. I will have some roll, pitch, location and altitude information available, plus a goal (i.e. fly here, do this etc). I need algs to control roll, pitch, yaw. I'd like to know if the flightgear autopilot can be pulled out as a stand alone piece of code and used in this manner.

If you have any pointers or suggestions, they'd be very welcome.