mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-02 05:04:08 +08:00
fix some typos and better explanation of quaternion ordering
This commit is contained in:
parent
2b3bdb523d
commit
1033e145a5
@ -53,7 +53,7 @@ public:
|
||||
/**
|
||||
* Constructor from array
|
||||
*
|
||||
* @param other array
|
||||
* @param _data pointer to array
|
||||
*/
|
||||
Dcm(const Type *data_) : Matrix<Type, 3, 3>(data_)
|
||||
{
|
||||
|
||||
@ -136,7 +136,7 @@ public:
|
||||
* Instance is set from dcm representing transformation
|
||||
* 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)
|
||||
{
|
||||
|
||||
@ -3,7 +3,8 @@
|
||||
*
|
||||
* A quaternion instance of this class describes a rotation from
|
||||
* 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>
|
||||
*/
|
||||
@ -104,6 +105,7 @@ public:
|
||||
*
|
||||
* Instance is initialized from quaternion values representing coordinate
|
||||
* 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 b set quaternion value 1
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user