⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 getcombinedrotationmatrix.m

📁 利用gps多天线载波相位技术
💻 M
字号:
%%========================================
%%     Toolbox for attitude determination
%%     Zhen Dai
%%     dai@zess.uni-siegen.de
%%     ZESS, University of Siegen, Germany
%%     Last Modified  : 1.Sep.2008
%%========================================
%% Functions:
%%      Calculate the combined rotation matrix according to the given yaw,
%%      roll and pitch
%% Input parameters:
%%      yaw_deg -> Yaw in degree
%%      roll_deg -> Roll in degree
%%      pitch_deg -> Pitch in degree
%% Output:
%%      mR -> combined rotation matrix in the sequence of 3-1-2
%% Reference:
%%       B.Hofmann-Wellenhof, H.Lichtenegger and J.Collins: GPS Theory
%%       and practice. 2001. Fifth revised edition. Springer, Wien, New York.
%%       p. 327       

function mR=GetCombinedRotationMatrix(yaw_deg,roll_deg,pitch_deg)

%% angles in arc
roll_arc=roll_deg*pi/180;
pitch_arc=pitch_deg*pi/180;
yaw_arc=yaw_deg*pi/180;

cr=cos(roll_arc);
sr=sin(roll_arc);
cp=cos(pitch_arc);
sp=sin(pitch_arc);
cy=cos(yaw_arc);
sy=sin(yaw_arc);

mR =[cr*cy-sr*sp*sy    cr*sy+sr*sp*cy    -sr*cp;
             -cp*sy                       cp*cy                sp;
           sr*cy+cr*sp*sy    sr*sy-cr*sp*cy     cr*cp];
 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -