Data-driven attitude control law design for a variable-pitch quadrotor