Autonomous flight control