mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-21 22:43:33 +08:00
updateYawInRotMat with hidden rotation sequence handling
This commit is contained in:
committed by
Paul Riseborough
parent
419b70e4b5
commit
9797e4d28f
@@ -99,3 +99,9 @@ matrix::Dcmf updateEuler312YawInRotMat(float yaw, const matrix::Dcmf& rot_in) {
|
||||
atan2f(-rot_in(2, 0), rot_in(2, 2))); // pitch
|
||||
return taitBryan312ToRotMat(rotVec312);
|
||||
}
|
||||
|
||||
matrix::Dcmf updateYawInRotMat(float yaw, const matrix::Dcmf& rot_in) {
|
||||
return shouldUse321RotationSequence(rot_in) ?
|
||||
updateEuler321YawInRotMat(yaw, rot_in) :
|
||||
updateEuler312YawInRotMat(yaw, rot_in);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user