Smart Autonomous Aircraft: Flight Control and Planning for UAV