Skip to content

Commit

Permalink
Add pages for class DCM, and its methods. Remove unused docs, and fix…
Browse files Browse the repository at this point in the history
… docstring in method from_quaternion().
  • Loading branch information
Mayitzin committed Sep 11, 2023
1 parent 0f7bf66 commit 6807608
Show file tree
Hide file tree
Showing 16 changed files with 80 additions and 32 deletions.
2 changes: 1 addition & 1 deletion ahrs/common/dcm.py
Original file line number Diff line number Diff line change
Expand Up @@ -734,7 +734,7 @@ def from_quaternion(self, q: np.ndarray) -> np.ndarray:
.. code-block::
>>> R.from_q([[1, 0.0, 1, 0.0], [1.0, -1.0, 0.0, 1.0], [0.0, 0.0, -1.0, 1.0]])
>>> R.from_quaternion([[1, 0.0, 1, 0.0], [1.0, -1.0, 0.0, 1.0], [0.0, 0.0, -1.0, 1.0]])
array([[[ 2.22044605e-16, 0.00000000e+00, 1.00000000e+00],
[ 0.00000000e+00, 1.00000000e+00, 0.00000000e+00],
[-1.00000000e+00, 0.00000000e+00, 2.22044605e-16]],
Expand Down
2 changes: 1 addition & 1 deletion docs/source/attitude_representations.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ From which, the following classes are available
:titlesonly:
:maxdepth: 1

classDCM
dcm/classDCM
quaternion/classQuaternion
quaternion/classQuaternionArray

Expand Down
5 changes: 0 additions & 5 deletions docs/source/classDCM.rst

This file was deleted.

5 changes: 5 additions & 0 deletions docs/source/dcm/classDCM.from_axang.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

from_axang
==========

.. automethod:: ahrs.common.dcm.DCM.from_axang
5 changes: 5 additions & 0 deletions docs/source/dcm/classDCM.from_axisangle.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

from_axisangle
==============

.. automethod:: ahrs.common.dcm.DCM.from_axisangle
5 changes: 5 additions & 0 deletions docs/source/dcm/classDCM.from_q.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

from_q
======

.. automethod:: ahrs.common.dcm.DCM.from_q
5 changes: 5 additions & 0 deletions docs/source/dcm/classDCM.from_quaternion.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

from_quaternion
===============

.. automethod:: ahrs.common.dcm.DCM.from_quaternion
5 changes: 5 additions & 0 deletions docs/source/dcm/classDCM.ode.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

ode
===

.. automethod:: ahrs.common.dcm.DCM.ode
23 changes: 23 additions & 0 deletions docs/source/dcm/classDCM.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@

Class DCM
=========

.. autoclass:: ahrs.common.dcm.DCM

**Methods**

.. toctree::
:maxdepth: 2
:titlesonly:

classDCM.to_axisangle
classDCM.to_axang
classDCM.from_axisangle
classDCM.from_axang
classDCM.from_quaternion
classDCM.from_q
classDCM.to_quaternion
classDCM.to_q
classDCM.to_angles
classDCM.to_rpy
classDCM.ode
5 changes: 5 additions & 0 deletions docs/source/dcm/classDCM.to_angles.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

to_angles
=========

.. automethod:: ahrs.common.dcm.DCM.to_angles
5 changes: 5 additions & 0 deletions docs/source/dcm/classDCM.to_axang.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

to_axang
========

.. automethod:: ahrs.common.dcm.DCM.to_axang
5 changes: 5 additions & 0 deletions docs/source/dcm/classDCM.to_axisangle.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

to_axisangle
============

.. automethod:: ahrs.common.dcm.DCM.to_axisangle
5 changes: 5 additions & 0 deletions docs/source/dcm/classDCM.to_q.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

to_q
====

.. automethod:: ahrs.common.dcm.DCM.to_q
5 changes: 5 additions & 0 deletions docs/source/dcm/classDCM.to_quaternion.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

to_quaternion
=============

.. automethod:: ahrs.common.dcm.DCM.to_quaternion
5 changes: 5 additions & 0 deletions docs/source/dcm/classDCM.to_rpy.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

to_rpy
======

.. automethod:: ahrs.common.dcm.DCM.to_rpy
25 changes: 0 additions & 25 deletions docs/source/specialClasses.rst

This file was deleted.

0 comments on commit 6807608

Please sign in to comment.