Skip to content

Commit

Permalink
Fix other errors in docstring equations of QUEST
Browse files Browse the repository at this point in the history
  • Loading branch information
tokoro10g committed Feb 23, 2024
1 parent e4b43d5 commit 919be02
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ahrs/filters/quest.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
that minimizes the loss function:
.. math::
L(\\mathbf{A}) = \\frac{1}{2}\\sum_{i=1}^n |\\hat{\\mathbf{W}}_i - \\mathbf{A}\\hat{\\mathbf{V}}_i|^2
L(\\mathbf{A}) = \\frac{1}{2}\\sum_{i=1}^n a_i |\\hat{\\mathbf{W}}_i - \\mathbf{A}\\hat{\\mathbf{V}}_i|^2
where :math:`a_i` are a set of non-negative weights such that :math:`\\sum_{i=1}^na_i=1`,
:math:`\\hat{\\mathbf{V}}_i` are nonparallel **reference vectors**, and
Expand Down Expand Up @@ -58,7 +58,7 @@
The attitude matrix :math:`\\mathbf{A}` is related to the quaternion by:
.. math::
\\mathbf{A}(\\bar{\\mathbf{q}}) = (q^2+\\mathbf{Q}\\cdot\\mathbf{Q})\\mathbf{I} + 2\\mathbf{QQ}^T + 2q\\lfloor\\mathbf{Q}\\rfloor_\\times
\\mathbf{A}(\\bar{\\mathbf{q}}) = (q^2-\\mathbf{Q}\\cdot\\mathbf{Q})\\mathbf{I} + 2\\mathbf{QQ}^T + 2q\\lfloor\\mathbf{Q}\\rfloor_\\times
where :math:`\\mathbf{I}` is the identity matrix, and :math:`\\lfloor\\mathbf{Q}\\rfloor_\\times`
is the **antisymmetric matrix** of :math:`\\mathbf{Q}`, a.k.a. the
Expand Down

0 comments on commit 919be02

Please sign in to comment.