Functions related to compass aiding (_dhda_head and _h_head) where expressed in terms of scaled Gibbs vectors. Numerically, this could create difficulties due to gibbs vector singularities.
Therefore, both functions where re-expressed in terms of unit quaternions.
The unit tests are updated, but extensive random testing can also be done with the code below:
This PR is related to user story DLAB-
Description
Functions related to compass aiding (
_dhda_head
and_h_head
) where expressed in terms of scaled Gibbs vectors. Numerically, this could create difficulties due to gibbs vector singularities.Therefore, both functions where re-expressed in terms of unit quaternions.
The unit tests are updated, but extensive random testing can also be done with the code below:
Checklist
PR title tips: