浏览代码

update: 增加 vk_obstacle_distance 信息

LiuYang 2 周之前
父节点
当前提交
654e9d845f
共有 1 个文件被更改,包括 12 次插入 和 0 次删除
  1. 12 0
      msg_definitions/VKFly.xml

+ 12 - 0
msg_definitions/VKFly.xml

@@ -1335,6 +1335,18 @@
       <field type="uint8_t" name="fuel_low2">0:normal, 1:below ADC_EXT_FUEL_LOW2</field>
     </message>
     
+    <message id="53032" name="VK_OBSTACLE_DISTANCE">
+      <description>Two fragments form one 72-bin scan, clockwise from heading in 5 degree sectors. Incompatible with the former unfragmented layout. Each bin reports the nearest obstacle in its sector.</description>
+      <field type="uint64_t" name="source_sequence">Sequence number of the source data.</field>
+      <field type="float" name="source_age_ms" units="ms">Age of the source data.</field>
+      <field type="uint16_t[36]" name="distances" units="cm">Horizontal distances: 0 contact, up to max_distance_cm obstacle, max_distance_cm+1 clear to range, UINT16_MAX unknown.</field>
+      <field type="uint16_t" name="min_distance_cm" units="cm">Minimum measurable distance.</field>
+      <field type="uint16_t" name="max_distance_cm" units="cm">Maximum measurable distance.</field>
+      <field type="uint8_t" name="fragment_index">0: bins 0-35; 1: bins 36-71. Both fragments share a source_sequence.</field>
+      <field type="uint8_t" name="status">0: healthy; nonzero: invalid source.</field>
+      <field type="int16_t[36]" name="gravity_projected_body_z" units="cm">Vertical obstacle displacement, down positive; INT16_MAX unknown.</field>
+    </message>
+
     <message id="53100" name="VK_FW_UPDATE_BEGIN">
       <description>VKFLY autopilot update firmware begin. This message send from GCS to autopilot. </description>
       <field type="uint8_t" name="target_system">Target system id.</field>