(window.webpackJsonp=window.webpackJsonp||[]).push([[193],{513:function(_,t,v){"use strict";v.r(t);var d=v(10),s=Object(d.a)({},(function(){var _=this,t=_._self._c;return t("ContentSlotsDistributor",{attrs:{"slot-key":_.$parent.slotKey}},[t("h1",{attrs:{id:"msg-dcm-orien"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#msg-dcm-orien"}},[_._v("#")]),_._v(" MSG_DCM_ORIEN")]),_._v(" "),t("p",[_._v("该数据包用于描述:方向余弦矩阵")]),_._v(" "),t("table",{staticClass:"fdilink-packet-table"},[t("thead",[t("tr",{staticClass:"packet-id-row"},[t("th",[_._v("Packet ID")]),_._v(" "),t("th",[_._v("0x65")]),_._v(" "),t("th"),_._v(" "),t("th"),_._v(" "),t("th"),_._v(" "),t("th")]),_._v(" "),t("tr",{staticClass:"packet-id-row"},[t("th",[_._v("Length")]),_._v(" "),t("th",[_._v("36")]),_._v(" "),t("th"),_._v(" "),t("th"),_._v(" "),t("th"),_._v(" "),t("th")]),_._v(" "),t("tr",{staticClass:"packet-id-row"},[t("th",[_._v("Read / Write")]),_._v(" "),t("th",[_._v("Read")]),_._v(" "),t("th"),_._v(" "),t("th"),_._v(" "),t("th"),_._v(" "),t("th")]),_._v(" "),t("tr",[t("th",[_._v("Offset")]),_._v(" "),t("th",[_._v("Size")]),_._v(" "),t("th",[_._v("Format")]),_._v(" "),t("th",[_._v("Field")]),_._v(" "),t("th",[_._v("Unit")]),_._v(" "),t("th",[_._v("Description")])])]),_._v(" "),t("tbody",[t("tr",[t("td",[_._v("0")]),_._v(" "),t("td",[_._v("4")]),_._v(" "),t("td",[_._v("float32_t")]),_._v(" "),t("td",[_._v("DCM\\[0]\\[0]")]),_._v(" "),t("td"),_._v(" "),t("td",[_._v("方向余弦矩阵")])]),_._v(" "),t("tr",[t("td",[_._v("4")]),_._v(" "),t("td",[_._v("4")]),_._v(" "),t("td",[_._v("float32_t")]),_._v(" "),t("td",[_._v("DCM\\[0]\\[1]")]),_._v(" "),t("td"),_._v(" "),t("td",[_._v("方向余弦矩阵")])]),_._v(" "),t("tr",[t("td",[_._v("8")]),_._v(" "),t("td",[_._v("4")]),_._v(" "),t("td",[_._v("float32_t")]),_._v(" "),t("td",[_._v("DCM\\[0]\\[2]")]),_._v(" "),t("td"),_._v(" "),t("td",[_._v("方向余弦矩阵")])]),_._v(" "),t("tr",[t("td",[_._v("12")]),_._v(" "),t("td",[_._v("4")]),_._v(" "),t("td",[_._v("float32_t")]),_._v(" "),t("td",[_._v("DCM\\[1]\\[0]")]),_._v(" "),t("td"),_._v(" "),t("td",[_._v("方向余弦矩阵")])]),_._v(" "),t("tr",[t("td",[_._v("16")]),_._v(" "),t("td",[_._v("4")]),_._v(" "),t("td",[_._v("float32_t")]),_._v(" "),t("td",[_._v("DCM\\[1]\\[1]")]),_._v(" "),t("td"),_._v(" "),t("td",[_._v("方向余弦矩阵")])]),_._v(" "),t("tr",[t("td",[_._v("20")]),_._v(" "),t("td",[_._v("4")]),_._v(" "),t("td",[_._v("float32_t")]),_._v(" "),t("td",[_._v("DCM\\[1]\\[2]")]),_._v(" "),t("td"),_._v(" "),t("td",[_._v("方向余弦矩阵")])]),_._v(" "),t("tr",[t("td",[_._v("24")]),_._v(" "),t("td",[_._v("4")]),_._v(" "),t("td",[_._v("float32_t")]),_._v(" "),t("td",[_._v("DCM\\[2]\\[0]")]),_._v(" "),t("td"),_._v(" "),t("td",[_._v("方向余弦矩阵")])]),_._v(" "),t("tr",[t("td",[_._v("28")]),_._v(" "),t("td",[_._v("4")]),_._v(" "),t("td",[_._v("float32_t")]),_._v(" "),t("td",[_._v("DCM\\[2]\\[1]")]),_._v(" "),t("td"),_._v(" "),t("td",[_._v("方向余弦矩阵")])]),_._v(" "),t("tr",[t("td",[_._v("32")]),_._v(" "),t("td",[_._v("4")]),_._v(" "),t("td",[_._v("float32_t")]),_._v(" "),t("td",[_._v("DCM\\[2]\\[2]")]),_._v(" "),t("td"),_._v(" "),t("td",[_._v("方向余弦矩阵")])])])]),_._v(" "),t("p",[_._v("DCM公式如下:")]),_._v(" "),t("p",[_._v("DCM[0][0] = cos(heading) * cos(pitch)")]),_._v(" "),t("p",[_._v("DCM[0][1] = sin(heading) * cos(pitch)")]),_._v(" "),t("p",[_._v("DCM[0][2] = -sin(pitch)")]),_._v(" "),t("p",[_._v("DCM[1][0] = -sin(heading) * cos(roll) + cos(heading) * sin(pitch) * sin(roll)")]),_._v(" "),t("p",[_._v("DCM[1][1] = cos(heading) * cos(roll) + sin(heading) * sin(pitch) * sin(roll)")]),_._v(" "),t("p",[_._v("DCM[1][2] = cos(pitch) * sin(roll)")]),_._v(" "),t("p",[_._v("DCM[2][0] = sin(heading) * sin(roll) + cos(heading) * sin(pitch) * cos(roll)")]),_._v(" "),t("p",[_._v("DCM[2][1] = -cos(heading) * sin(roll) + sin(heading) * sin(pitch) * cos(roll)")]),_._v(" "),t("p",[_._v("DCM[2][2] = cos(pitch) * cos(roll)")])])}),[],!1,null,null,null);t.default=s.exports}}]);