# MSG_INSTALL_ALIGN

该数据包用于描述:惯导安装偏移,包含安装角度偏移,GNSS杆臂,里程计杆臂、DVL杆臂以及用户自定义杆臂,该数据包里的所有杆臂变量均存在于导航系统的参数表里,可以通过串口指令进行配置,也可以在上位机软件FDIGroundStation的Onboard Parameter参数表里直接修改,具体定义可以参考产品使用手册;

Alignment DCM

The alignment DCM (direction cosine matrix) is used to represent an alignment offset of Spatial Dual from it's standard alignment. A DCM is used rather than euler angles for accuracy reasons. To convert euler angles to DCM please use the formula below with angles in radians.

DCM[0][0] = cos(heading) * cos(pitch)

DCM[0][1] = sin(heading) * cos(pitch)

DCM[0][2] = -sin(pitch)

DCM[1][0] = -sin(heading) * cos(roll) + cos(heading) * sin(pitch) * sin(roll)

DCM[1][1] = cos(heading) * cos(roll) + sin(heading) * sin(pitch) * sin(roll)

DCM[1][2] = cos(pitch) * sin(roll) DCM[2][0] = sin(heading) * sin(roll) + cos(heading) * sin(pitch) * cos(roll) DCM[2][1] = -cos(heading) * sin(roll) + sin(heading) * sin(pitch) * cos(roll)

DCM[2][2] = cos(pitch) * cos(roll)