Nonlinear digital scheme for attitude tracking