An automatic stabilization system for quadrotors with applications to vertical take-off and landing