Rigid and elastic airplane flight dynamics and automatic flight control