VKFly.xml 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472
  1. <?xml version="1.0"?>
  2. <mavlink>
  3. <!-- VK-fly contact info: -->
  4. <!-- company URL: http://101.42.9.203/#/home -->
  5. <!-- email contact: liuyangzys@outlook.com -->
  6. <!-- mavlink ID range: 53000 - 54000 -->
  7. <!-- command ID range: 44000 - 44999 -->
  8. <include>common.xml</include>
  9. <dialect>0</dialect>
  10. <enums>
  11. <enum name="VKFLY_AP_TYPE">
  12. <description>Drone airframe</description>
  13. <entry value="41" name="VKFLY_AP_TYPE_I4">
  14. <description>Quadrotor I4</description>
  15. </entry>
  16. <entry value="42" name="VKFLY_AP_TYPE_X4">
  17. <description>Quadrotor X4</description>
  18. </entry>
  19. <entry value="61" name="VKFLY_AP_TYPE_I6">
  20. <description>Hexarotor I6</description>
  21. </entry>
  22. <entry value="62" name="VKFLY_AP_TYPE_X6">
  23. <description>Hexarotor X6</description>
  24. </entry>
  25. <entry value="63" name="VKFLY_AP_TYPE_YI6D">
  26. <description>Three axis hexarotor YI6D</description>
  27. </entry>
  28. <entry value="64" name="VKFLY_AP_TYPE_Y6D">
  29. <description>Three axis hexarotor Y6D</description>
  30. </entry>
  31. <entry value="65" name="VKFLY_AP_TYPE_H6">
  32. <description>Hexarotor H6</description>
  33. </entry>
  34. <entry value="81" name="VKFLY_AP_TYPE_I8">
  35. <description>Octorotor I8</description>
  36. </entry>
  37. <entry value="82" name="VKFLY_AP_TYPE_X8">
  38. <description>Octorotor X8</description>
  39. </entry>
  40. <entry value="83" name="VKFLY_AP_TYPE_4X8M">
  41. <description>Four axis octorotor, upper level X4, lower level reversed X4.</description>
  42. </entry>
  43. <entry value="84" name="VKFLY_AP_TYPE_4X8D">
  44. <description>Four axis octorotor, upper level clockwise, lower level anticlockwise</description>
  45. </entry>
  46. <entry value="85" name="VKFLY_AP_TYPE_4X8MR">
  47. <description>Four axis octorotor, all rotors are opposite of 4X8M.</description>
  48. </entry>
  49. <entry value="86" name="VKFLY_AP_TYPE_4X8DR">
  50. <description>Four axis octorotor, all rotors are opposite of 4X8M.</description>
  51. </entry>
  52. <entry value="121" name="VKFLY_AP_TYPE_6I12">
  53. <description>Six axis twelve rotor, upper level I6, lower lever opposite with I6.</description>
  54. </entry>
  55. <entry value="122" name="VKFLY_AP_TYPE_6X12">
  56. <description>Six axis twelve rotor, upper level X6, lower lever opposite with X6.</description>
  57. </entry>
  58. <entry value="161" name="VKFLY_AP_TYPE_8I16">
  59. <description>16 axis 8 rotor, upper level I8, lower lever opposite with I8</description>
  60. </entry>
  61. <entry value="162" name="VKFLY_AP_TYPE_8X16">
  62. <description>16 axis 8 rotor, upper level X8, lower lever opposite with X8</description>
  63. </entry>
  64. </enum>
  65. <enum name="VKFLY_FS_ACTION">
  66. <description>Failsafe action</description>
  67. <entry value="0" name="FAIL_SAFE_ACT_NONE">
  68. <description>Do nothing</description>
  69. </entry>
  70. <entry value="1" name="FAIL_SAFE_ACT_LOITER">
  71. <description>Hold position for rotor wing. Loiter for fixedwing.</description>
  72. </entry>
  73. <entry value="2" name="FAIL_SAFE_ACT_RTL">
  74. <description>Return to lauch.</description>
  75. </entry>
  76. <entry value="3" name="FAIL_SAFE_ACT_RTR">
  77. <description>Go to the nearest rally point.</description>
  78. </entry>
  79. <entry value="4" name="FAIL_SAFE_ACT_LAND">
  80. <description>Landing in place.</description>
  81. </entry>
  82. <entry value="5" name="FAIL_SAFE_ACT_LOCK">
  83. <description>Terminate servo output and disarm the drone.</description>
  84. </entry>
  85. </enum>
  86. <enum name="VKFLY_MAGCALIB_STAGE">
  87. <description>VKins magcalib stage</description>
  88. <entry value="0" name="VK_MAGCALIB_NONE">
  89. <description>Not in calibration.</description>
  90. </entry>
  91. <entry value="1" name="VK_MAGCALIB_XY">
  92. <description>Calibrating X-Y level.</description>
  93. </entry>
  94. <entry value="2" name="VK_MAGCALIB_XZ">
  95. <description>Calibrating X-Z level.</description>
  96. </entry>
  97. <entry value="3" name="VK_MAGCALIB_DONE">
  98. <description>Calibrating successfully done.</description>
  99. </entry>
  100. <entry value="4" name="VK_MAGCALIB_FAIL">
  101. <description>Calibrating failed.</description>
  102. </entry>
  103. </enum>
  104. <enum name="VKFLY_SYS_STATUS_SENSOR_EXTEND">
  105. <description>For SYS_STATUS sensor extend flag use.</description>
  106. <entry value="4" name="VKFLY_SYS_STATUS_SENSOR_GPS2">
  107. <description>GPS2</description>
  108. </entry>
  109. <entry value="8" name="VKFLY_SYS_STATUS_SENSOR_RTK_GPS">
  110. <description>RTK GPS</description>
  111. </entry>
  112. <entry value="16" name="VKFLY_SYS_STATUS_SDCARD">
  113. <description>Onboard SD card</description>
  114. </entry>
  115. </enum>
  116. <enum name="VKFLY_SYS_ERROR1">
  117. <description>bitmap for SYS_STATUS error1 </description>
  118. <entry value="1" name="VKFLY_SYS_ERROR1_GCS_LINK_LOST">
  119. <description>Gcs link lost.</description>
  120. </entry>
  121. <entry value="2" name="VKFLY_SYS_ERROR1_VOLTAGE_LOW">
  122. <description>Battery voltage low.</description>
  123. </entry>
  124. <entry value="4" name="VKFLY_SYS_ERROR1_MOTOR_BALANCE">
  125. <description>Servo output balance bad.</description>
  126. </entry>
  127. <entry value="8" name="VKFLY_SYS_ERROR1_MOTOR_FAIL">
  128. <description>Servo ouput fault.</description>
  129. </entry>
  130. <entry value="16" name="VKFLY_SYS_ERROR1_OVERHEAT">
  131. <description>Autopilot system temperature too high.</description>
  132. </entry>
  133. <entry value="32" name="VKFLY_SYS_ERROR1_INS_INVALID">
  134. <description>Autopilot system solved positioning not ready.</description>
  135. </entry>
  136. <entry value="64" name="VKFLY_SYS_ERROR1_OUT_FENCE">
  137. <description>Position out of fence range.</description>
  138. </entry>
  139. </enum>
  140. <enum name="VKFLY_SYS_ERROR2">
  141. <description>bitmap for SYS_STATUS error1 </description>
  142. <entry value="1" name="VKFLY_SYS_ERROR2_PREARM_CHECK_IMU">
  143. <description></description>
  144. </entry>
  145. <entry value="2" name="VKFLY_SYS_ERROR2_PREARM_CHECK_TILT">
  146. <description></description>
  147. </entry>
  148. <entry value="4" name="VKFLY_SYS_ERROR2_PREARM_CHECK_VELOCITY">
  149. <description></description>
  150. </entry>
  151. <entry value="8" name="VKFLY_SYS_ERROR2_PREARM_RC_BAD">
  152. <description></description>
  153. </entry>
  154. </enum>
  155. <enum name="VKFLY_SYS_ERROR3">
  156. <description>bitmap for SYS_STATUS error3 </description>
  157. <entry value="1" name="VKFLY_SYS_ERROR3_MAG0_DISTURB">
  158. <description></description>
  159. </entry>
  160. <entry value="2" name="VKFLY_SYS_ERROR3_MAG1_DISTURB">
  161. <description></description>
  162. </entry>
  163. <entry value="4" name="VKFLY_SYS_ERROR3_IMU0_ERROR">
  164. <description></description>
  165. </entry>
  166. <entry value="8" name="VKFLY_SYS_ERROR3_IMU1_ERROR">
  167. <description></description>
  168. </entry>
  169. <entry value="16" name="VKFLY_SYS_ERROR3_BARO0_ERROR">
  170. <description></description>
  171. </entry>
  172. <entry value="32" name="VKFLY_SYS_ERROR3_GPS0_ERROR">
  173. <description></description>
  174. </entry>
  175. <entry value="64" name="VKFLY_SYS_ERROR3_GPS1_ERROR">
  176. <description></description>
  177. </entry>
  178. <entry value="128" name="VKFLY_SYS_ERROR3_RTK_ERROR">
  179. <description></description>
  180. </entry>
  181. </enum>
  182. <enum name="VKFLY_CUSTOM_MODE">
  183. <description>custom mode in HEARTBEAT</description>
  184. <entry value="3" name="VKFLY_CUSTOM_MODE_ATTITUDE">
  185. <description>Attitude mode</description>
  186. </entry>
  187. <entry value="4" name="VKFLY_CUSTOM_MODE_POSHOLD">
  188. <description>Poshold mode</description>
  189. </entry>
  190. <entry value="10" name="VKFLY_CUSTOM_MODE_TAKEOFF">
  191. <description>Auto takeoff.</description>
  192. </entry>
  193. <entry value="11" name="VKFLY_CUSTOM_MODE_LOITER">
  194. <description>Auto loiter.</description>
  195. </entry>
  196. <entry value="12" name="VKFLY_CUSTOM_MODE_RTL">
  197. <description>Auto return.</description>
  198. </entry>
  199. <entry value="15" name="VKFLY_CUSTOM_MODE_CRUISE">
  200. <description>Auto cruise.</description>
  201. </entry>
  202. <entry value="18" name="VKFLY_CUSTOM_MODE_GUIDE">
  203. <description>Guide to point.</description>
  204. </entry>
  205. <entry value="19" name="VKFLY_CUSTOM_MODE_LAND">
  206. <description>Land.</description>
  207. </entry>
  208. <entry value="20" name="VKFLY_CUSTOM_MODE_FSLAND">
  209. <description>Force land.</description>
  210. </entry>
  211. <entry value="21" name="VKFLY_CUSTOM_MODE_FOLLOW">
  212. <description>Follow.</description>
  213. </entry>
  214. <entry value="23" name="VKFLY_CUSTOM_MODE_WP_ORBIT">
  215. <description>WP_Orbit</description>
  216. </entry>
  217. <entry value="24" name="VKFLY_CUSTOM_MODE_DYN_TAKEOFF">
  218. <description>Dyn_Takeoff </description>
  219. </entry>
  220. <entry value="25" name="VKFLY_CUSTOM_MODE_DYN_LAND">
  221. <description>Dyn_Land</description>
  222. </entry>
  223. <entry value="26" name="VKFLY_CUSTOM_MODE_OBAVOID">
  224. <description>Obavoid </description>
  225. </entry>
  226. <entry value="27" name="VKFLY_CUSTOM_MODE_OFFBOARD">
  227. <description>Offboard command control.</description>
  228. </entry>
  229. </enum>
  230. <enum name="VKFLY_VKINS_NAV_STATUS">
  231. <description>bitmap for VKins navigtion status </description>
  232. <entry value="0x01" name="VKFLY_VKINS_NAV_INSGPS">
  233. <description>INS status. 0 means no INS. 1 means INS ok.</description>
  234. </entry>
  235. <entry value="0x02" name="VKFLY_VKINS_NAV_ALT_GPS">
  236. <description>GPS altitude in data fusion. 0 gps altitude not used. 1 gps altitude used.</description>
  237. </entry>
  238. <entry value="0x04" name="VKFLY_VKINS_NAV_HEADING_RTK">
  239. <description>RTK heading data. 0 use mag, 1 use rtk dual ant heading.</description>
  240. </entry>
  241. <entry value="0x10" name="VKFLY_VKINS_NAV_RTK">
  242. <description>RTK pos data. 0 no RTK, 1 RTK. </description>
  243. </entry>
  244. </enum>
  245. <enum name="VKFLY_YAW_CTRL_MODE">
  246. <description>Yaw control mode</description>
  247. <entry value="0" name="VKFLY_YAW_KEEP_CURRENT">
  248. <description>Yaw do not change. Keep current yaw.</description>
  249. </entry>
  250. <entry value="1" name="VKFLY_YAW_TO_NEXT_WP">
  251. <description>Yaw towards next waypoint or circle center.</description>
  252. </entry>
  253. <entry value="2" name="VKFLY_YAW_TO_TRACE_COURSE">
  254. <description>Yaw towards moving course heading.</description>
  255. </entry>
  256. <entry value="3" name="VKFLY_YAW_TO_SET_VALUE">
  257. <description>Yaw towards spacific value.</description>
  258. </entry>
  259. <entry value="4" name="VKFLY_YAW_TO_HOME">
  260. <description>Yaw towards home point.</description>
  261. </entry>
  262. <entry value="5" name="VKFLY_YAW_TO_INTEREST">
  263. <description>Yaw towards interest point.</description>
  264. </entry>
  265. <entry value="6" name="VKFLY_YAW_TO_OTHER_MAV_SYS">
  266. <description>Yaw towards interest point.</description>
  267. </entry>
  268. </enum>
  269. <enum name="VKFLY_PHOTO_CTRL_MODE">
  270. <description>Digicam auto take photo mode.</description>
  271. <entry value="0" name="VKFLY_AUTO_PHO_KEEP_CURRENT">
  272. <description>Do not take photo automatically.</description>
  273. </entry>
  274. <entry value="1" name="VKFLY_AUTO_PHO_STOP">
  275. <description>Do not take photo automatically.</description>
  276. </entry>
  277. <entry value="2" name="VKFLY_AUTO_PHO_AUTO_BY_TIME">
  278. <description>Automatically take photo by tiem.</description>
  279. </entry>
  280. <entry value="3" name="VKFLY_AUTO_PHO_BY_DIST_XY">
  281. <description>Automatically take photo by distance.</description>
  282. </entry>
  283. <entry value="4" name="VKFLY_AUTO_PHO_BY_DIST_Z">
  284. <description>Automatically take photo by input trigger signal or command.</description>
  285. </entry>
  286. <entry value="5" name="VKFLY_AUTO_PHO_BY_DIST_XYZ">
  287. <description>Automatically take photo by input trigger signal or command.</description>
  288. </entry>
  289. </enum>
  290. <enum name="VKFLY_DIGICAM_WP_ACT">
  291. <description>Digicam action trigger on waypoint arrive.</description>
  292. <entry value="0" name="VKFLY_DIGICAM_WP_ACT_NONE">
  293. <description>Do nothing.</description>
  294. </entry>
  295. <entry value="1" name="VKFLY_DIGICAM_WP_ACT_PHO">
  296. <description>Do take photo.</description>
  297. </entry>
  298. <entry value="2" name="VKFLY_DIGICAM_WP_ACT_VEDIO_ON">
  299. <description>Do vedio recording on.</description>
  300. </entry>
  301. <entry value="3" name="VKFLY_DIGICAM_WP_ACT_VEDIO_OFF">
  302. <description>Do vedio recording off.</description>
  303. </entry>
  304. </enum>
  305. <enum name="VKFLY_GIMBAL_WP_ACT">
  306. <description>Gimbal action trigger on waypoint arrive.</description>
  307. <entry value="0" name="VKFLY_GIMBAL_WP_ACT_NONE">
  308. <description>Do nothing.</description>
  309. </entry>
  310. <entry value="1" name="VKFLY_GIMBAL_WP_ACT_SET_ANG">
  311. <description>Do set gimbal pitch and yaw angle value.</description>
  312. </entry>
  313. <entry value="2" name="VKFLY_GIMBAL_WP_ACT_SET_PITCH_YAW_FOLLOW">
  314. <description>Do set gimbla pitch value, yaw follow drone head.</description>
  315. </entry>
  316. </enum>
  317. <enum name="VKFLY_THROW_CHAN_TYPE">
  318. <description>bitmap of throwing channel</description>
  319. <entry value="1" name="VKFLY_THROW_CHAN_1">
  320. <description>throwing channel1</description>
  321. </entry>
  322. <entry value="2" name="VKFLY_THROW_CHAN_2">
  323. <description>throwing channel2</description>
  324. </entry>
  325. <entry value="4" name="VKFLY_THROW_CHAN_3">
  326. <description>throwing channel3</description>
  327. </entry>
  328. <entry value="8" name="VKFLY_THROW_CHAN_4">
  329. <description>throwing channel4</description>
  330. </entry>
  331. <entry value="16" name="VKFLY_THROW_CHAN_5">
  332. <description>throwing channel5</description>
  333. </entry>
  334. <entry value="32" name="VKFLY_THROW_CHAN_6">
  335. <description>throwing channel6</description>
  336. </entry>
  337. <entry value="64" name="VKFLY_THROW_CHAN_7">
  338. <description>throwing channel7</description>
  339. </entry>
  340. <entry value="128" name="VKFLY_THROW_CHAN_8">
  341. <description>throwing channel8</description>
  342. </entry>
  343. <entry value="256" name="VKFLY_THROW_CHAN_9">
  344. <description>throwing channel9</description>
  345. </entry>
  346. <entry value="512" name="VKFLY_THROW_CHAN_10">
  347. <description>throwing channel10</description>
  348. </entry>
  349. <entry value="1024" name="VKFLY_THROW_CHAN_11">
  350. <description>throwing channel11</description>
  351. </entry>
  352. <entry value="2048" name="VKFLY_THROW_CHAN_12">
  353. <description>throwing channel12</description>
  354. </entry>
  355. <entry value="4096" name="VKFLY_THROW_CHAN_13">
  356. <description>throwing channel12</description>
  357. </entry>
  358. <entry value="8192" name="VKFLY_THROW_CHAN_14">
  359. <description>throwing channel12</description>
  360. </entry>
  361. <entry value="16384" name="VKFLY_THROW_CHAN_15">
  362. <description>throwing channel12</description>
  363. </entry>
  364. <entry value="32768" name="VKFLY_THROW_CHAN_16">
  365. <description>throwing channel12</description>
  366. </entry>
  367. <entry value="65535" name="VKFLY_THROW_CHAN_ALL">
  368. <description>throwing channel12</description>
  369. </entry>
  370. </enum>
  371. <enum name="VKFLY_CMD">
  372. <description> VKFLY custom CMD </description>
  373. <entry value="44010" name="VKFLY_CMD_NAV_WP" hasLocation="true" isDestination="true">
  374. <description>VKFLY custom takephoto waypoint commond.</description>
  375. <param index="1" label="Hold Time And Speed"> </param>
  376. <param index="2" label="Photo Ctl"> </param>
  377. <param index="3" label="Gimbal Ctl"> </param>
  378. <param index="4" label="Yaw Mode">Yaw control mode</param>
  379. <param index="5" label="Latitude">Latitude</param>
  380. <param index="6" label="Longitude">Longitude</param>
  381. <param index="7" label="Altitude" units="m">Altitude</param>
  382. </entry>
  383. <entry value="44011" name="VKFLY_CMD_NAV_WP_THROW" hasLocation="true" isDestination="true">
  384. <description>VKFLY custom throwing waypoint command. </description>
  385. <param index="1" label="Hold Time And Speed"> </param>
  386. <param index="2" label="Throw ParamA"></param>
  387. <param index="3" label="Throw ParamB">Reserved.</param>
  388. <param index="4" label="Yaw Mode">Yaw control mode.</param>
  389. <param index="5" label="Latitude">Latitude</param>
  390. <param index="6" label="Longitude">Longitude</param>
  391. <param index="7" label="Altitude" units="m">Altitude</param>
  392. </entry>
  393. <entry value="44012" name="VKFLY_CMD_NAV_WP_ORBIT_DO_PHOTO" hasLocation="true"
  394. isDestination="true">
  395. <description>VLFLY Custom orbit waypoint </description>
  396. <param index="1" label="Radius And Speed"> </param>
  397. <param index="2" label="Photo Ctl"> </param>
  398. <param index="3" label="Times And Orbit Speed"> </param>
  399. <param index="4" label="Yaw Mode"> </param>
  400. <param index="5" label="Latitude">Latitude</param>
  401. <param index="6" label="Longitude">Longitude</param>
  402. <param index="7" label="Altitude" units="m">Altitude</param>
  403. </entry>
  404. <entry value="44030" name="VKFLY_CMD_MOUNT_CTRL" hasLocation="true"
  405. isDestination="true">
  406. <description>VLFLY Custom orbit waypoint </description>
  407. <param index="1" label=""> </param>
  408. <param index="2" label="CTRL "> </param>
  409. <param index="3" label="Times And Orbit Speed"> </param>
  410. <param index="4" label="Yaw Mode"> </param>
  411. <param index="5" label="Latitude">Latitude</param>
  412. <param index="6" label="Longitude">Longitude</param>
  413. <param index="7" label="Altitude" units="m">Altitude</param>
  414. </entry>
  415. </enum>
  416. </enums>
  417. <messages>
  418. <message id="53000" name="VKINS_STATUS">
  419. <description> </description>
  420. <field type="uint32_t" name="time_boot_ms" units="ms">Timestamp in ms from system boot.</field>
  421. <field type="uint8_t" name="nav_status" enum="VKFLY_VKINS_NAV_STATUS" display="bitmask"
  422. print_format="0x%02x">VKINS
  423. navigation status flag.</field>
  424. <field type="uint8_t" name="s_flag1">vinks flag1</field>
  425. <field type="uint8_t" name="s_flag2">vinks flag2.</field>
  426. <field type="uint8_t" name="s_flag3">vinks flag3.</field>
  427. <field type="uint8_t" name="s_flag4">vinks flag4.</field>
  428. <field type="uint8_t" name="s_flag5">vinks flag5.</field>
  429. <field type="uint8_t" name="s_flag6">vinks flag6.</field>
  430. <field type="uint8_t" name="mag_calib_stage" enum="VKFLY_MAGCALIB_STAGE">vkins mag calib
  431. stage.</field>
  432. <field type="float" name="g0" units="m/s/s">vkins initial calibrated gravitation acceleration.</field>
  433. <field type="int32_t" name="raw_latitude" units="degE7">raw longitude for data fusion</field>
  434. <field type="int32_t" name="raw_longitude" units="degE7">raw latitidue for data fusion</field>
  435. <field type="float" name="baro_alt" units="m">raw baromoter altitude for data fusion</field>
  436. <field type="float" name="raw_gps_alt" units="m">gps amsl altitude for data fusion</field>
  437. <field type="uint8_t" name="solv_psat_num">satelites number for position</field>
  438. <field type="uint8_t" name="solv_hsat_num">satelites number for heading</field>
  439. <field type="int16_t" name="temperature" units="cdegC">temperature</field>
  440. <field type="uint8_t" name="vibe_coe"></field>
  441. </message>
  442. <message id="53001" name="VKFMU_STATUS">
  443. <description> </description>
  444. <field type="uint32_t" name="time_boot_ms" units="ms">Timestamp in ms from system boot.</field>
  445. <field type="uint8_t" name="s_flag1">fmu sflag1</field>
  446. <field type="uint8_t" name="s_flag2">fmu sflag2</field>
  447. <field type="uint8_t" name="s_flag3">fmu sflag3</field>
  448. <field type="uint8_t" name="s_flag4">fmu sflag4</field>
  449. </message>
  450. </messages>
  451. </mavlink>