mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-15 05:43:33 +08:00
Fixing wrong label of quaternion direction
This commit is contained in:
committed by
Paul Riseborough
parent
fe3fec413c
commit
8c061fb6a4
+1
-1
@@ -361,7 +361,7 @@ struct parameters {
|
||||
};
|
||||
|
||||
struct stateSample {
|
||||
Quatf quat_nominal; ///< quaternion defining the rotation from earth to body frame
|
||||
Quatf quat_nominal; ///< quaternion defining the rotation from body to earth frame
|
||||
Vector3f vel; ///< NED velocity in earth frame in m/s
|
||||
Vector3f pos; ///< NED position in earth frame in m
|
||||
Vector3f gyro_bias; ///< delta angle bias estimate in rad
|
||||
|
||||
+1
-1
@@ -537,7 +537,7 @@ void Ekf::fuseHeading()
|
||||
H_YAW[2] = t8*t14*(-q1*t3+q1*t4+q1*t5+q1*t6-q0*q2*q3*2.0f)*2.0f;
|
||||
H_YAW[3] = t8*t14*(q0*t3-q0*t4+q0*t5+q0*t6-q1*q2*q3*2.0f)*2.0f;
|
||||
|
||||
/* Calculate the 312 sequence euler angles that rotate from earth to body frame
|
||||
/* Calculate the 312 sequence euler angles that rotate from body to earth frame
|
||||
* Derived from https://github.com/PX4/ecl/blob/master/matlab/scripts/Inertial%20Nav%20EKF/quat2yaw312.m
|
||||
* Body to nav frame transformation using a yaw-roll-pitch rotation sequence is given by:
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user