Abstract: In this paper, we introduced the control strategy of indoor drones and the optimization strategy for UAV flight. For the flight control of the UAV, we use a dual closed-loop control system.