An adaptive trajectory control for UAV using a real-time architecture