mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-29 20:23:33 +08:00
fix some typos and better explanation of quaternion ordering
This commit is contained in:
+1
-1
@@ -53,7 +53,7 @@ public:
|
|||||||
/**
|
/**
|
||||||
* Constructor from array
|
* Constructor from array
|
||||||
*
|
*
|
||||||
* @param other array
|
* @param _data pointer to array
|
||||||
*/
|
*/
|
||||||
Dcm(const Type *data_) : Matrix<Type, 3, 3>(data_)
|
Dcm(const Type *data_) : Matrix<Type, 3, 3>(data_)
|
||||||
{
|
{
|
||||||
|
|||||||
+1
-1
@@ -136,7 +136,7 @@ public:
|
|||||||
* Instance is set from dcm representing transformation
|
* Instance is set from dcm representing transformation
|
||||||
* from frame 2 to frame 1.
|
* from frame 2 to frame 1.
|
||||||
*
|
*
|
||||||
* @param dcm_ dcm to set angles to
|
* @param dcm Direction cosine matrix instance to convert from.
|
||||||
*/
|
*/
|
||||||
void set_from_dcm(const Dcm<Type> & dcm)
|
void set_from_dcm(const Dcm<Type> & dcm)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -3,7 +3,8 @@
|
|||||||
*
|
*
|
||||||
* A quaternion instance of this class describes a rotation from
|
* A quaternion instance of this class describes a rotation from
|
||||||
* coordinate frame 1 to corrdinate frame 2. The first element of the quaternion
|
* coordinate frame 1 to corrdinate frame 2. The first element of the quaternion
|
||||||
* represents the real part.
|
* represents the real part, thus, a quaternion representing a zero-rotation
|
||||||
|
* is define as (1,0,0,0).
|
||||||
*
|
*
|
||||||
* @author James Goppert <james.goppert@gmail.com>
|
* @author James Goppert <james.goppert@gmail.com>
|
||||||
*/
|
*/
|
||||||
@@ -104,6 +105,7 @@ public:
|
|||||||
*
|
*
|
||||||
* Instance is initialized from quaternion values representing coordinate
|
* Instance is initialized from quaternion values representing coordinate
|
||||||
* transformation from frame 2 to frame 1.
|
* transformation from frame 2 to frame 1.
|
||||||
|
* A zero-rotation quaternion is represented by (1,0,0,0).
|
||||||
*
|
*
|
||||||
* @param a set quaternion value 0
|
* @param a set quaternion value 0
|
||||||
* @param b set quaternion value 1
|
* @param b set quaternion value 1
|
||||||
|
|||||||
Reference in New Issue
Block a user