@aircast-4g/mavlink 1.0.1 → 1.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (135) hide show
  1. package/dist/cli.js +0 -0
  2. package/dist/dialects/ardupilotmega/decoder.js +11930 -0
  3. package/dist/dialects/common/decoder.js +9098 -0
  4. package/dist/dialects/minimal/decoder.js +67 -0
  5. package/dist/generator/generator.d.ts +1 -0
  6. package/dist/generator/generator.d.ts.map +1 -1
  7. package/dist/generator/generator.js +49 -5
  8. package/dist/generator/generator.js.map +1 -1
  9. package/dist/generator/template-engine.d.ts +1 -0
  10. package/dist/generator/template-engine.d.ts.map +1 -1
  11. package/dist/generator/template-engine.js +50 -0
  12. package/dist/generator/template-engine.js.map +1 -1
  13. package/dist/parser/mavlink-parser.d.ts.map +1 -1
  14. package/dist/parser/mavlink-parser.js +17 -6
  15. package/dist/parser/mavlink-parser.js.map +1 -1
  16. package/dist/parser/message-decoder.d.ts +40 -4
  17. package/dist/parser/message-decoder.d.ts.map +1 -1
  18. package/dist/parser/message-decoder.js +263 -222
  19. package/dist/parser/message-decoder.js.map +1 -1
  20. package/dist/parser/types.d.ts +1 -0
  21. package/dist/parser/types.d.ts.map +1 -1
  22. package/dist/parser/types.js.map +1 -1
  23. package/package.json +17 -26
  24. package/dist/batch-processor.d.ts +0 -17
  25. package/dist/batch-processor.d.ts.map +0 -1
  26. package/dist/batch-processor.js +0 -141
  27. package/dist/batch-processor.js.map +0 -1
  28. package/dist/generator.d.ts +0 -15
  29. package/dist/generator.d.ts.map +0 -1
  30. package/dist/generator.js +0 -92
  31. package/dist/generator.js.map +0 -1
  32. package/dist/template-engine.d.ts +0 -13
  33. package/dist/template-engine.d.ts.map +0 -1
  34. package/dist/template-engine.js +0 -220
  35. package/dist/template-engine.js.map +0 -1
  36. package/dist/type-converter.d.ts +0 -15
  37. package/dist/type-converter.d.ts.map +0 -1
  38. package/dist/type-converter.js +0 -179
  39. package/dist/type-converter.js.map +0 -1
  40. package/dist/xml-parser.d.ts +0 -13
  41. package/dist/xml-parser.d.ts.map +0 -1
  42. package/dist/xml-parser.js +0 -170
  43. package/dist/xml-parser.js.map +0 -1
  44. package/types/ardupilotmega/enums.d.ts +0 -2427
  45. package/types/ardupilotmega/enums.d.ts.map +0 -1
  46. package/types/ardupilotmega/enums.js +0 -4636
  47. package/types/ardupilotmega/enums.js.map +0 -1
  48. package/types/ardupilotmega/index.d.ts +0 -4
  49. package/types/ardupilotmega/index.d.ts.map +0 -1
  50. package/types/ardupilotmega/index.js +0 -22
  51. package/types/ardupilotmega/index.js.map +0 -1
  52. package/types/ardupilotmega/messages.d.ts +0 -3719
  53. package/types/ardupilotmega/messages.d.ts.map +0 -1
  54. package/types/ardupilotmega/messages.js +0 -1281
  55. package/types/ardupilotmega/messages.js.map +0 -1
  56. package/types/ardupilotmega/types.d.ts +0 -221
  57. package/types/ardupilotmega/types.d.ts.map +0 -1
  58. package/types/ardupilotmega/types.js +0 -5
  59. package/types/ardupilotmega/types.js.map +0 -1
  60. package/types/common/enums.d.ts +0 -1843
  61. package/types/common/enums.d.ts.map +0 -1
  62. package/types/common/enums.js +0 -3636
  63. package/types/common/enums.js.map +0 -1
  64. package/types/common/index.d.ts +0 -4
  65. package/types/common/index.d.ts.map +0 -1
  66. package/types/common/index.js +0 -21
  67. package/types/common/index.js.map +0 -1
  68. package/types/common/messages.d.ts +0 -2805
  69. package/types/common/messages.d.ts.map +0 -1
  70. package/types/common/messages.js +0 -920
  71. package/types/common/messages.js.map +0 -1
  72. package/types/common/types.d.ts +0 -157
  73. package/types/common/types.d.ts.map +0 -1
  74. package/types/common/types.js +0 -4
  75. package/types/common/types.js.map +0 -1
  76. package/types/minimal/enums.d.ts +0 -244
  77. package/types/minimal/enums.d.ts.map +0 -1
  78. package/types/minimal/enums.js +0 -496
  79. package/types/minimal/enums.js.map +0 -1
  80. package/types/minimal/index.d.ts +0 -4
  81. package/types/minimal/index.d.ts.map +0 -1
  82. package/types/minimal/index.js +0 -21
  83. package/types/minimal/index.js.map +0 -1
  84. package/types/minimal/messages.d.ts +0 -25
  85. package/types/minimal/messages.d.ts.map +0 -1
  86. package/types/minimal/messages.js +0 -12
  87. package/types/minimal/messages.js.map +0 -1
  88. package/types/minimal/types.d.ts +0 -14
  89. package/types/minimal/types.d.ts.map +0 -1
  90. package/types/minimal/types.js +0 -4
  91. package/types/minimal/types.js.map +0 -1
  92. package/types/paparazzi/enums.ts +0 -3632
  93. package/types/paparazzi/index.ts +0 -6
  94. package/types/paparazzi/messages.ts +0 -6185
  95. package/types/paparazzi/types.ts +0 -2159
  96. package/types/python_array_test/enums.ts +0 -3632
  97. package/types/python_array_test/index.ts +0 -6
  98. package/types/python_array_test/messages.ts +0 -6258
  99. package/types/python_array_test/types.ts +0 -2159
  100. package/types/standard/enums.d.ts +0 -248
  101. package/types/standard/enums.d.ts.map +0 -1
  102. package/types/standard/enums.js +0 -505
  103. package/types/standard/enums.js.map +0 -1
  104. package/types/standard/enums.ts +0 -502
  105. package/types/standard/index.d.ts +0 -4
  106. package/types/standard/index.d.ts.map +0 -1
  107. package/types/standard/index.js +0 -22
  108. package/types/standard/index.js.map +0 -1
  109. package/types/standard/index.ts +0 -6
  110. package/types/standard/messages.d.ts +0 -25
  111. package/types/standard/messages.d.ts.map +0 -1
  112. package/types/standard/messages.js +0 -13
  113. package/types/standard/messages.js.map +0 -1
  114. package/types/standard/messages.ts +0 -63
  115. package/types/standard/types.d.ts +0 -15
  116. package/types/standard/types.d.ts.map +0 -1
  117. package/types/standard/types.js +0 -5
  118. package/types/standard/types.js.map +0 -1
  119. package/types/standard/types.ts +0 -278
  120. package/types/test/enums.ts +0 -2
  121. package/types/test/index.ts +0 -6
  122. package/types/test/messages.ts +0 -69
  123. package/types/test/types.ts +0 -11
  124. /package/{types/ardupilotmega/enums.ts → dist/dialects/ardupilotmega/enums.d.ts} +0 -0
  125. /package/{types/ardupilotmega/index.ts → dist/dialects/ardupilotmega/index.d.ts} +0 -0
  126. /package/{types/ardupilotmega/messages.ts → dist/dialects/ardupilotmega/messages.d.ts} +0 -0
  127. /package/{types/ardupilotmega/types.ts → dist/dialects/ardupilotmega/types.d.ts} +0 -0
  128. /package/{types/common/enums.ts → dist/dialects/common/enums.d.ts} +0 -0
  129. /package/{types/common/index.ts → dist/dialects/common/index.d.ts} +0 -0
  130. /package/{types/common/messages.ts → dist/dialects/common/messages.d.ts} +0 -0
  131. /package/{types/common/types.ts → dist/dialects/common/types.d.ts} +0 -0
  132. /package/{types/minimal/enums.ts → dist/dialects/minimal/enums.d.ts} +0 -0
  133. /package/{types/minimal/index.ts → dist/dialects/minimal/index.d.ts} +0 -0
  134. /package/{types/minimal/messages.ts → dist/dialects/minimal/messages.d.ts} +0 -0
  135. /package/{types/minimal/types.ts → dist/dialects/minimal/types.d.ts} +0 -0
@@ -1,63 +0,0 @@
1
- // Auto-generated TypeScript message interfaces for standard dialect
2
-
3
- import { MAVLinkMessage } from './types';
4
- import type {
5
- MAV_AUTOPILOT,
6
- MAV_TYPE,
7
- MAV_MODE_FLAG,
8
- MAV_MODE_FLAG_DECODE_POSITION,
9
- MAV_STATE,
10
- MAV_COMPONENT,
11
- BOOL,
12
- } from './types';
13
-
14
- // The heartbeat message shows that a system or component is present and responding. The type and autopilot fields (along with the message component id), allow the receiving system to treat further messages from this system appropriately (e.g. by laying out the user interface based on the autopilot). This microservice is documented at https://mavlink.io/en/services/heartbeat.html
15
- export interface MessageHeartbeat {
16
- // Vehicle or component type. For a flight controller component the vehicle type (quadrotor, helicopter, etc.). For other components the component type (e.g. camera, gimbal, etc.). This should be used in preference to component id for identifying the component type.
17
- Type: MAV_TYPE;
18
- // Autopilot type / class. Use MAV_AUTOPILOT_INVALID for components that are not flight controllers.
19
- Autopilot: MAV_AUTOPILOT;
20
- // System mode bitmap.
21
- BaseMode: MAV_MODE_FLAG;
22
- // A bitfield for use for autopilot-specific flags
23
- CustomMode: number;
24
- // System status flag.
25
- SystemStatus: MAV_STATE;
26
- // MAVLink version, not writable by user, gets added by protocol because of magic data type: uint8_t_mavlink_version
27
- MavlinkVersion: number;
28
- }
29
-
30
- // Version and capability of protocol version. This message can be requested with MAV_CMD_REQUEST_MESSAGE and is used as part of the handshaking to establish which MAVLink version should be used on the network. Every node should respond to a request for PROTOCOL_VERSION to enable the handshaking. Library implementers should consider adding this into the default decoding state machine to allow the protocol core to respond directly.
31
- export interface MessageProtocolVersion {
32
- // Currently active MAVLink version number * 100: v1.0 is 100, v2.0 is 200, etc.
33
- Version: number;
34
- // Minimum MAVLink version supported
35
- MinVersion: number;
36
- // Maximum MAVLink version supported (set to the same value as version by default)
37
- MaxVersion: number;
38
- // The first 8 bytes (not characters printed in hex!) of the git hash.
39
- SpecVersionHash: number[];
40
- // The first 8 bytes (not characters printed in hex!) of the git hash.
41
- LibraryVersionHash: number[];
42
- }
43
-
44
-
45
- // Message type map for type-safe message handling
46
- export interface MessageTypeMap {
47
- HEARTBEAT: MessageHeartbeat;
48
- PROTOCOL_VERSION: MessageProtocolVersion;
49
- }
50
-
51
- // Union type of all message types
52
- export type AnyMessage =
53
- | MAVLinkMessage<MessageHeartbeat>
54
- | MAVLinkMessage<MessageProtocolVersion>
55
- ;
56
-
57
- // Type guard functions
58
- export function isHeartbeat(msg: MAVLinkMessage): msg is MAVLinkMessage<MessageHeartbeat> {
59
- return msg.type === 'HEARTBEAT';
60
- }
61
- export function isProtocolVersion(msg: MAVLinkMessage): msg is MAVLinkMessage<MessageProtocolVersion> {
62
- return msg.type === 'PROTOCOL_VERSION';
63
- }
@@ -1,15 +0,0 @@
1
- export interface MAVLinkMessage<Content = unknown> {
2
- timestamp: number;
3
- system_id: number;
4
- component_id: number;
5
- type: string;
6
- content: Content;
7
- }
8
- export type MAV_AUTOPILOT = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | number;
9
- export type MAV_TYPE = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | number;
10
- export type MAV_MODE_FLAG = 128 | 64 | 32 | 16 | 8 | 4 | 2 | 1 | number;
11
- export type MAV_MODE_FLAG_DECODE_POSITION = 128 | 64 | 32 | 16 | 8 | 4 | 2 | 1 | number;
12
- export type MAV_STATE = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | number;
13
- export type MAV_COMPONENT = 0 | 1 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 169 | 171 | 172 | 173 | 174 | 175 | 180 | 181 | 189 | 190 | 191 | 192 | 193 | 194 | 195 | 196 | 197 | 198 | 200 | 201 | 202 | 220 | 221 | 236 | 237 | 238 | 240 | 241 | 242 | 243 | 250 | number;
14
- export type BOOL = 0 | 1 | number;
15
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["types.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,cAAc,CAAC,OAAO,GAAG,OAAO;IAC/C,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,OAAO,CAAC;CAClB;AAGD,MAAM,MAAM,aAAa,GACrB,CAAC,GACD,CAAC,GACD,CAAC,GACD,CAAC,GACD,CAAC,GACD,CAAC,GACD,CAAC,GACD,CAAC,GACD,CAAC,GACD,CAAC,GACD,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,MAAM,CAAC;AAGX,MAAM,MAAM,QAAQ,GAChB,CAAC,GACD,CAAC,GACD,CAAC,GACD,CAAC,GACD,CAAC,GACD,CAAC,GACD,CAAC,GACD,CAAC,GACD,CAAC,GACD,CAAC,GACD,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,MAAM,CAAC;AAGX,MAAM,MAAM,aAAa,GACrB,GAAG,GACH,EAAE,GACF,EAAE,GACF,EAAE,GACF,CAAC,GACD,CAAC,GACD,CAAC,GACD,CAAC,GACD,MAAM,CAAC;AAGX,MAAM,MAAM,6BAA6B,GACrC,GAAG,GACH,EAAE,GACF,EAAE,GACF,EAAE,GACF,CAAC,GACD,CAAC,GACD,CAAC,GACD,CAAC,GACD,MAAM,CAAC;AAEX,MAAM,MAAM,SAAS,GACjB,CAAC,GACD,CAAC,GACD,CAAC,GACD,CAAC,GACD,CAAC,GACD,CAAC,GACD,CAAC,GACD,CAAC,GACD,CAAC,GACD,MAAM,CAAC;AAUX,MAAM,MAAM,aAAa,GACrB,CAAC,GACD,CAAC,GACD,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,MAAM,CAAC;AAGX,MAAM,MAAM,IAAI,GACZ,CAAC,GACD,CAAC,GACD,MAAM,CAAC"}
@@ -1,5 +0,0 @@
1
- "use strict";
2
- // Auto-generated TypeScript types for standard dialect
3
- // Generated from MAVLink XML definitions
4
- Object.defineProperty(exports, "__esModule", { value: true });
5
- //# sourceMappingURL=types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["types.ts"],"names":[],"mappings":";AAAA,uDAAuD;AACvD,yCAAyC"}
@@ -1,278 +0,0 @@
1
- // Auto-generated TypeScript types for standard dialect
2
- // Generated from MAVLink XML definitions
3
-
4
- export interface MAVLinkMessage<Content = unknown> {
5
- timestamp: number;
6
- system_id: number;
7
- component_id: number;
8
- type: string;
9
- content: Content;
10
- }
11
-
12
- // Micro air vehicle / autopilot classes. This identifies the individual model.
13
- export type MAV_AUTOPILOT =
14
- | 0 // MAV_AUTOPILOT_GENERIC - Generic autopilot, full support for everything
15
- | 1 // MAV_AUTOPILOT_RESERVED - Reserved for future use.
16
- | 2 // MAV_AUTOPILOT_SLUGS - SLUGS autopilot, http://slugsuav.soe.ucsc.edu
17
- | 3 // MAV_AUTOPILOT_ARDUPILOTMEGA - ArduPilot - Plane/Copter/Rover/Sub/Tracker, https://ardupilot.org
18
- | 4 // MAV_AUTOPILOT_OPENPILOT - OpenPilot, http://openpilot.org
19
- | 5 // MAV_AUTOPILOT_GENERIC_WAYPOINTS_ONLY - Generic autopilot only supporting simple waypoints
20
- | 6 // MAV_AUTOPILOT_GENERIC_WAYPOINTS_AND_SIMPLE_NAVIGATION_ONLY - Generic autopilot supporting waypoints and other simple navigation commands
21
- | 7 // MAV_AUTOPILOT_GENERIC_MISSION_FULL - Generic autopilot supporting the full mission command set
22
- | 8 // MAV_AUTOPILOT_INVALID - No valid autopilot, e.g. a GCS or other MAVLink component
23
- | 9 // MAV_AUTOPILOT_PPZ - PPZ UAV - http://nongnu.org/paparazzi
24
- | 10 // MAV_AUTOPILOT_UDB - UAV Dev Board
25
- | 11 // MAV_AUTOPILOT_FP - FlexiPilot
26
- | 12 // MAV_AUTOPILOT_PX4 - PX4 Autopilot - http://px4.io/
27
- | 13 // MAV_AUTOPILOT_SMACCMPILOT - SMACCMPilot - http://smaccmpilot.org
28
- | 14 // MAV_AUTOPILOT_AUTOQUAD - AutoQuad -- http://autoquad.org
29
- | 15 // MAV_AUTOPILOT_ARMAZILA - Armazila -- http://armazila.com
30
- | 16 // MAV_AUTOPILOT_AEROB - Aerob -- http://aerob.ru
31
- | 17 // MAV_AUTOPILOT_ASLUAV - ASLUAV autopilot -- http://www.asl.ethz.ch
32
- | 18 // MAV_AUTOPILOT_SMARTAP - SmartAP Autopilot - http://sky-drones.com
33
- | 19 // MAV_AUTOPILOT_AIRRAILS - AirRails - http://uaventure.com
34
- | 20 // MAV_AUTOPILOT_REFLEX - Fusion Reflex - https://fusion.engineering
35
- | number;
36
-
37
- // MAVLINK component type reported in HEARTBEAT message. Flight controllers must report the type of the vehicle on which they are mounted (e.g. MAV_TYPE_OCTOROTOR). All other components must report a value appropriate for their type (e.g. a camera must use MAV_TYPE_CAMERA).
38
- export type MAV_TYPE =
39
- | 0 // MAV_TYPE_GENERIC - Generic micro air vehicle
40
- | 1 // MAV_TYPE_FIXED_WING - Fixed wing aircraft.
41
- | 2 // MAV_TYPE_QUADROTOR - Quadrotor
42
- | 3 // MAV_TYPE_COAXIAL - Coaxial helicopter
43
- | 4 // MAV_TYPE_HELICOPTER - Normal helicopter with tail rotor.
44
- | 5 // MAV_TYPE_ANTENNA_TRACKER - Ground installation
45
- | 6 // MAV_TYPE_GCS - Operator control unit / ground control station
46
- | 7 // MAV_TYPE_AIRSHIP - Airship, controlled
47
- | 8 // MAV_TYPE_FREE_BALLOON - Free balloon, uncontrolled
48
- | 9 // MAV_TYPE_ROCKET - Rocket
49
- | 10 // MAV_TYPE_GROUND_ROVER - Ground rover
50
- | 11 // MAV_TYPE_SURFACE_BOAT - Surface vessel, boat, ship
51
- | 12 // MAV_TYPE_SUBMARINE - Submarine
52
- | 13 // MAV_TYPE_HEXAROTOR - Hexarotor
53
- | 14 // MAV_TYPE_OCTOROTOR - Octorotor
54
- | 15 // MAV_TYPE_TRICOPTER - Tricopter
55
- | 16 // MAV_TYPE_FLAPPING_WING - Flapping wing
56
- | 17 // MAV_TYPE_KITE - Kite
57
- | 18 // MAV_TYPE_ONBOARD_CONTROLLER - Onboard companion controller
58
- | 19 // MAV_TYPE_VTOL_TAILSITTER_DUOROTOR - Two-rotor Tailsitter VTOL that additionally uses control surfaces in vertical operation. Note, value previously named MAV_TYPE_VTOL_DUOROTOR.
59
- | 20 // MAV_TYPE_VTOL_TAILSITTER_QUADROTOR - Quad-rotor Tailsitter VTOL using a V-shaped quad config in vertical operation. Note: value previously named MAV_TYPE_VTOL_QUADROTOR.
60
- | 21 // MAV_TYPE_VTOL_TILTROTOR - Tiltrotor VTOL. Fuselage and wings stay (nominally) horizontal in all flight phases. It able to tilt (some) rotors to provide thrust in cruise flight.
61
- | 22 // MAV_TYPE_VTOL_FIXEDROTOR - VTOL with separate fixed rotors for hover and cruise flight. Fuselage and wings stay (nominally) horizontal in all flight phases.
62
- | 23 // MAV_TYPE_VTOL_TAILSITTER - Tailsitter VTOL. Fuselage and wings orientation changes depending on flight phase: vertical for hover, horizontal for cruise. Use more specific VTOL MAV_TYPE_VTOL_TAILSITTER_DUOROTOR or MAV_TYPE_VTOL_TAILSITTER_QUADROTOR if appropriate.
63
- | 24 // MAV_TYPE_VTOL_TILTWING - Tiltwing VTOL. Fuselage stays horizontal in all flight phases. The whole wing, along with any attached engine, can tilt between vertical and horizontal mode.
64
- | 25 // MAV_TYPE_VTOL_RESERVED5 - VTOL reserved 5
65
- | 26 // MAV_TYPE_GIMBAL - Gimbal
66
- | 27 // MAV_TYPE_ADSB - ADSB system
67
- | 28 // MAV_TYPE_PARAFOIL - Steerable, nonrigid airfoil
68
- | 29 // MAV_TYPE_DODECAROTOR - Dodecarotor
69
- | 30 // MAV_TYPE_CAMERA - Camera
70
- | 31 // MAV_TYPE_CHARGING_STATION - Charging station
71
- | 32 // MAV_TYPE_FLARM - FLARM collision avoidance system
72
- | 33 // MAV_TYPE_SERVO - Servo
73
- | 34 // MAV_TYPE_ODID - Open Drone ID. See https://mavlink.io/en/services/opendroneid.html.
74
- | 35 // MAV_TYPE_DECAROTOR - Decarotor
75
- | 36 // MAV_TYPE_BATTERY - Battery
76
- | 37 // MAV_TYPE_PARACHUTE - Parachute
77
- | 38 // MAV_TYPE_LOG - Log
78
- | 39 // MAV_TYPE_OSD - OSD
79
- | 40 // MAV_TYPE_IMU - IMU
80
- | 41 // MAV_TYPE_GPS - GPS
81
- | 42 // MAV_TYPE_WINCH - Winch
82
- | 43 // MAV_TYPE_GENERIC_MULTIROTOR - Generic multirotor that does not fit into a specific type or whose type is unknown
83
- | 44 // MAV_TYPE_ILLUMINATOR - Illuminator. An illuminator is a light source that is used for lighting up dark areas external to the system: e.g. a torch or searchlight (as opposed to a light source for illuminating the system itself, e.g. an indicator light).
84
- | 45 // MAV_TYPE_SPACECRAFT_ORBITER - Orbiter spacecraft. Includes satellites orbiting terrestrial and extra-terrestrial bodies. Follows NASA Spacecraft Classification.
85
- | 46 // MAV_TYPE_GROUND_QUADRUPED - A generic four-legged ground vehicle (e.g., a robot dog).
86
- | 47 // MAV_TYPE_VTOL_GYRODYNE - VTOL hybrid of helicopter and autogyro. It has a main rotor for lift and separate propellers for forward flight. The rotor must be powered for hover but can autorotate in cruise flight. See: https://en.wikipedia.org/wiki/Gyrodyne
87
- | 48 // MAV_TYPE_GRIPPER - Gripper
88
- | number;
89
-
90
- // These flags encode the MAV mode, see MAV_MODE enum for useful combinations.
91
- export type MAV_MODE_FLAG =
92
- | 128 // MAV_MODE_FLAG_SAFETY_ARMED - 0b10000000 MAV safety set to armed. Motors are enabled / running / can start. Ready to fly. Additional note: this flag is to be ignore when sent in the command MAV_CMD_DO_SET_MODE and MAV_CMD_COMPONENT_ARM_DISARM shall be used instead. The flag can still be used to report the armed state.
93
- | 64 // MAV_MODE_FLAG_MANUAL_INPUT_ENABLED - 0b01000000 remote control input is enabled.
94
- | 32 // MAV_MODE_FLAG_HIL_ENABLED - 0b00100000 hardware in the loop simulation. All motors / actuators are blocked, but internal software is full operational.
95
- | 16 // MAV_MODE_FLAG_STABILIZE_ENABLED - 0b00010000 system stabilizes electronically its attitude (and optionally position). It needs however further control inputs to move around.
96
- | 8 // MAV_MODE_FLAG_GUIDED_ENABLED - 0b00001000 guided mode enabled, system flies waypoints / mission items.
97
- | 4 // MAV_MODE_FLAG_AUTO_ENABLED - 0b00000100 autonomous mode enabled, system finds its own goal positions. Guided flag can be set or not, depends on the actual implementation.
98
- | 2 // MAV_MODE_FLAG_TEST_ENABLED - 0b00000010 system has a test mode enabled. This flag is intended for temporary system tests and should not be used for stable implementations.
99
- | 1 // MAV_MODE_FLAG_CUSTOM_MODE_ENABLED - 0b00000001 system-specific custom mode is enabled. When using this flag to enable a custom mode all other flags should be ignored.
100
- | number;
101
-
102
- // These values encode the bit positions of the decode position. These values can be used to read the value of a flag bit by combining the base_mode variable with AND with the flag position value. The result will be either 0 or 1, depending on if the flag is set or not.
103
- export type MAV_MODE_FLAG_DECODE_POSITION =
104
- | 128 // MAV_MODE_FLAG_DECODE_POSITION_SAFETY - First bit: 10000000
105
- | 64 // MAV_MODE_FLAG_DECODE_POSITION_MANUAL - Second bit: 01000000
106
- | 32 // MAV_MODE_FLAG_DECODE_POSITION_HIL - Third bit: 00100000
107
- | 16 // MAV_MODE_FLAG_DECODE_POSITION_STABILIZE - Fourth bit: 00010000
108
- | 8 // MAV_MODE_FLAG_DECODE_POSITION_GUIDED - Fifth bit: 00001000
109
- | 4 // MAV_MODE_FLAG_DECODE_POSITION_AUTO - Sixth bit: 00000100
110
- | 2 // MAV_MODE_FLAG_DECODE_POSITION_TEST - Seventh bit: 00000010
111
- | 1 // MAV_MODE_FLAG_DECODE_POSITION_CUSTOM_MODE - Eighth bit: 00000001
112
- | number;
113
-
114
- export type MAV_STATE =
115
- | 0 // MAV_STATE_UNINIT - Uninitialized system, state is unknown.
116
- | 1 // MAV_STATE_BOOT - System is booting up.
117
- | 2 // MAV_STATE_CALIBRATING - System is calibrating and not flight-ready.
118
- | 3 // MAV_STATE_STANDBY - System is grounded and on standby. It can be launched any time.
119
- | 4 // MAV_STATE_ACTIVE - System is active and might be already airborne. Motors are engaged.
120
- | 5 // MAV_STATE_CRITICAL - System is in a non-normal flight mode (failsafe). It can however still navigate.
121
- | 6 // MAV_STATE_EMERGENCY - System is in a non-normal flight mode (failsafe). It lost control over parts or over the whole airframe. It is in mayday and going down.
122
- | 7 // MAV_STATE_POWEROFF - System just initialized its power-down sequence, will shut down now.
123
- | 8 // MAV_STATE_FLIGHT_TERMINATION - System is terminating itself (failsafe or commanded).
124
- | number;
125
-
126
- // Legacy component ID values for particular types of hardware/software that might make up a MAVLink system (autopilot, cameras, servos, avoidance systems etc.).
127
- // Components are not required or expected to use IDs with names that correspond to their type or function, but may choose to do so.
128
- // Using an ID that matches the type may slightly reduce the chances of component id clashes, as, for historical reasons, it is less likely to be used by some other type of component.
129
- // System integration will still need to ensure that all components have unique IDs.
130
- // Component IDs are used for addressing messages to a particular component within a system.
131
- // A component can use any unique ID between 1 and 255 (MAV_COMP_ID_ALL value is the broadcast address, used to send to all components).
132
- // Historically component ID were also used for identifying the type of component.
133
- // New code must not use component IDs to infer the component type, but instead check the MAV_TYPE in the HEARTBEAT message!
134
- export type MAV_COMPONENT =
135
- | 0 // MAV_COMP_ID_ALL - Target id (target_component) used to broadcast messages to all components of the receiving system. Components should attempt to process messages with this component ID and forward to components on any other interfaces. Note: This is not a valid *source* component id for a message.
136
- | 1 // MAV_COMP_ID_AUTOPILOT1 - System flight controller component (&quot;autopilot&quot;). Only one autopilot is expected in a particular system.
137
- | 25 // MAV_COMP_ID_USER1 - Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network.
138
- | 26 // MAV_COMP_ID_USER2 - Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network.
139
- | 27 // MAV_COMP_ID_USER3 - Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network.
140
- | 28 // MAV_COMP_ID_USER4 - Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network.
141
- | 29 // MAV_COMP_ID_USER5 - Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network.
142
- | 30 // MAV_COMP_ID_USER6 - Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network.
143
- | 31 // MAV_COMP_ID_USER7 - Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network.
144
- | 32 // MAV_COMP_ID_USER8 - Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network.
145
- | 33 // MAV_COMP_ID_USER9 - Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network.
146
- | 34 // MAV_COMP_ID_USER10 - Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network.
147
- | 35 // MAV_COMP_ID_USER11 - Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network.
148
- | 36 // MAV_COMP_ID_USER12 - Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network.
149
- | 37 // MAV_COMP_ID_USER13 - Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network.
150
- | 38 // MAV_COMP_ID_USER14 - Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network.
151
- | 39 // MAV_COMP_ID_USER15 - Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network.
152
- | 40 // MAV_COMP_ID_USER16 - Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network.
153
- | 41 // MAV_COMP_ID_USER17 - Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network.
154
- | 42 // MAV_COMP_ID_USER18 - Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network.
155
- | 43 // MAV_COMP_ID_USER19 - Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network.
156
- | 44 // MAV_COMP_ID_USER20 - Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network.
157
- | 45 // MAV_COMP_ID_USER21 - Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network.
158
- | 46 // MAV_COMP_ID_USER22 - Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network.
159
- | 47 // MAV_COMP_ID_USER23 - Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network.
160
- | 48 // MAV_COMP_ID_USER24 - Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network.
161
- | 49 // MAV_COMP_ID_USER25 - Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network.
162
- | 50 // MAV_COMP_ID_USER26 - Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network.
163
- | 51 // MAV_COMP_ID_USER27 - Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network.
164
- | 52 // MAV_COMP_ID_USER28 - Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network.
165
- | 53 // MAV_COMP_ID_USER29 - Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network.
166
- | 54 // MAV_COMP_ID_USER30 - Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network.
167
- | 55 // MAV_COMP_ID_USER31 - Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network.
168
- | 56 // MAV_COMP_ID_USER32 - Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network.
169
- | 57 // MAV_COMP_ID_USER33 - Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network.
170
- | 58 // MAV_COMP_ID_USER34 - Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network.
171
- | 59 // MAV_COMP_ID_USER35 - Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network.
172
- | 60 // MAV_COMP_ID_USER36 - Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network.
173
- | 61 // MAV_COMP_ID_USER37 - Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network.
174
- | 62 // MAV_COMP_ID_USER38 - Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network.
175
- | 63 // MAV_COMP_ID_USER39 - Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network.
176
- | 64 // MAV_COMP_ID_USER40 - Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network.
177
- | 65 // MAV_COMP_ID_USER41 - Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network.
178
- | 66 // MAV_COMP_ID_USER42 - Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network.
179
- | 67 // MAV_COMP_ID_USER43 - Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network.
180
- | 68 // MAV_COMP_ID_TELEMETRY_RADIO - Telemetry radio (e.g. SiK radio, or other component that emits RADIO_STATUS messages).
181
- | 69 // MAV_COMP_ID_USER45 - Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network.
182
- | 70 // MAV_COMP_ID_USER46 - Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network.
183
- | 71 // MAV_COMP_ID_USER47 - Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network.
184
- | 72 // MAV_COMP_ID_USER48 - Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network.
185
- | 73 // MAV_COMP_ID_USER49 - Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network.
186
- | 74 // MAV_COMP_ID_USER50 - Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network.
187
- | 75 // MAV_COMP_ID_USER51 - Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network.
188
- | 76 // MAV_COMP_ID_USER52 - Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network.
189
- | 77 // MAV_COMP_ID_USER53 - Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network.
190
- | 78 // MAV_COMP_ID_USER54 - Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network.
191
- | 79 // MAV_COMP_ID_USER55 - Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network.
192
- | 80 // MAV_COMP_ID_USER56 - Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network.
193
- | 81 // MAV_COMP_ID_USER57 - Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network.
194
- | 82 // MAV_COMP_ID_USER58 - Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network.
195
- | 83 // MAV_COMP_ID_USER59 - Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network.
196
- | 84 // MAV_COMP_ID_USER60 - Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network.
197
- | 85 // MAV_COMP_ID_USER61 - Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network.
198
- | 86 // MAV_COMP_ID_USER62 - Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network.
199
- | 87 // MAV_COMP_ID_USER63 - Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network.
200
- | 88 // MAV_COMP_ID_USER64 - Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network.
201
- | 89 // MAV_COMP_ID_USER65 - Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network.
202
- | 90 // MAV_COMP_ID_USER66 - Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network.
203
- | 91 // MAV_COMP_ID_USER67 - Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network.
204
- | 92 // MAV_COMP_ID_USER68 - Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network.
205
- | 93 // MAV_COMP_ID_USER69 - Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network.
206
- | 94 // MAV_COMP_ID_USER70 - Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network.
207
- | 95 // MAV_COMP_ID_USER71 - Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network.
208
- | 96 // MAV_COMP_ID_USER72 - Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network.
209
- | 97 // MAV_COMP_ID_USER73 - Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network.
210
- | 98 // MAV_COMP_ID_USER74 - Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network.
211
- | 99 // MAV_COMP_ID_USER75 - Id for a component on privately managed MAVLink network. Can be used for any purpose but may not be published by components outside of the private network.
212
- | 100 // MAV_COMP_ID_CAMERA - Camera #1.
213
- | 101 // MAV_COMP_ID_CAMERA2 - Camera #2.
214
- | 102 // MAV_COMP_ID_CAMERA3 - Camera #3.
215
- | 103 // MAV_COMP_ID_CAMERA4 - Camera #4.
216
- | 104 // MAV_COMP_ID_CAMERA5 - Camera #5.
217
- | 105 // MAV_COMP_ID_CAMERA6 - Camera #6.
218
- | 140 // MAV_COMP_ID_SERVO1 - Servo #1.
219
- | 141 // MAV_COMP_ID_SERVO2 - Servo #2.
220
- | 142 // MAV_COMP_ID_SERVO3 - Servo #3.
221
- | 143 // MAV_COMP_ID_SERVO4 - Servo #4.
222
- | 144 // MAV_COMP_ID_SERVO5 - Servo #5.
223
- | 145 // MAV_COMP_ID_SERVO6 - Servo #6.
224
- | 146 // MAV_COMP_ID_SERVO7 - Servo #7.
225
- | 147 // MAV_COMP_ID_SERVO8 - Servo #8.
226
- | 148 // MAV_COMP_ID_SERVO9 - Servo #9.
227
- | 149 // MAV_COMP_ID_SERVO10 - Servo #10.
228
- | 150 // MAV_COMP_ID_SERVO11 - Servo #11.
229
- | 151 // MAV_COMP_ID_SERVO12 - Servo #12.
230
- | 152 // MAV_COMP_ID_SERVO13 - Servo #13.
231
- | 153 // MAV_COMP_ID_SERVO14 - Servo #14.
232
- | 154 // MAV_COMP_ID_GIMBAL - Gimbal #1.
233
- | 155 // MAV_COMP_ID_LOG - Logging component.
234
- | 156 // MAV_COMP_ID_ADSB - Automatic Dependent Surveillance-Broadcast (ADS-B) component.
235
- | 157 // MAV_COMP_ID_OSD - On Screen Display (OSD) devices for video links.
236
- | 158 // MAV_COMP_ID_PERIPHERAL - Generic autopilot peripheral component ID. Meant for devices that do not implement the parameter microservice.
237
- | 159 // MAV_COMP_ID_QX1_GIMBAL - Gimbal ID for QX1.
238
- | 160 // MAV_COMP_ID_FLARM - FLARM collision alert component.
239
- | 161 // MAV_COMP_ID_PARACHUTE - Parachute component.
240
- | 169 // MAV_COMP_ID_WINCH - Winch component.
241
- | 171 // MAV_COMP_ID_GIMBAL2 - Gimbal #2.
242
- | 172 // MAV_COMP_ID_GIMBAL3 - Gimbal #3.
243
- | 173 // MAV_COMP_ID_GIMBAL4 - Gimbal #4
244
- | 174 // MAV_COMP_ID_GIMBAL5 - Gimbal #5.
245
- | 175 // MAV_COMP_ID_GIMBAL6 - Gimbal #6.
246
- | 180 // MAV_COMP_ID_BATTERY - Battery #1.
247
- | 181 // MAV_COMP_ID_BATTERY2 - Battery #2.
248
- | 189 // MAV_COMP_ID_MAVCAN - CAN over MAVLink client.
249
- | 190 // MAV_COMP_ID_MISSIONPLANNER - Component that can generate/supply a mission flight plan (e.g. GCS or developer API).
250
- | 191 // MAV_COMP_ID_ONBOARD_COMPUTER - Component that lives on the onboard computer (companion computer) and has some generic functionalities, such as settings system parameters and monitoring the status of some processes that don&#x27;t directly speak mavlink and so on.
251
- | 192 // MAV_COMP_ID_ONBOARD_COMPUTER2 - Component that lives on the onboard computer (companion computer) and has some generic functionalities, such as settings system parameters and monitoring the status of some processes that don&#x27;t directly speak mavlink and so on.
252
- | 193 // MAV_COMP_ID_ONBOARD_COMPUTER3 - Component that lives on the onboard computer (companion computer) and has some generic functionalities, such as settings system parameters and monitoring the status of some processes that don&#x27;t directly speak mavlink and so on.
253
- | 194 // MAV_COMP_ID_ONBOARD_COMPUTER4 - Component that lives on the onboard computer (companion computer) and has some generic functionalities, such as settings system parameters and monitoring the status of some processes that don&#x27;t directly speak mavlink and so on.
254
- | 195 // MAV_COMP_ID_PATHPLANNER - Component that finds an optimal path between points based on a certain constraint (e.g. minimum snap, shortest path, cost, etc.).
255
- | 196 // MAV_COMP_ID_OBSTACLE_AVOIDANCE - Component that plans a collision free path between two points.
256
- | 197 // MAV_COMP_ID_VISUAL_INERTIAL_ODOMETRY - Component that provides position estimates using VIO techniques.
257
- | 198 // MAV_COMP_ID_PAIRING_MANAGER - Component that manages pairing of vehicle and GCS.
258
- | 200 // MAV_COMP_ID_IMU - Inertial Measurement Unit (IMU) #1.
259
- | 201 // MAV_COMP_ID_IMU_2 - Inertial Measurement Unit (IMU) #2.
260
- | 202 // MAV_COMP_ID_IMU_3 - Inertial Measurement Unit (IMU) #3.
261
- | 220 // MAV_COMP_ID_GPS - GPS #1.
262
- | 221 // MAV_COMP_ID_GPS2 - GPS #2.
263
- | 236 // MAV_COMP_ID_ODID_TXRX_1 - Open Drone ID transmitter/receiver (Bluetooth/WiFi/Internet).
264
- | 237 // MAV_COMP_ID_ODID_TXRX_2 - Open Drone ID transmitter/receiver (Bluetooth/WiFi/Internet).
265
- | 238 // MAV_COMP_ID_ODID_TXRX_3 - Open Drone ID transmitter/receiver (Bluetooth/WiFi/Internet).
266
- | 240 // MAV_COMP_ID_UDP_BRIDGE - Component to bridge MAVLink to UDP (i.e. from a UART).
267
- | 241 // MAV_COMP_ID_UART_BRIDGE - Component to bridge to UART (i.e. from UDP).
268
- | 242 // MAV_COMP_ID_TUNNEL_NODE - Component handling TUNNEL messages (e.g. vendor specific GUI of a component).
269
- | 243 // MAV_COMP_ID_ILLUMINATOR - Illuminator
270
- | 250 // MAV_COMP_ID_SYSTEM_CONTROL - Deprecated, don&#x27;t use. Component for handling system messages (e.g. to ARM, takeoff, etc.).
271
- | number;
272
-
273
- // Enum used to indicate true or false (also: success or failure, enabled or disabled, active or inactive).
274
- export type BOOL =
275
- | 0 // BOOL_FALSE - False.
276
- | 1 // BOOL_TRUE - True.
277
- | number;
278
-
@@ -1,2 +0,0 @@
1
- // Auto-generated TypeScript enums for test dialect
2
-
@@ -1,6 +0,0 @@
1
- // Auto-generated TypeScript index file
2
- // Exports all dialect types
3
-
4
- export * from './types';
5
- export * from './enums';
6
- export * from './messages';
@@ -1,69 +0,0 @@
1
- // Auto-generated TypeScript message interfaces for test dialect
2
-
3
- import { MAVLinkMessage } from './types';
4
- import type {
5
- } from './types';
6
-
7
- // Test all field types
8
- export interface MessageTestTypes {
9
- // char
10
- C: string;
11
- // string
12
- S: string;
13
- // uint8_t
14
- U8: number;
15
- // uint16_t
16
- U16: number;
17
- // uint32_t
18
- U32: number;
19
- // uint64_t
20
- U64: number;
21
- // int8_t
22
- S8: number;
23
- // int16_t
24
- S16: number;
25
- // int32_t
26
- S32: number;
27
- // int64_t
28
- S64: number;
29
- // float
30
- F: number;
31
- // double
32
- D: number;
33
- // uint8_t_array
34
- U8Array: number[];
35
- // uint16_t_array
36
- U16Array: number[];
37
- // uint32_t_array
38
- U32Array: number[];
39
- // uint64_t_array
40
- U64Array: number[];
41
- // int8_t_array
42
- S8Array: number[];
43
- // int16_t_array
44
- S16Array: number[];
45
- // int32_t_array
46
- S32Array: number[];
47
- // int64_t_array
48
- S64Array: number[];
49
- // float_array
50
- FArray: number[];
51
- // double_array
52
- DArray: number[];
53
- }
54
-
55
-
56
- // Message type map for type-safe message handling
57
- export interface MessageTypeMap {
58
- TEST_TYPES: MessageTestTypes;
59
- }
60
-
61
- // Union type of all message types
62
- export type AnyMessage =
63
- | MAVLinkMessage<MessageTestTypes>
64
- ;
65
-
66
- // Type guard functions
67
- export function isTestTypes(msg: MAVLinkMessage): msg is MAVLinkMessage<MessageTestTypes> {
68
- return msg.type === 'TEST_TYPES';
69
- }
@@ -1,11 +0,0 @@
1
- // Auto-generated TypeScript types for test dialect
2
- // Generated from MAVLink XML definitions
3
-
4
- export interface MAVLinkMessage<Content = unknown> {
5
- timestamp: number;
6
- system_id: number;
7
- component_id: number;
8
- type: string;
9
- content: Content;
10
- }
11
-