第三部分 组合惯导(G2 姿态表示(一):方向余弦矩阵与欧拉角的三个基本旋转)
一、姿态与坐标约定
定义 G2-1(姿态) 载体坐标系(b 系)相对导航坐标系(n 系)的取向关系,用方向余弦矩阵 \(C_{n}^{b}\) 描述。本段固定 \(n=\)NED(北、东、地)、\(b=\)前右下,且
\[v^{b}=C_{n}^{b}v^{n}.\]
性质 G2-1 方向余弦矩阵正交且行列式为 \(+1\):
\[C_{n}^{b}(C_{n}^{b})^{\mathrm T}=I,\qquad \operatorname{det}C_{n}^{b}=+1.\]
注 1 \(C_{n}^{b}\) 的行是 b 系各轴在 n 系中的方向余弦;其列才是 n 系各轴在 b 系中的方向余弦。只看正交与行列式不能发现侧别错误,必须再用单轴 \(90^\circ\) 的物理方向核对。
二、三个基本旋转
三个矩阵均取右手式:
\[R_{x}(\gamma)=\begin{pmatrix}1&0&0\\0&\cos\gamma&-\sin\gamma\\0&\sin\gamma&\cos\gamma\end{pmatrix},\quad R_{y}(\theta)=\begin{pmatrix}\cos\theta&0&+\sin\theta\\0&1&0\\-\sin\theta&0&\cos\theta\end{pmatrix},\quad R_{z}(\psi)=\begin{pmatrix}\cos\psi&-\sin\psi&0\\\sin\psi&\cos\psi&0\\0&0&1\end{pmatrix}.\]
注 2 \(R_y\) 的 \((1,3)\) 元为 \(+\sin\theta\)、\((3,1)\) 元为 \(-\sin\theta\)。正角的意义须连同观察端说明:从转轴正端朝原点看,正旋转为逆时针;NED 的 \(z\) 轴朝地,不能脱离观察端笼统说“逆时针为正”。
三、欧拉角与合成顺序
定义 G2-2(欧拉角) 航向角 \(\psi\)(yaw,绕机体 \(z\))、俯仰角 \(\theta\)(pitch,绕当前机体 \(y\))、横滚角 \(\gamma\)(roll,绕当前机体 \(x\))。
约定 G2-1(内在 3-2-1) 从 n 系到 b 系的主写式为
\[C_{n}^{b}=\bigl[R_{z}(\psi)R_{y}(\theta)R_{x}(\gamma)\bigr]^{\mathrm T}.\]
角序按实际转动理解为:先绕机体 \(z\) 转 \(\psi\),再绕当前机体 \(y\) 转 \(\theta\),最后绕当前机体 \(x\) 转 \(\gamma\)。正方向分别是航向自北向东、俯仰抬头、横滚右翼下沉。
注 3 旋转不可交换,括号外的转置不能丢。矩阵反解时按转置后的行列归属读取,不能把未转置乘积的元素位置直接代入。
例 G2-1 分别取 \(\psi=90^\circ,\theta=0,\gamma=0\)、\(\psi=0,\theta=90^\circ,\gamma=0\) 与 \(\psi=90^\circ,\theta=90^\circ,\gamma=0\),求 \(C_{n}^{b}\) 及 n 系单位向量 \(e_1,e_3\) 在 b 系中的分量。
解 前两例分别为
\[C_{n}^{b}=\begin{pmatrix}+0.000000 & +1.000000 & +0.000000 \\ -1.000000 & +0.000000 & +0.000000 \\ +0.000000 & +0.000000 & +1.000000\end{pmatrix}=R_z(90^\circ)^{\mathrm T},\qquad C_{n}^{b}=\begin{pmatrix}+0.000000 & +0.000000 & -1.000000 \\ +0.000000 & +1.000000 & +0.000000 \\ +1.000000 & +0.000000 & +0.000000\end{pmatrix}=R_y(90^\circ)^{\mathrm T}.\]
第三例为
\[C_{n}^{b}=\begin{pmatrix}+0.000000 & +0.000000 & -1.000000 \\ -1.000000 & +0.000000 & +0.000000 \\ +0.000000 & +1.000000 & +0.000000\end{pmatrix},\qquad C_{n}^{b}e_1=\begin{pmatrix}+0.000000 \\ -1.000000 \\ +0.000000\end{pmatrix},\qquad C_{n}^{b}e_3=\begin{pmatrix}-1.000000 \\ +0.000000 \\ +0.000000\end{pmatrix}.\]
注 4 NED 中 \(e_1\) 是北向单位向量,不是东向。\(C_{n}^{b}e_1\) 是北向单位向量在 b 系中的分量;机头在 n 系中的方向则用 \((C_{n}^{b})^{\mathrm T}e_1\)。纯航向 \(+90^\circ\) 应把机头送到东向 \([0,1,0]^{\mathrm T}\);纯俯仰 \(+90^\circ\) 应把机头送到天向 \([0,0,-1]^{\mathrm T}\)。这两条物理方向比“矩阵看起来像不像”更能发现侧别错。
性质 G2-2 当 \(\theta=\pm90^\circ\) 时 \(\cos\theta=0\),万向锁出现,\(\psi\) 与 \(\gamma\) 不能分别唯一解出。本段只要求识别退化条件与后果。