mirror of https://github.com/ArduPilot/ardupilot
AP_NavEKF3: Fix bug in use of external 321 yaw to align
This commit is contained in:
parent
122f214416
commit
209a32b8b9
|
@ -218,7 +218,7 @@ void NavEKF3_core::alignYawAngle()
|
|||
if (yawAngDataDelayed.type == 2) {
|
||||
Vector3f euler321;
|
||||
stateStruct.quat.to_euler(euler321.x, euler321.y, euler321.z);
|
||||
stateStruct.quat.to_euler(euler321.x, euler321.y, yawAngDataDelayed.yawAng);
|
||||
stateStruct.quat.from_euler(euler321.x, euler321.y, yawAngDataDelayed.yawAng);
|
||||
} else if (yawAngDataDelayed.type == 1) {
|
||||
Vector3f euler312 = stateStruct.quat.to_vector312();
|
||||
stateStruct.quat.from_vector312(euler312.x, euler312.y, yawAngDataDelayed.yawAng);
|
||||
|
|
Loading…
Reference in New Issue