VKFly.xml 40 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823
  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_USER_COMP_ID">
  66. <description>user define compnent id, 0-all 1-autopilot</description>
  67. <entry value="3" name="VKFLY_COMP_ID_VKGPSA"></entry>
  68. <entry value="4" name="VKFLY_COMP_ID_VKGPSB"></entry>
  69. <entry value="5" name="VKFLY_COMP_ID_RFD_F"></entry>
  70. <entry value="6" name="VKFLY_COMP_ID_RFD_R"></entry>
  71. <entry value="7" name="VKFLY_COMP_ID_RFD_D"></entry>
  72. <entry value="8" name="VKFLY_COMP_ID_RFD_360"></entry>
  73. <entry value="9" name="VKFLY_COMP_ID_RTK"></entry>
  74. <entry value="10" name="VKFLY_COMP_ID_BAT0"></entry>
  75. <entry value="11" name="VKFLY_COMP_ID_BAT1"></entry>
  76. <entry value="12" name="VKFLY_COMP_ID_BAT2"></entry>
  77. <entry value="13" name="VKFLY_COMP_ID_BAT3"></entry>
  78. <entry value="14" name="VKFLY_COMP_ID_BAT4"></entry>
  79. <entry value="15" name="VKFLY_COMP_ID_BAT5"></entry>
  80. <entry value="16" name="VKFLY_COMP_ID_ECU0"></entry>
  81. <entry value="17" name="VKFLY_COMP_ID_ECU1"></entry>
  82. <entry value="18" name="VKFLY_COMP_ID_ECU2"></entry>
  83. <entry value="19" name="VKFLY_COMP_ID_ECU3"></entry>
  84. </enum>
  85. <enum name="VKFLY_FS_ACTION">
  86. <description>Failsafe action</description>
  87. <entry value="0" name="FAIL_SAFE_ACT_NONE">
  88. <description>Do nothing</description>
  89. </entry>
  90. <entry value="1" name="FAIL_SAFE_ACT_LOITER">
  91. <description>Hold position for rotor wing. Loiter for fixedwing.</description>
  92. </entry>
  93. <entry value="2" name="FAIL_SAFE_ACT_RTL">
  94. <description>Return to lauch.</description>
  95. </entry>
  96. <entry value="3" name="FAIL_SAFE_ACT_RTR">
  97. <description>Go to the nearest rally point.</description>
  98. </entry>
  99. <entry value="4" name="FAIL_SAFE_ACT_LAND">
  100. <description>Landing in place.</description>
  101. </entry>
  102. <entry value="5" name="FAIL_SAFE_ACT_LOCK">
  103. <description>Terminate servo output and disarm the drone.</description>
  104. </entry>
  105. </enum>
  106. <enum name="VKFLY_ROI_STATE" bitmask="true">
  107. <description>Bitmap for ROI state</description>
  108. <entry value="1" name="VKFLY_ROI_GIMBAL">
  109. <description>Do nothing</description>
  110. </entry>
  111. <entry value="2" name="VKFLY_ROI_DRONE_HEAD">
  112. <description>Do nothing</description>
  113. </entry>
  114. </enum>
  115. <enum name="VKFLY_ARM_DENIED_REASON">
  116. <description>Arm denied reason for VKFLY</description>
  117. <entry value="0" name="VKFLY_ARM_DENIED_REASON_NONE"></entry>
  118. <entry value="1" name="VKFLY_ARM_DENIED_NO_INS"> </entry>
  119. <entry value="2" name="VKFLY_ARM_DENIED_SPD_OVER_LIM"></entry>
  120. <entry value="3" name="VKFLY_ARM_DENIED_ACC_OVER_LIM"></entry>
  121. <entry value="4" name="VKFLY_ARM_DENIED_GYR_OVER_LIM"></entry>
  122. <entry value="5" name="VKFLY_ARM_DENIED_GPS_ERR"></entry>
  123. <entry value="6" name="VKFLY_ARM_DENIED_IMU_ERR"></entry>
  124. <entry value="7" name="VKFLY_ARM_DENIED_POS_NOT_FIXED"></entry>
  125. <entry value="8" name="VKFLY_ARM_DENIED_RTK_NOT_FIXED"></entry>
  126. <entry value="9" name="VKFLY_ARM_DENIED_MAG_ERR"></entry>
  127. <entry value="10" name="VKFLY_ARM_DENIED_RESERVE"></entry>
  128. <entry value="11" name="VKFLY_ARM_DENIED_TEMP_OVER_LIM"></entry>
  129. <entry value="13" name="VKFLY_ARM_DENIED_OUT_FENCE"></entry>
  130. <entry value="14" name="VKFLY_ARM_DENIED_LOW_BAT_VOLT"></entry>
  131. <entry value="15" name="VKFLY_ARM_DENIED_LOW_BAT_CAP"></entry>
  132. <entry value="16" name="VKFLY_ARM_DENIED_BAT_BMS_FAULT"></entry>
  133. <entry value="17" name="VKFLY_ARM_DENIED_SERVO_FAULT"></entry>
  134. <entry value="18" name="VKFLY_ARM_DENIED_LEAN_ANG"></entry>
  135. <entry value="19" name="VKFLY_ARM_DENIED_IN_CALIBRATION"></entry>
  136. <entry value="20" name="VKFLY_ARM_DENIED_HYDRO_BMS_CHECK_ERR"></entry>
  137. </enum>
  138. <enum name="VKFLY_MAGCALIB_STAGE">
  139. <description>VKins magcalib stage</description>
  140. <entry value="0" name="VK_MAGCALIB_NONE">
  141. <description>Not in calibration.</description>
  142. </entry>
  143. <entry value="1" name="VK_MAGCALIB_XY">
  144. <description>Calibrating X-Y level.</description>
  145. </entry>
  146. <entry value="2" name="VK_MAGCALIB_XZ">
  147. <description>Calibrating X-Z level.</description>
  148. </entry>
  149. <entry value="3" name="VK_MAGCALIB_DONE">
  150. <description>Calibrating successfully done.</description>
  151. </entry>
  152. <entry value="4" name="VK_MAGCALIB_FAIL">
  153. <description>Calibrating failed.</description>
  154. </entry>
  155. </enum>
  156. <enum name="VKFLY_SYS_STATUS_SENSOR_EXTEND" bitmask="true">
  157. <description>For SYS_STATUS sensor extend flag use.</description>
  158. <entry value="4" name="VKFLY_SYS_STATUS_SENSOR_GPS2">
  159. <description>GPS2</description>
  160. </entry>
  161. <entry value="8" name="VKFLY_SYS_STATUS_SENSOR_RTK_GPS">
  162. <description>RTK GPS</description>
  163. </entry>
  164. <entry value="16" name="VKFLY_SYS_STATUS_SDCARD">
  165. <description>Onboard SD card</description>
  166. </entry>
  167. </enum>
  168. <enum name="VKFLY_SYS_ERROR1" bitmask="true">
  169. <description>bitmap for SYS_STATUS error1 </description>
  170. <entry value="1" name="VKFLY_SYS_ERROR1_GCS_LINK_LOST">
  171. <description>Gcs link lost.</description>
  172. </entry>
  173. <entry value="2" name="VKFLY_SYS_ERROR1_VOLTAGE_LOW">
  174. <description>Battery voltage low.</description>
  175. </entry>
  176. <entry value="4" name="VKFLY_SYS_ERROR1_MOTOR_BALANCE">
  177. <description>Servo output balance bad.</description>
  178. </entry>
  179. <entry value="8" name="VKFLY_SYS_ERROR1_MOTOR_FAIL">
  180. <description>Servo ouput fault.</description>
  181. </entry>
  182. <entry value="16" name="VKFLY_SYS_ERROR1_OVERHEAT">
  183. <description>Autopilot system temperature too high.</description>
  184. </entry>
  185. <entry value="32" name="VKFLY_SYS_ERROR1_INS_INVALID">
  186. <description>Autopilot system solved positioning not ready.</description>
  187. </entry>
  188. <entry value="64" name="VKFLY_SYS_ERROR1_OUT_FENCE">
  189. <description>Position out of fence range.</description>
  190. </entry>
  191. <entry value="128" name="VKFLY_SYS_ERROR1_OBV_LINK_LOST">
  192. <description>Obv mavlink com link lost.</description>
  193. </entry>
  194. <entry value="256" name="VKFLY_SYS_ERROR1_BATBMS_LINK_LOST">
  195. <description>Battery bms link lost.</description>
  196. </entry>
  197. </enum>
  198. <enum name="VKFLY_SYS_ERROR3" bitmask="true">
  199. <description>bitmap for SYS_STATUS error3 </description>
  200. <entry value="1" name="VKFLY_SYS_ERROR3_MAG0_DISTURB">
  201. <description></description>
  202. </entry>
  203. <entry value="2" name="VKFLY_SYS_ERROR3_MAG1_DISTURB">
  204. <description></description>
  205. </entry>
  206. <entry value="4" name="VKFLY_SYS_ERROR3_IMU0_ERROR">
  207. <description></description>
  208. </entry>
  209. <entry value="8" name="VKFLY_SYS_ERROR3_IMU1_ERROR">
  210. <description></description>
  211. </entry>
  212. <entry value="16" name="VKFLY_SYS_ERROR3_BARO0_ERROR">
  213. <description></description>
  214. </entry>
  215. <entry value="32" name="VKFLY_SYS_ERROR3_GPS0_ERROR">
  216. <description></description>
  217. </entry>
  218. <entry value="64" name="VKFLY_SYS_ERROR3_GPS1_ERROR">
  219. <description></description>
  220. </entry>
  221. <entry value="128" name="VKFLY_SYS_ERROR3_RTK_ERROR">
  222. <description></description>
  223. </entry>
  224. </enum>
  225. <enum name="VKFLY_CUSTOM_MODE">
  226. <description>custom mode in HEARTBEAT</description>
  227. <entry value="3" name="VKFLY_CUSTOM_MODE_ATTITUDE">
  228. <description>Attitude mode</description>
  229. </entry>
  230. <entry value="4" name="VKFLY_CUSTOM_MODE_POSHOLD">
  231. <description>Poshold mode</description>
  232. </entry>
  233. <entry value="10" name="VKFLY_CUSTOM_MODE_TAKEOFF">
  234. <description>Auto takeoff.</description>
  235. </entry>
  236. <entry value="11" name="VKFLY_CUSTOM_MODE_LOITER">
  237. <description>Auto loiter.</description>
  238. </entry>
  239. <entry value="12" name="VKFLY_CUSTOM_MODE_RTL">
  240. <description>Auto return.</description>
  241. </entry>
  242. <entry value="13" name="VKFLY_CUSTOM_MODE_FLY_TO_WP">
  243. <description>Auto fly to wp.</description>
  244. </entry>
  245. <entry value="15" name="VKFLY_CUSTOM_MODE_CRUISE">
  246. <description>Auto cruise.</description>
  247. </entry>
  248. <entry value="18" name="VKFLY_CUSTOM_MODE_GUIDE">
  249. <description>Guide to point.</description>
  250. </entry>
  251. <entry value="19" name="VKFLY_CUSTOM_MODE_LAND">
  252. <description>Land.</description>
  253. </entry>
  254. <entry value="20" name="VKFLY_CUSTOM_MODE_FSLAND">
  255. <description>Force land.</description>
  256. </entry>
  257. <entry value="21" name="VKFLY_CUSTOM_MODE_FOLLOW">
  258. <description>Follow.</description>
  259. </entry>
  260. <entry value="23" name="VKFLY_CUSTOM_MODE_WP_ORBIT">
  261. <description>Waypoint orbit</description>
  262. </entry>
  263. <entry value="24" name="VKFLY_CUSTOM_MODE_DYN_TAKEOFF">
  264. <description>Dynamic takeoff</description>
  265. </entry>
  266. <entry value="25" name="VKFLY_CUSTOM_MODE_DYN_LAND">
  267. <description>Dyn_Land</description>
  268. </entry>
  269. <entry value="26" name="VKFLY_CUSTOM_MODE_OBAVOID">
  270. <description>Obavoid </description>
  271. </entry>
  272. <entry value="27" name="VKFLY_CUSTOM_MODE_OFFBOARD">
  273. <description>Offboard command control.</description>
  274. </entry>
  275. <entry value="28" name="VKFLY_CUSTOM_MODE_FORMATION">
  276. <description>Formation fly mode</description>
  277. </entry>
  278. </enum>
  279. <enum name="VKFLY_VKINS_NAV_STATUS" bitmask="true">
  280. <description>bitmap for VKins navigtion status </description>
  281. <entry value="0x01" name="VKFLY_VKINS_NAV_INSGPS">
  282. <description>INS status. 0 means no INS. 1 means INS ok.</description>
  283. </entry>
  284. <entry value="0x02" name="VKFLY_VKINS_NAV_ALT_GPS">
  285. <description>GPS altitude in data fusion. 0 gps altitude not used. 1 gps altitude used.</description>
  286. </entry>
  287. <entry value="0x04" name="VKFLY_VKINS_NAV_HEADING_RTK">
  288. <description>RTK heading data. 0 use mag, 1 use rtk dual ant heading.</description>
  289. </entry>
  290. <entry value="0x10" name="VKFLY_VKINS_NAV_RTK">
  291. <description>RTK pos data. 0 no RTK, 1 RTK. </description>
  292. </entry>
  293. </enum>
  294. <enum name="VKFLY_YAW_CTRL_MODE">
  295. <description>Yaw control mode</description>
  296. <entry value="0" name="VKFLY_YAW_KEEP_CURRENT">
  297. <description>Yaw do not change. Keep current yaw.</description>
  298. </entry>
  299. <entry value="1" name="VKFLY_YAW_TO_NEXT_WP">
  300. <description>Yaw towards next waypoint or circle center.</description>
  301. </entry>
  302. <entry value="2" name="VKFLY_YAW_TO_TRACE_COURSE">
  303. <description>Yaw towards moving course heading.</description>
  304. </entry>
  305. <entry value="3" name="VKFLY_YAW_TO_SET_VALUE">
  306. <description>Yaw towards spacific value.</description>
  307. </entry>
  308. <entry value="4" name="VKFLY_YAW_TO_HOME">
  309. <description>Yaw towards home point.</description>
  310. </entry>
  311. <entry value="5" name="VKFLY_YAW_TO_INTEREST">
  312. <description>Yaw towards interest point.</description>
  313. </entry>
  314. <entry value="6" name="VKFLY_YAW_TO_OTHER_MAV_SYS">
  315. <description>Yaw towards interest point.</description>
  316. </entry>
  317. </enum>
  318. <enum name="VKFLY_PHOTO_CTRL_MODE">
  319. <description>Digicam auto take photo mode.</description>
  320. <entry value="0" name="VKFLY_AUTO_PHO_KEEP_CURRENT">
  321. <description>Do not take photo automatically.</description>
  322. </entry>
  323. <entry value="1" name="VKFLY_AUTO_PHO_STOP">
  324. <description>Do not take photo automatically.</description>
  325. </entry>
  326. <entry value="2" name="VKFLY_AUTO_PHO_AUTO_BY_TIME">
  327. <description>Automatically take photo by tiem.</description>
  328. </entry>
  329. <entry value="3" name="VKFLY_AUTO_PHO_BY_DIST_XY">
  330. <description>Automatically take photo by distance.</description>
  331. </entry>
  332. <entry value="4" name="VKFLY_AUTO_PHO_BY_DIST_Z">
  333. <description>Automatically take photo by input trigger signal or command.</description>
  334. </entry>
  335. <entry value="5" name="VKFLY_AUTO_PHO_BY_DIST_XYZ">
  336. <description>Automatically take photo by input trigger signal or command.</description>
  337. </entry>
  338. </enum>
  339. <enum name="VKFLY_RTL_REASON">
  340. <description>Digicam auto take photo mode.</description>
  341. <entry value="0" name="VKFLY_RTL_REASON_NONE">
  342. <description>Rtl mode not triggered.</description>
  343. </entry>
  344. <entry value="1" name="VKFLY_RTL_REASON_GCSCMD">
  345. <description>Trigger rtl mode by gcs command.</description>
  346. </entry>
  347. <entry value="2" name="VKFLY_RTL_REASON_RCCMD">
  348. <description>Trigger rtl mode by remote controller command.</description>
  349. </entry>
  350. <entry value="3" name="VKFLY_RTL_REASON_GCSLOST">
  351. <description>Trigger rtl mode by gcs link lost.</description>
  352. </entry>
  353. <entry value="4" name="VKFLY_RTL_REASON_RCFAIL">
  354. <description>Trigger rtl mode by remote controller signal fail.</description>
  355. </entry>
  356. <entry value="5" name="VKFLY_RTL_REASON_RCLOST">
  357. <description>Trigger rtl mode by remote controller signal lost.</description>
  358. </entry>
  359. <entry value="6" name="VKFLY_RTL_REASON_LOWVOLT">
  360. <description>Trigger rtl mode by battery volt low.</description>
  361. </entry>
  362. <entry value="7" name="VKFLY_RTL_REASON_OFFBOARD">
  363. <description>Trigger rtl mode by offboard command.</description>
  364. </entry>
  365. <entry value="8" name="VKFLY_RTL_REASON_ALTLIM">
  366. <description>Trigger rtl mode by altitude limit.</description>
  367. </entry>
  368. <entry value="9" name="VKFLY_RTL_REASON_OUT_FENCE">
  369. <description>Trigger rtl mode by out range of fence.</description>
  370. </entry>
  371. <entry value="10" name="VKFLY_RTL_REASON_BMS_LOWCAP">
  372. <description>Trigger rtl mode by battery manager system low capacity.</description>
  373. </entry>
  374. <entry value="11" name="VKFLY_RTL_REASON_BMS_LINKLOST">
  375. <description>Trigger rtl mode by battery manager link lost.</description>
  376. </entry>
  377. <entry value="12" name="VKFLY_RTL_REASON_SERVO_FAULT">
  378. <description>Trigger rtl mode by servo fault.</description>
  379. </entry>
  380. <entry value="13" name="VKFLY_RTL_REASON_WP_FINISH">
  381. <description>Trigger rtl mode by servo fault.</description>
  382. </entry>
  383. </enum>
  384. <enum name="VKFLY_LOITER_REASON">
  385. <entry value="1" name="VLFLY_LOITER_REASON_DEFAULT"></entry>
  386. <entry value="2" name="VLFLY_LOITER_REASON_GCS_CMD"></entry>
  387. <entry value="3" name="VLFLY_LOITER_REASON_MISSION_DONE"></entry>
  388. <entry value="5" name="VLFLY_LOITER_REASON_GPS_REABLE"></entry>
  389. <entry value="6" name="VLFLY_LOITER_REASON_RC_CMD"></entry>
  390. <entry value="7" name="VLFLY_LOITER_REASON_FOLLOW_FAIL"></entry>
  391. <entry value="9" name="VLFLY_LOITER_REASON_TAKEOFF_DONE"></entry>
  392. <entry value="10" name="VLFLY_LOITER_REASON_BAT_VOLT_LOW"></entry>
  393. <entry value="11" name="VLFLY_LOITER_REASON_RC_FAIL"></entry>
  394. <entry value="12" name="VLFLY_LOITER_REASON_RC_LOST"></entry>
  395. <entry value="13" name="VLFLY_LOITER_REASON_RC_BAD"></entry>
  396. <entry value="14" name="VLFLY_LOITER_REASON_BAT_CAP_LOW"></entry>
  397. <entry value="15" name="VLFLY_LOITER_REASON_OFFBOARD"></entry>
  398. <entry value="16" name="VLFLY_LOITER_REASON_QUIT_FORMATION"></entry>
  399. <entry value="21" name="VLFLY_LOITER_REASON_WPDATA_ERR"></entry>
  400. </enum>
  401. <enum name="VKFLY_DIGICAM_WP_ACT">
  402. <description>Digicam action trigger on waypoint arrive.</description>
  403. <entry value="0" name="VKFLY_DIGICAM_WP_ACT_NONE">
  404. <description>Do nothing.</description>
  405. </entry>
  406. <entry value="1" name="VKFLY_DIGICAM_WP_ACT_PHO">
  407. <description>Do take photo.</description>
  408. </entry>
  409. <entry value="2" name="VKFLY_DIGICAM_WP_ACT_VEDIO_ON">
  410. <description>Do vedio recording on.</description>
  411. </entry>
  412. <entry value="3" name="VKFLY_DIGICAM_WP_ACT_VEDIO_OFF">
  413. <description>Do vedio recording off.</description>
  414. </entry>
  415. </enum>
  416. <enum name="VKFLY_GIMBAL_WP_ACT">
  417. <description>Gimbal action trigger on waypoint arrive.</description>
  418. <entry value="0" name="VKFLY_GIMBAL_WP_ACT_NONE">
  419. <description>Do nothing.</description>
  420. </entry>
  421. <entry value="1" name="VKFLY_GIMBAL_WP_ACT_SET_ANG">
  422. <description>Do set gimbal pitch and yaw angle value.</description>
  423. </entry>
  424. <entry value="2" name="VKFLY_GIMBAL_WP_ACT_SET_PITCH_YAW_FOLLOW">
  425. <description>Do set gimbla pitch value, yaw follow drone head.</description>
  426. </entry>
  427. </enum>
  428. <enum name="VKFLY_THROW_CHAN_TYPE" bitmask="true">
  429. <description>bitmap of throwing channel</description>
  430. <entry value="1" name="VKFLY_THROW_CHAN_1">
  431. <description>throwing channel1</description>
  432. </entry>
  433. <entry value="2" name="VKFLY_THROW_CHAN_2">
  434. <description>throwing channel2</description>
  435. </entry>
  436. <entry value="4" name="VKFLY_THROW_CHAN_3">
  437. <description>throwing channel3</description>
  438. </entry>
  439. <entry value="8" name="VKFLY_THROW_CHAN_4">
  440. <description>throwing channel4</description>
  441. </entry>
  442. <entry value="16" name="VKFLY_THROW_CHAN_5">
  443. <description>throwing channel5</description>
  444. </entry>
  445. <entry value="32" name="VKFLY_THROW_CHAN_6">
  446. <description>throwing channel6</description>
  447. </entry>
  448. <entry value="64" name="VKFLY_THROW_CHAN_7">
  449. <description>throwing channel7</description>
  450. </entry>
  451. <entry value="128" name="VKFLY_THROW_CHAN_8">
  452. <description>throwing channel8</description>
  453. </entry>
  454. <entry value="256" name="VKFLY_THROW_CHAN_9">
  455. <description>throwing channel9</description>
  456. </entry>
  457. <entry value="512" name="VKFLY_THROW_CHAN_10">
  458. <description>throwing channel10</description>
  459. </entry>
  460. <entry value="1024" name="VKFLY_THROW_CHAN_11">
  461. <description>throwing channel11</description>
  462. </entry>
  463. <entry value="2048" name="VKFLY_THROW_CHAN_12">
  464. <description>throwing channel12</description>
  465. </entry>
  466. <entry value="4096" name="VKFLY_THROW_CHAN_13">
  467. <description>throwing channel12</description>
  468. </entry>
  469. <entry value="8192" name="VKFLY_THROW_CHAN_14">
  470. <description>throwing channel12</description>
  471. </entry>
  472. <entry value="16384" name="VKFLY_THROW_CHAN_15">
  473. <description>throwing channel12</description>
  474. </entry>
  475. <entry value="32768" name="VKFLY_THROW_CHAN_16">
  476. <description>throwing channel12</description>
  477. </entry>
  478. <entry value="65535" name="VKFLY_THROW_CHAN_ALL">
  479. <description>throwing channel12</description>
  480. </entry>
  481. </enum>
  482. <enum name="VKFLY_MISSION_EXEC_MODE">
  483. <entry value="0" name="VKFLY_MISSION_EXEC_MODE_NORMAL"></entry>
  484. <entry value="1" name="VKFLY_MISSION_EXEC_MODE_NO_ACT"></entry>
  485. <entry value="2" name="VKFLY_MISSION_EXEC_MODE_REVERSE"></entry>
  486. <entry value="3" name="VKFLY_MISSION_EXEC_MODE_REVERSE_NO_ACT"></entry>
  487. </enum>
  488. <enum name="VKFLY_MISSION_DONE_ACT">
  489. <entry value="0" name="VKFLY_MISSION_DONE_LOITER"></entry>
  490. <entry value="1" name="VKFLY_MISSION_DONE_RETURN_TO_LAUNCH"></entry>
  491. <entry value="2" name="VKFLY_MISSION_DONE_LAND"></entry>
  492. <entry value="3" name="VKFLY_MISSION_DONE_RETURN_TO_RALLY"></entry>
  493. <entry value="4" name="VKFLY_MISSION_DONE_RETURN_TO_LAUNCH_AB_WP"></entry>
  494. <entry value="5" name="VKFLY_MISSION_DONE_RETURN_TO_LAUNCH_BA_WP"></entry>
  495. <entry value="6" name="VKFLY_MISSION_DONE_THEN_REDO"></entry>
  496. </enum>
  497. <enum name="VKFLY_RTL_EXEC_MODE">
  498. <entry value="0" name="VKFLY_RTL_EXEC_MODE_NORMAL"></entry>
  499. <entry value="1" name="VKFLY_RTL_EXEC_MODE_BY_MISSION_SEQ"></entry>
  500. <entry value="2" name="VKFLY_RTL_EXEC_MODE_BY_MISSION_SEQ_REVERSE"></entry>
  501. </enum>
  502. <enum name="VKFLY_FORMATION_TYPE">
  503. <entry value="0" name="VKFLY_FORMATION_ROW"></entry>
  504. <entry value="1" name="VKFLY_FORMATION_COLUM"></entry>
  505. <entry value="2" name="VKFLY_FORMATION_TRIANGLE"></entry>
  506. <entry value="3" name="VKFLY_FORMATION_RECTANGLE"></entry>
  507. <entry value="4" name="VKFLY_FORMATION_CUSTOM"></entry>
  508. </enum>
  509. <enum name="VKFLY_CMD">
  510. <description> VKFLY custom CMD </description>
  511. <entry value="44010" name="VKFLY_CMD_NAV_WP" hasLocation="true" isDestination="true">
  512. <description>VKFLY custom takephoto waypoint commond.</description>
  513. <param index="1" label="Hold Time And Speed"> </param>
  514. <param index="2" label="Photo Ctl"> </param>
  515. <param index="3" label="Gimbal Ctl"> </param>
  516. <param index="4" label="Yaw Mode">Yaw control mode</param>
  517. <param index="5" label="Latitude">Latitude</param>
  518. <param index="6" label="Longitude">Longitude</param>
  519. <param index="7" label="Altitude" units="m">Altitude</param>
  520. </entry>
  521. <entry value="44011" name="VKFLY_CMD_NAV_WP_THROW" hasLocation="true" isDestination="true">
  522. <description>VKFLY custom throwing waypoint command. </description>
  523. <param index="1" label="Hold Time And Speed"> </param>
  524. <param index="2" label="Throw ParamA"></param>
  525. <param index="3" label="Throw ParamB">Reserved.</param>
  526. <param index="4" label="Yaw Mode">Yaw control mode.</param>
  527. <param index="5" label="Latitude">Latitude</param>
  528. <param index="6" label="Longitude">Longitude</param>
  529. <param index="7" label="Altitude" units="m">Altitude</param>
  530. </entry>
  531. <entry value="44012" name="VKFLY_CMD_NAV_WP_ORBIT_DO_PHOTO" hasLocation="true"
  532. isDestination="true">
  533. <description>VLFLY Custom orbit waypoint </description>
  534. <param index="1" label="Radius And Speed"> </param>
  535. <param index="2" label="Photo Ctl"> </param>
  536. <param index="3" label="Times And Orbit Speed"> </param>
  537. <param index="4" label="Yaw Mode"> </param>
  538. <param index="5" label="Latitude">Latitude</param>
  539. <param index="6" label="Longitude">Longitude</param>
  540. <param index="7" label="Altitude" units="m">Altitude</param>
  541. </entry>
  542. <entry value="44030" name="VKFLY_CMD_MOUNT_CTRL" hasLocation="true"
  543. isDestination="true">
  544. <description>VLFLY Custom orbit waypoint </description>
  545. <param index="1" label=""> </param>
  546. <param index="2" label="CTRL "> </param>
  547. <param index="3" label="Times And Orbit Speed"> </param>
  548. <param index="4" label="Yaw Mode"> </param>
  549. <param index="5" label="Latitude">Latitude</param>
  550. <param index="6" label="Longitude">Longitude</param>
  551. <param index="7" label="Altitude" units="m">Altitude</param>
  552. </entry>
  553. <entry value="44031" name="VKFLY_CMD_FORMATION_FLY">
  554. <description>Formation fly assemble, disband or change formation</description>
  555. <param index="1" label="action">1 means assemble, 2 means quit, 3 means change formation</param>
  556. <param index="2" label="form_type" enum="VKFLY_FORMATION_TYPE"></param>
  557. <param index="3" label="rect_col_num"></param>
  558. <param index="4" label=""></param>
  559. <param index="5" label="x_dist" units="m"></param>
  560. <param index="6" label="y_dist" units="m"></param>
  561. <param index="7" label="z_dist" units="m"></param>
  562. </entry>
  563. <entry value="44050" name="VKFLY_CMD_ESC_CONFIG" hasLocation="false"
  564. isDestination="false">
  565. <description>can esc id configuration</description>
  566. <param index="1" label="Set ID"> Set Esc id, min=1, max=16 </param>
  567. <param index="2" label=""> </param>
  568. <param index="3" label=""> </param>
  569. <param index="4" label=""> </param>
  570. <param index="5" label=""> </param>
  571. <param index="6" label=""> </param>
  572. <param index="7" label=""> </param>
  573. </entry>
  574. <entry value="44060" name="VKFLY_CMD_DO_REPOSITION_THAN_THROW" hasLocation="true"
  575. isDestination="true">
  576. <description>Do reposition and throwing</description>
  577. <param index="1" label="Throw servo id" minValue="0" maxValue="65535"> Throw servo id bitmap </param>
  578. <param index="2" label="Throw altitude"> </param>
  579. <param index="3" label="Speed"> </param>
  580. <param index="4" label="Yaw"> </param>
  581. <param index="5" label="Latitude"> </param>
  582. <param index="6" label="Longitude"> </param>
  583. <param index="7" label="Altitude" units="m"> </param>
  584. </entry>
  585. <entry value="44061" name="VKFLY_CMD_DO_REPOSITION_THAN_LAND" hasLocation="true"
  586. isDestination="true">
  587. <description>Do reposition and throwing</description>
  588. <param index="1" label="Groud Msl" units="m"> Ground msl altitude</param>
  589. <param index="2" label=""> </param>
  590. <param index="3" label="Speed"> </param>
  591. <param index="4" label="Yaw" units="deg" minValue="0" maxValue="359.99"> </param>
  592. <param index="5" label="Latitude"> </param>
  593. <param index="6" label="Longitude"> </param>
  594. <param index="7" label="Altitude" units="m"> </param>
  595. </entry>
  596. <entry value="44062" name="VKFLY_CMD_MISSION_START" hasLocation="false"
  597. isDestination="false">
  598. <description>Start mission</description>
  599. <param index="1" label="Start Seq" minValue="0" maxValue="65535">start sequence of mission</param>
  600. <param index="2" label="Mission Exec Mode" enum="VKFLY_MISSION_EXEC_MODE"> </param>
  601. <param index="3" label="Mission Done Action" enum="VKFLY_MISSION_DONE_ACT"> </param>
  602. <param index="4" label=""> </param>
  603. <param index="5" label=""> </param>
  604. <param index="6" label=""> </param>
  605. <param index="7" label=""> </param>
  606. </entry>
  607. <entry value="44063" name="VKFLY_CMD_RETURN_TO_LAUCH" hasLocation="false"
  608. isDestination="false">
  609. <description>Return to launch position than land</description>
  610. <param index="1" label="Start Seq" minValue="0" maxValue="65535">start sequence of mission</param>
  611. <param index="2" label="Rtl Exec Mode" enum="VKFLY_RTL_EXEC_MODE"> </param>
  612. <param index="3" label=""> </param>
  613. <param index="4" label=""> </param>
  614. <param index="5" label=""> </param>
  615. <param index="6" label=""> </param>
  616. <param index="7" label=""> </param>
  617. </entry>
  618. </enum>
  619. </enums>
  620. <messages>
  621. <message id="53000" name="VKINS_STATUS">
  622. <description> </description>
  623. <field type="uint32_t" name="time_boot_ms" units="ms">Timestamp in ms from system boot.</field>
  624. <field type="uint8_t" name="nav_status" enum="VKFLY_VKINS_NAV_STATUS" display="bitmask"
  625. print_format="0x%02x">VKINS
  626. navigation status flag.</field>
  627. <field type="uint8_t" name="s_flag1">vinks flag1</field>
  628. <field type="uint8_t" name="s_flag2">vinks flag2.</field>
  629. <field type="uint8_t" name="s_flag3">vinks flag3.</field>
  630. <field type="uint8_t" name="s_flag4">vinks flag4.</field>
  631. <field type="uint8_t" name="s_flag5">vinks flag5.</field>
  632. <field type="uint8_t" name="s_flag6">vinks flag6.</field>
  633. <field type="uint8_t" name="mag_calib_stage" enum="VKFLY_MAGCALIB_STAGE">vkins mag calib
  634. stage.</field>
  635. <field type="float" name="g0" units="m/s/s">vkins initial calibrated gravitation acceleration.</field>
  636. <field type="int32_t" name="raw_latitude" units="degE7">raw longitude for data fusion</field>
  637. <field type="int32_t" name="raw_longitude" units="degE7">raw latitidue for data fusion</field>
  638. <field type="float" name="baro_alt" units="m">raw baromoter altitude for data fusion</field>
  639. <field type="float" name="raw_gps_alt" units="m">gps amsl altitude for data fusion</field>
  640. <field type="uint8_t" name="solv_psat_num">satelites number for position</field>
  641. <field type="uint8_t" name="solv_hsat_num">satelites number for heading</field>
  642. <field type="int16_t" name="temperature" units="degC">temperature</field>
  643. <field type="uint8_t" name="vibe_coe"></field>
  644. </message>
  645. <message id="53001" name="VKFMU_STATUS">
  646. <description> </description>
  647. <field type="uint32_t" name="time_boot_ms" units="ms">Timestamp in ms from system boot.</field>
  648. <field type="uint8_t" name="rtl_reason" enum="VKFLY_RTL_REASON">return to launch reason.</field>
  649. <field type="uint8_t" name="loiter_reason" enum="VKFLY_LOITER_REASON">Loiter reason </field>
  650. <field type="uint8_t" name="s_flag3">fmu sflag3</field>
  651. <field type="uint16_t" name="ups_volt">ups voltage in 0.1V</field>
  652. <field type="uint16_t" name="adc_volt">adc voltage in 0.1V</field>
  653. <field type="uint32_t" name="flight_time" units="s">flight time in seconds</field>
  654. <field type="uint32_t" name="dist_to_tar" units="cm">distance to target position in cm</field>
  655. <field type="uint16_t" name="servo_state">bitmap for servo state</field>
  656. <field type="float" name="flight_dist" units="m">flight distance since this power up</field>
  657. </message>
  658. <message id="53002" name="VK_ROI_TARGET">
  659. <description> </description>
  660. <field type="uint32_t" name="time_boot_ms" units="ms">Timestamp in ms from system boot.</field>
  661. <field type="int32_t" name="lat" units="degE7">wgs48 latitude</field>
  662. <field type="int32_t" name="lon" units="degE7">wgs48 longitude</field>
  663. <field type="float" name="alt" units="m">altitude amsl, wgs48</field>
  664. <field type="uint16_t" name="state" enum="VKFLY_ROI_STATE">Bitmap to indicate ROI state </field>
  665. </message>
  666. <message id="53003" name="VK_BMS_STATUS">
  667. <description> battery bms status message </description>
  668. <field type="uint32_t" name="time_boot_ms" units="ms">Timestamp in ms from system boot.</field>
  669. <field type="uint32_t" name="voltage" units="mV">BMS voltage in mV</field>
  670. <field type="int16_t" name="current" units="cA">BMS current in cA, negative value means in
  671. charging</field>
  672. <field type="int16_t" name="temperature" units="degC">BMS temperature in degC</field>
  673. <field type="int8_t" name="cap_percent" units="%">BMS remaining power in percentage</field>
  674. <field type="uint8_t" name="bat_id" minValue="0" maxValue="1" increment="1">BMS id, start from
  675. 0</field>
  676. <field type="uint32_t" name="err_code" display="bitmask" print_format="0x%04x">BMS error code,
  677. 0 means no error</field>
  678. <field type="uint16_t" name="cell_num" minValue="0" maxValue="100">BMS cell numbers</field>
  679. <field type="uint16_t[30]" name="cell_volt" units="mV">BMS cell voltage in mV</field>
  680. <field type="uint16_t" name="cyc_cnt" minValue="0" increment="1"> charge and discharge times </field>
  681. <field type="uint8_t" name="health" minValue="0" maxValue="100">battery healthiness in
  682. percentage</field>
  683. </message>
  684. <message id="53004" name="VK_FORMATION_LEADER">
  685. <description> formation fly leader status message </description>
  686. <field type="uint32_t" name="timestamp" units="ms">Timestamp in ms from system boot.</field>
  687. <field type="uint32_t" name="state">formation leader drone state bitmap</field>
  688. <field type="int32_t" name="lat" units="degE7">formation leader latitude in 1e-7deg </field>
  689. <field type="int32_t" name="lon" units="degE7">formation leader longitude in 1e-7deg</field>
  690. <field type="float" name="msl" units="m">formation leader msl altitude in meter</field>
  691. <field type="float" name="ve" units="m/s">formation leader east speed</field>
  692. <field type="float" name="vn" units="m/s">formation leader north speed</field>
  693. <field type="float" name="vu" units="m/s">formation leader up speed</field>
  694. <field type="float" name="yaw" units="deg">formation leader yaw</field>
  695. <field type="uint8_t" name="formation_type" enum="VKFLY_FORMATION_TYPE">formation type</field>
  696. <field type="int16_t" name="x_dist" units="cm">distance between drones in x axis</field>
  697. <field type="int16_t" name="y_dist" units="cm">distance between drones in y axis</field>
  698. <field type="int16_t" name="z_dist" units="cm">distance between drones in z axis</field>
  699. <field type="uint16_t" name="rect_col_num">columns number of rectangle formation</field>
  700. </message>
  701. <message id="53005" name="VK_ENGINE_ECU_STAUS">
  702. <description> formation fly leader status message </description>
  703. <field type="uint32_t" name="timestamp" units="ms">Timestamp in ms from system boot.</field>
  704. <field type="uint16_t" name="spd_rpm">formation leader drone state bitmap</field>
  705. <field type="uint8_t" name="thr_pos" units="%" minValue="0" maxValue="100" increment="1">throttle
  706. position </field>
  707. <field type="uint8_t" name="fuel_pos" units="%" minValue="0" maxValue="100" increment="1">fuel
  708. position</field>
  709. <field type="int16_t" name="cylinderA_temp" units="degC">CylinderA head temperature</field>
  710. <field type="int16_t" name="cylinderB_temp" units="degC">CylinderB head temperature</field>
  711. <field type="int16_t" name="coolant_temp" units="degC">coolant head temperature</field>
  712. <field type="uint16_t" name="fuel_remain">engine index</field>
  713. <field type="uint16_t" name="alarm">range extender alarm bitmap</field>
  714. <field type="uint32_t" name="total_runtime" units="min">range extender output voltage</field>
  715. <field type="uint16_t" name="runtime" units="min">range extender output voltage</field>
  716. <field type="uint16_t" name="service_time" units="min">left time for service</field>
  717. <field type="uint16_t" name="output_volt" units="dV">range extender output voltage</field>
  718. <field type="uint16_t" name="output_curr" units="dA">range extender output current</field>
  719. <field type="uint8_t" name="fault">engine fault</field>
  720. <field type="uint8_t" name="engine_state">engine state</field>
  721. <field type="uint8_t" name="index" minValue="0" maxValue="128" increment="1">engine index</field>
  722. <field type="uint8_t[4]" name="reserve">engine state</field>
  723. </message>
  724. <message id="53006" name="VK_COMP_VERSION">
  725. <description>vkfly gps version</description>
  726. <field type="uint16_t" name="comp_id" enum="VKFLY_USER_COMP_ID">component id</field>
  727. <field type="uint8_t[16]" name="hw_ver">hardware version</field>
  728. <field type="uint8_t[16]" name="fw_ver">firmware version</field>
  729. <field type="uint8_t[16]" name="SN">SN number</field>
  730. <field type="uint8_t[16]" name="manufactory">manufactory</field>
  731. <field type="uint8_t[16]" name="model">model</field>
  732. <field type="uint8_t[16]" name="priv_data">gnss configuration</field>
  733. </message>
  734. <message id="53100" name="VK_FW_UPDATE_BEGIN">
  735. <description>VKFLY autopilot update firmware begin. This message send from GCS to autopilot. </description>
  736. <field type="uint8_t" name="target_system">Target system id.</field>
  737. <field type="uint8_t" name="target_comp">Target compid id.</field>
  738. <field type="uint32_t" name="file_size" units="bytes">Size of the firmware file in bytes.</field>
  739. </message>
  740. <message id="53101" name="VK_FW_UPDATE_ACK">
  741. <description>VKFLY udpate acknowledge.</description>
  742. <field type="uint8_t" name="result" enum="MAV_RESULT">Update begin ack.</field>
  743. </message>
  744. <message id="53102" name="VK_FW_UPDATE_DATA_REQUEST">
  745. <description>VKFLY autopilot request update file data from GCS. </description>
  746. <field type="uint32_t" name="offset">Offset into the update file.</field>
  747. <field type="uint32_t" name="count">Number of bytes.</field>
  748. </message>
  749. <message id="53103" name="VK_FW_UPDATE_DATA">
  750. <description>VKFLY transfer update file data.</description>
  751. <field type="uint32_t" name="offset">Offset into the update file.</field>
  752. <field type="uint8_t" name="count" minValue="0" maxValue="128" increment="1">Number of bytes.
  753. Zero for end of file.</field>
  754. <field type="uint8_t[128]" name="data">File data.</field>
  755. </message>
  756. <message id="53104" name="VK_UPDATE_TERMINATE">
  757. <description>VKFLY transfer update terminate. Send this message to terminate a update file
  758. transfer.</description>
  759. <field type="uint8_t" name="target_system">Target system id.</field>
  760. <field type="uint8_t" name="target_comp">Target compid id.</field>
  761. </message>
  762. <message id="53300" name="QINGXIE_BMS">
  763. <description>VKFLY transfer update terminate. Send this message to terminate a update file
  764. transfer.</description>
  765. <field type="uint16_t" name="bat_voltage" units="cV">Battery voltage.</field>
  766. <field type="uint16_t" name="servo_current" units="cA">Servo current.</field>
  767. <field type="uint16_t" name="stack_voltage" units="cV">Stack voltage.</field>
  768. <field type="uint16_t" name="servo_voltage" units="cV">Servo voltage.</field>
  769. <field type="uint16_t" name="bat_refuel_current" units="cA">Battery refuel current.</field>
  770. <field type="uint16_t" name="gas_tank_pressure">Gas tank pressure.</field>
  771. <field type="uint16_t" name="pipe_pressure">Pipe pressure.</field>
  772. <field type="uint16_t" name="pcb_temp">PCB temperature.</field>
  773. <field type="uint16_t" name="stack_temp">Stack temperature.</field>
  774. <field type="uint16_t" name="work_status"></field>
  775. <field type="uint16_t" name="falt_status"></field>
  776. <field type="uint8_t" name="self_check"></field>
  777. <field type="uint8_t" name="Id"></field>
  778. </message>
  779. </messages>
  780. </mavlink>