Hi all,
If I have a desired attitude quaternion: q0_d = 0.707 q1_d = 0 q2_d = .707 q3_d = 0
where q0_d is the cos(theta/2) term. And then, if I compute the error quaternion:
[q_e (4x1)] = [q_d (4x4)] X [q (4x1)]where q is the current attitude quaternion, then how would I get the angular error with respect to each axis. That is, is there a way I can convert my error quaternion values (from above) back to Euler angles WHILE still avoiding the Euler singularities (i.e. gimbal lock)?
Thanks in advance!