Relay-based autotuning for quadrotor attitude and rate control