|
Algorithm 2. Optimization based absolute attitude estimation algorithm (q-Method) |
-
Concatenate observation vectors:
Calculate: B = WVT; Q = B + BT
Extract Z from B matrix: Z = [B23 − B32B31 − B13B12 − B21]
Form 4 × 4 matrix K:
-
Find Eigen data of K. The Eigenvector corresponding to the largest Eigen value of K is q vector:
-
Desired rotation matrix can be found from quaternion vector:
-
Attitude angles extraction:
-
Hence roll, pitch and heading angles can be derived from matrix () as:
|