@aircast-4g/mavlink 1.1.3 → 1.1.6

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 (91) hide show
  1. package/README.md +40 -29
  2. package/dist/dialects/ardupilotmega/index.d.ts +7071 -5
  3. package/dist/dialects/ardupilotmega/index.js +17804 -0
  4. package/dist/dialects/ardupilotmega/index.js.map +1 -0
  5. package/dist/dialects/common/index.d.ts +5335 -5
  6. package/dist/dialects/common/index.js +13709 -0
  7. package/dist/dialects/common/index.js.map +1 -0
  8. package/dist/dialects/minimal/index.d.ts +359 -5
  9. package/dist/dialects/minimal/index.js +859 -0
  10. package/dist/dialects/minimal/index.js.map +1 -0
  11. package/dist/dialects/paparazzi/index.d.ts +5379 -0
  12. package/dist/dialects/paparazzi/index.js +13807 -0
  13. package/dist/dialects/paparazzi/index.js.map +1 -0
  14. package/dist/dialects/python_array_test/index.d.ts +5420 -0
  15. package/dist/dialects/python_array_test/index.js +13954 -0
  16. package/dist/dialects/python_array_test/index.js.map +1 -0
  17. package/dist/dialects/standard/index.d.ts +365 -0
  18. package/dist/dialects/standard/index.js +867 -0
  19. package/dist/dialects/standard/index.js.map +1 -0
  20. package/dist/dialects/test/index.d.ts +115 -0
  21. package/dist/dialects/test/index.js +409 -0
  22. package/dist/dialects/test/index.js.map +1 -0
  23. package/package.json +52 -18
  24. package/dist/cli.d.ts +0 -3
  25. package/dist/cli.d.ts.map +0 -1
  26. package/dist/cli.js +0 -174
  27. package/dist/cli.js.map +0 -1
  28. package/dist/dialects/ardupilotmega/decoder.js +0 -11930
  29. package/dist/dialects/ardupilotmega/enums.d.ts +0 -4631
  30. package/dist/dialects/ardupilotmega/messages.d.ts +0 -8088
  31. package/dist/dialects/ardupilotmega/types.d.ts +0 -2833
  32. package/dist/dialects/common/decoder.js +0 -9098
  33. package/dist/dialects/common/enums.d.ts +0 -3632
  34. package/dist/dialects/common/messages.d.ts +0 -6114
  35. package/dist/dialects/common/types.d.ts +0 -2159
  36. package/dist/dialects/minimal/decoder.js +0 -67
  37. package/dist/dialects/minimal/enums.d.ts +0 -494
  38. package/dist/dialects/minimal/messages.d.ts +0 -62
  39. package/dist/dialects/minimal/types.d.ts +0 -272
  40. package/dist/generator/batch-processor.d.ts +0 -17
  41. package/dist/generator/batch-processor.d.ts.map +0 -1
  42. package/dist/generator/batch-processor.js +0 -141
  43. package/dist/generator/batch-processor.js.map +0 -1
  44. package/dist/generator/generator.d.ts +0 -16
  45. package/dist/generator/generator.d.ts.map +0 -1
  46. package/dist/generator/generator.js +0 -136
  47. package/dist/generator/generator.js.map +0 -1
  48. package/dist/generator/template-engine.d.ts +0 -14
  49. package/dist/generator/template-engine.d.ts.map +0 -1
  50. package/dist/generator/template-engine.js +0 -270
  51. package/dist/generator/template-engine.js.map +0 -1
  52. package/dist/generator/type-converter.d.ts +0 -15
  53. package/dist/generator/type-converter.d.ts.map +0 -1
  54. package/dist/generator/type-converter.js +0 -179
  55. package/dist/generator/type-converter.js.map +0 -1
  56. package/dist/generator/xml-parser.d.ts +0 -13
  57. package/dist/generator/xml-parser.d.ts.map +0 -1
  58. package/dist/generator/xml-parser.js +0 -170
  59. package/dist/generator/xml-parser.js.map +0 -1
  60. package/dist/index.d.ts +0 -8
  61. package/dist/index.d.ts.map +0 -1
  62. package/dist/index.js +0 -37
  63. package/dist/index.js.map +0 -1
  64. package/dist/parser/crc.d.ts +0 -7
  65. package/dist/parser/crc.d.ts.map +0 -1
  66. package/dist/parser/crc.js +0 -182
  67. package/dist/parser/crc.js.map +0 -1
  68. package/dist/parser/frame-parser.d.ts +0 -15
  69. package/dist/parser/frame-parser.d.ts.map +0 -1
  70. package/dist/parser/frame-parser.js +0 -82
  71. package/dist/parser/frame-parser.js.map +0 -1
  72. package/dist/parser/index.d.ts +0 -6
  73. package/dist/parser/index.d.ts.map +0 -1
  74. package/dist/parser/index.js +0 -28
  75. package/dist/parser/index.js.map +0 -1
  76. package/dist/parser/mavlink-parser.d.ts +0 -35
  77. package/dist/parser/mavlink-parser.d.ts.map +0 -1
  78. package/dist/parser/mavlink-parser.js +0 -215
  79. package/dist/parser/mavlink-parser.js.map +0 -1
  80. package/dist/parser/message-decoder.d.ts +0 -47
  81. package/dist/parser/message-decoder.d.ts.map +0 -1
  82. package/dist/parser/message-decoder.js +0 -288
  83. package/dist/parser/message-decoder.js.map +0 -1
  84. package/dist/parser/types.d.ts +0 -60
  85. package/dist/parser/types.d.ts.map +0 -1
  86. package/dist/parser/types.js +0 -13
  87. package/dist/parser/types.js.map +0 -1
  88. package/dist/types.d.ts +0 -110
  89. package/dist/types.d.ts.map +0 -1
  90. package/dist/types.js +0 -3
  91. package/dist/types.js.map +0 -1
@@ -1,4631 +0,0 @@
1
- // Auto-generated TypeScript enums for ardupilotmega dialect
2
-
3
- // Micro air vehicle / autopilot classes. This identifies the individual model.
4
- export enum MAV_AUTOPILOTEnum {
5
- // Generic autopilot, full support for everything
6
- MAV_AUTOPILOT_GENERIC = 0,
7
- // Reserved for future use.
8
- MAV_AUTOPILOT_RESERVED = 1,
9
- // SLUGS autopilot, http://slugsuav.soe.ucsc.edu
10
- MAV_AUTOPILOT_SLUGS = 2,
11
- // ArduPilot - Plane/Copter/Rover/Sub/Tracker, https://ardupilot.org
12
- MAV_AUTOPILOT_ARDUPILOTMEGA = 3,
13
- // OpenPilot, http://openpilot.org
14
- MAV_AUTOPILOT_OPENPILOT = 4,
15
- // Generic autopilot only supporting simple waypoints
16
- MAV_AUTOPILOT_GENERIC_WAYPOINTS_ONLY = 5,
17
- // Generic autopilot supporting waypoints and other simple navigation commands
18
- MAV_AUTOPILOT_GENERIC_WAYPOINTS_AND_SIMPLE_NAVIGATION_ONLY = 6,
19
- // Generic autopilot supporting the full mission command set
20
- MAV_AUTOPILOT_GENERIC_MISSION_FULL = 7,
21
- // No valid autopilot, e.g. a GCS or other MAVLink component
22
- MAV_AUTOPILOT_INVALID = 8,
23
- // PPZ UAV - http://nongnu.org/paparazzi
24
- MAV_AUTOPILOT_PPZ = 9,
25
- // UAV Dev Board
26
- MAV_AUTOPILOT_UDB = 10,
27
- // FlexiPilot
28
- MAV_AUTOPILOT_FP = 11,
29
- // PX4 Autopilot - http://px4.io/
30
- MAV_AUTOPILOT_PX4 = 12,
31
- // SMACCMPilot - http://smaccmpilot.org
32
- MAV_AUTOPILOT_SMACCMPILOT = 13,
33
- // AutoQuad -- http://autoquad.org
34
- MAV_AUTOPILOT_AUTOQUAD = 14,
35
- // Armazila -- http://armazila.com
36
- MAV_AUTOPILOT_ARMAZILA = 15,
37
- // Aerob -- http://aerob.ru
38
- MAV_AUTOPILOT_AEROB = 16,
39
- // ASLUAV autopilot -- http://www.asl.ethz.ch
40
- MAV_AUTOPILOT_ASLUAV = 17,
41
- // SmartAP Autopilot - http://sky-drones.com
42
- MAV_AUTOPILOT_SMARTAP = 18,
43
- // AirRails - http://uaventure.com
44
- MAV_AUTOPILOT_AIRRAILS = 19,
45
- // Fusion Reflex - https://fusion.engineering
46
- MAV_AUTOPILOT_REFLEX = 20,
47
- }
48
-
49
- // 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).
50
- export enum MAV_TYPEEnum {
51
- // Generic micro air vehicle
52
- MAV_TYPE_GENERIC = 0,
53
- // Fixed wing aircraft.
54
- MAV_TYPE_FIXED_WING = 1,
55
- // Quadrotor
56
- MAV_TYPE_QUADROTOR = 2,
57
- // Coaxial helicopter
58
- MAV_TYPE_COAXIAL = 3,
59
- // Normal helicopter with tail rotor.
60
- MAV_TYPE_HELICOPTER = 4,
61
- // Ground installation
62
- MAV_TYPE_ANTENNA_TRACKER = 5,
63
- // Operator control unit / ground control station
64
- MAV_TYPE_GCS = 6,
65
- // Airship, controlled
66
- MAV_TYPE_AIRSHIP = 7,
67
- // Free balloon, uncontrolled
68
- MAV_TYPE_FREE_BALLOON = 8,
69
- // Rocket
70
- MAV_TYPE_ROCKET = 9,
71
- // Ground rover
72
- MAV_TYPE_GROUND_ROVER = 10,
73
- // Surface vessel, boat, ship
74
- MAV_TYPE_SURFACE_BOAT = 11,
75
- // Submarine
76
- MAV_TYPE_SUBMARINE = 12,
77
- // Hexarotor
78
- MAV_TYPE_HEXAROTOR = 13,
79
- // Octorotor
80
- MAV_TYPE_OCTOROTOR = 14,
81
- // Tricopter
82
- MAV_TYPE_TRICOPTER = 15,
83
- // Flapping wing
84
- MAV_TYPE_FLAPPING_WING = 16,
85
- // Kite
86
- MAV_TYPE_KITE = 17,
87
- // Onboard companion controller
88
- MAV_TYPE_ONBOARD_CONTROLLER = 18,
89
- // Two-rotor Tailsitter VTOL that additionally uses control surfaces in vertical operation. Note, value previously named MAV_TYPE_VTOL_DUOROTOR.
90
- MAV_TYPE_VTOL_TAILSITTER_DUOROTOR = 19,
91
- // Quad-rotor Tailsitter VTOL using a V-shaped quad config in vertical operation. Note: value previously named MAV_TYPE_VTOL_QUADROTOR.
92
- MAV_TYPE_VTOL_TAILSITTER_QUADROTOR = 20,
93
- // Tiltrotor VTOL. Fuselage and wings stay (nominally) horizontal in all flight phases. It able to tilt (some) rotors to provide thrust in cruise flight.
94
- MAV_TYPE_VTOL_TILTROTOR = 21,
95
- // VTOL with separate fixed rotors for hover and cruise flight. Fuselage and wings stay (nominally) horizontal in all flight phases.
96
- MAV_TYPE_VTOL_FIXEDROTOR = 22,
97
- // 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.
98
- MAV_TYPE_VTOL_TAILSITTER = 23,
99
- // Tiltwing VTOL. Fuselage stays horizontal in all flight phases. The whole wing, along with any attached engine, can tilt between vertical and horizontal mode.
100
- MAV_TYPE_VTOL_TILTWING = 24,
101
- // VTOL reserved 5
102
- MAV_TYPE_VTOL_RESERVED5 = 25,
103
- // Gimbal
104
- MAV_TYPE_GIMBAL = 26,
105
- // ADSB system
106
- MAV_TYPE_ADSB = 27,
107
- // Steerable, nonrigid airfoil
108
- MAV_TYPE_PARAFOIL = 28,
109
- // Dodecarotor
110
- MAV_TYPE_DODECAROTOR = 29,
111
- // Camera
112
- MAV_TYPE_CAMERA = 30,
113
- // Charging station
114
- MAV_TYPE_CHARGING_STATION = 31,
115
- // FLARM collision avoidance system
116
- MAV_TYPE_FLARM = 32,
117
- // Servo
118
- MAV_TYPE_SERVO = 33,
119
- // Open Drone ID. See https://mavlink.io/en/services/opendroneid.html.
120
- MAV_TYPE_ODID = 34,
121
- // Decarotor
122
- MAV_TYPE_DECAROTOR = 35,
123
- // Battery
124
- MAV_TYPE_BATTERY = 36,
125
- // Parachute
126
- MAV_TYPE_PARACHUTE = 37,
127
- // Log
128
- MAV_TYPE_LOG = 38,
129
- // OSD
130
- MAV_TYPE_OSD = 39,
131
- // IMU
132
- MAV_TYPE_IMU = 40,
133
- // GPS
134
- MAV_TYPE_GPS = 41,
135
- // Winch
136
- MAV_TYPE_WINCH = 42,
137
- // Generic multirotor that does not fit into a specific type or whose type is unknown
138
- MAV_TYPE_GENERIC_MULTIROTOR = 43,
139
- // 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).
140
- MAV_TYPE_ILLUMINATOR = 44,
141
- // Orbiter spacecraft. Includes satellites orbiting terrestrial and extra-terrestrial bodies. Follows NASA Spacecraft Classification.
142
- MAV_TYPE_SPACECRAFT_ORBITER = 45,
143
- // A generic four-legged ground vehicle (e.g., a robot dog).
144
- MAV_TYPE_GROUND_QUADRUPED = 46,
145
- // 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
146
- MAV_TYPE_VTOL_GYRODYNE = 47,
147
- // Gripper
148
- MAV_TYPE_GRIPPER = 48,
149
- }
150
-
151
- // These flags encode the MAV mode, see MAV_MODE enum for useful combinations.
152
- export enum MAV_MODE_FLAGEnum {
153
- // 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.
154
- MAV_MODE_FLAG_SAFETY_ARMED = 128,
155
- // 0b01000000 remote control input is enabled.
156
- MAV_MODE_FLAG_MANUAL_INPUT_ENABLED = 64,
157
- // 0b00100000 hardware in the loop simulation. All motors / actuators are blocked, but internal software is full operational.
158
- MAV_MODE_FLAG_HIL_ENABLED = 32,
159
- // 0b00010000 system stabilizes electronically its attitude (and optionally position). It needs however further control inputs to move around.
160
- MAV_MODE_FLAG_STABILIZE_ENABLED = 16,
161
- // 0b00001000 guided mode enabled, system flies waypoints / mission items.
162
- MAV_MODE_FLAG_GUIDED_ENABLED = 8,
163
- // 0b00000100 autonomous mode enabled, system finds its own goal positions. Guided flag can be set or not, depends on the actual implementation.
164
- MAV_MODE_FLAG_AUTO_ENABLED = 4,
165
- // 0b00000010 system has a test mode enabled. This flag is intended for temporary system tests and should not be used for stable implementations.
166
- MAV_MODE_FLAG_TEST_ENABLED = 2,
167
- // 0b00000001 system-specific custom mode is enabled. When using this flag to enable a custom mode all other flags should be ignored.
168
- MAV_MODE_FLAG_CUSTOM_MODE_ENABLED = 1,
169
- }
170
-
171
- // 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.
172
- export enum MAV_MODE_FLAG_DECODE_POSITIONEnum {
173
- // First bit: 10000000
174
- MAV_MODE_FLAG_DECODE_POSITION_SAFETY = 128,
175
- // Second bit: 01000000
176
- MAV_MODE_FLAG_DECODE_POSITION_MANUAL = 64,
177
- // Third bit: 00100000
178
- MAV_MODE_FLAG_DECODE_POSITION_HIL = 32,
179
- // Fourth bit: 00010000
180
- MAV_MODE_FLAG_DECODE_POSITION_STABILIZE = 16,
181
- // Fifth bit: 00001000
182
- MAV_MODE_FLAG_DECODE_POSITION_GUIDED = 8,
183
- // Sixth bit: 00000100
184
- MAV_MODE_FLAG_DECODE_POSITION_AUTO = 4,
185
- // Seventh bit: 00000010
186
- MAV_MODE_FLAG_DECODE_POSITION_TEST = 2,
187
- // Eighth bit: 00000001
188
- MAV_MODE_FLAG_DECODE_POSITION_CUSTOM_MODE = 1,
189
- }
190
-
191
- export enum MAV_STATEEnum {
192
- // Uninitialized system, state is unknown.
193
- MAV_STATE_UNINIT = 0,
194
- // System is booting up.
195
- MAV_STATE_BOOT = 1,
196
- // System is calibrating and not flight-ready.
197
- MAV_STATE_CALIBRATING = 2,
198
- // System is grounded and on standby. It can be launched any time.
199
- MAV_STATE_STANDBY = 3,
200
- // System is active and might be already airborne. Motors are engaged.
201
- MAV_STATE_ACTIVE = 4,
202
- // System is in a non-normal flight mode (failsafe). It can however still navigate.
203
- MAV_STATE_CRITICAL = 5,
204
- // 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.
205
- MAV_STATE_EMERGENCY = 6,
206
- // System just initialized its power-down sequence, will shut down now.
207
- MAV_STATE_POWEROFF = 7,
208
- // System is terminating itself (failsafe or commanded).
209
- MAV_STATE_FLIGHT_TERMINATION = 8,
210
- }
211
-
212
- // Legacy component ID values for particular types of hardware/software that might make up a MAVLink system (autopilot, cameras, servos, avoidance systems etc.).
213
- // Components are not required or expected to use IDs with names that correspond to their type or function, but may choose to do so.
214
- // 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.
215
- // System integration will still need to ensure that all components have unique IDs.
216
- // Component IDs are used for addressing messages to a particular component within a system.
217
- // 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).
218
- // Historically component ID were also used for identifying the type of component.
219
- // New code must not use component IDs to infer the component type, but instead check the MAV_TYPE in the HEARTBEAT message!
220
- export enum MAV_COMPONENTEnum {
221
- // 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.
222
- MAV_COMP_ID_ALL = 0,
223
- // System flight controller component ("autopilot"). Only one autopilot is expected in a particular system.
224
- MAV_COMP_ID_AUTOPILOT1 = 1,
225
- // 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.
226
- MAV_COMP_ID_USER1 = 25,
227
- // 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.
228
- MAV_COMP_ID_USER2 = 26,
229
- // 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.
230
- MAV_COMP_ID_USER3 = 27,
231
- // 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.
232
- MAV_COMP_ID_USER4 = 28,
233
- // 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.
234
- MAV_COMP_ID_USER5 = 29,
235
- // 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.
236
- MAV_COMP_ID_USER6 = 30,
237
- // 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.
238
- MAV_COMP_ID_USER7 = 31,
239
- // 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.
240
- MAV_COMP_ID_USER8 = 32,
241
- // 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.
242
- MAV_COMP_ID_USER9 = 33,
243
- // 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.
244
- MAV_COMP_ID_USER10 = 34,
245
- // 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.
246
- MAV_COMP_ID_USER11 = 35,
247
- // 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.
248
- MAV_COMP_ID_USER12 = 36,
249
- // 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.
250
- MAV_COMP_ID_USER13 = 37,
251
- // 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.
252
- MAV_COMP_ID_USER14 = 38,
253
- // 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.
254
- MAV_COMP_ID_USER15 = 39,
255
- // 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.
256
- MAV_COMP_ID_USER16 = 40,
257
- // 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.
258
- MAV_COMP_ID_USER17 = 41,
259
- // 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.
260
- MAV_COMP_ID_USER18 = 42,
261
- // 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.
262
- MAV_COMP_ID_USER19 = 43,
263
- // 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.
264
- MAV_COMP_ID_USER20 = 44,
265
- // 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.
266
- MAV_COMP_ID_USER21 = 45,
267
- // 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.
268
- MAV_COMP_ID_USER22 = 46,
269
- // 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.
270
- MAV_COMP_ID_USER23 = 47,
271
- // 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.
272
- MAV_COMP_ID_USER24 = 48,
273
- // 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.
274
- MAV_COMP_ID_USER25 = 49,
275
- // 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.
276
- MAV_COMP_ID_USER26 = 50,
277
- // 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.
278
- MAV_COMP_ID_USER27 = 51,
279
- // 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.
280
- MAV_COMP_ID_USER28 = 52,
281
- // 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.
282
- MAV_COMP_ID_USER29 = 53,
283
- // 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.
284
- MAV_COMP_ID_USER30 = 54,
285
- // 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.
286
- MAV_COMP_ID_USER31 = 55,
287
- // 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.
288
- MAV_COMP_ID_USER32 = 56,
289
- // 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.
290
- MAV_COMP_ID_USER33 = 57,
291
- // 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.
292
- MAV_COMP_ID_USER34 = 58,
293
- // 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.
294
- MAV_COMP_ID_USER35 = 59,
295
- // 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.
296
- MAV_COMP_ID_USER36 = 60,
297
- // 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.
298
- MAV_COMP_ID_USER37 = 61,
299
- // 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.
300
- MAV_COMP_ID_USER38 = 62,
301
- // 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.
302
- MAV_COMP_ID_USER39 = 63,
303
- // 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.
304
- MAV_COMP_ID_USER40 = 64,
305
- // 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.
306
- MAV_COMP_ID_USER41 = 65,
307
- // 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.
308
- MAV_COMP_ID_USER42 = 66,
309
- // 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.
310
- MAV_COMP_ID_USER43 = 67,
311
- // Telemetry radio (e.g. SiK radio, or other component that emits RADIO_STATUS messages).
312
- MAV_COMP_ID_TELEMETRY_RADIO = 68,
313
- // 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.
314
- MAV_COMP_ID_USER45 = 69,
315
- // 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.
316
- MAV_COMP_ID_USER46 = 70,
317
- // 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.
318
- MAV_COMP_ID_USER47 = 71,
319
- // 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.
320
- MAV_COMP_ID_USER48 = 72,
321
- // 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.
322
- MAV_COMP_ID_USER49 = 73,
323
- // 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.
324
- MAV_COMP_ID_USER50 = 74,
325
- // 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.
326
- MAV_COMP_ID_USER51 = 75,
327
- // 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.
328
- MAV_COMP_ID_USER52 = 76,
329
- // 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.
330
- MAV_COMP_ID_USER53 = 77,
331
- // 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.
332
- MAV_COMP_ID_USER54 = 78,
333
- // 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.
334
- MAV_COMP_ID_USER55 = 79,
335
- // 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.
336
- MAV_COMP_ID_USER56 = 80,
337
- // 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.
338
- MAV_COMP_ID_USER57 = 81,
339
- // 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.
340
- MAV_COMP_ID_USER58 = 82,
341
- // 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.
342
- MAV_COMP_ID_USER59 = 83,
343
- // 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.
344
- MAV_COMP_ID_USER60 = 84,
345
- // 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.
346
- MAV_COMP_ID_USER61 = 85,
347
- // 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.
348
- MAV_COMP_ID_USER62 = 86,
349
- // 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.
350
- MAV_COMP_ID_USER63 = 87,
351
- // 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.
352
- MAV_COMP_ID_USER64 = 88,
353
- // 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.
354
- MAV_COMP_ID_USER65 = 89,
355
- // 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.
356
- MAV_COMP_ID_USER66 = 90,
357
- // 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.
358
- MAV_COMP_ID_USER67 = 91,
359
- // 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.
360
- MAV_COMP_ID_USER68 = 92,
361
- // 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.
362
- MAV_COMP_ID_USER69 = 93,
363
- // 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.
364
- MAV_COMP_ID_USER70 = 94,
365
- // 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.
366
- MAV_COMP_ID_USER71 = 95,
367
- // 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.
368
- MAV_COMP_ID_USER72 = 96,
369
- // 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.
370
- MAV_COMP_ID_USER73 = 97,
371
- // 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.
372
- MAV_COMP_ID_USER74 = 98,
373
- // 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.
374
- MAV_COMP_ID_USER75 = 99,
375
- // Camera #1.
376
- MAV_COMP_ID_CAMERA = 100,
377
- // Camera #2.
378
- MAV_COMP_ID_CAMERA2 = 101,
379
- // Camera #3.
380
- MAV_COMP_ID_CAMERA3 = 102,
381
- // Camera #4.
382
- MAV_COMP_ID_CAMERA4 = 103,
383
- // Camera #5.
384
- MAV_COMP_ID_CAMERA5 = 104,
385
- // Camera #6.
386
- MAV_COMP_ID_CAMERA6 = 105,
387
- // Servo #1.
388
- MAV_COMP_ID_SERVO1 = 140,
389
- // Servo #2.
390
- MAV_COMP_ID_SERVO2 = 141,
391
- // Servo #3.
392
- MAV_COMP_ID_SERVO3 = 142,
393
- // Servo #4.
394
- MAV_COMP_ID_SERVO4 = 143,
395
- // Servo #5.
396
- MAV_COMP_ID_SERVO5 = 144,
397
- // Servo #6.
398
- MAV_COMP_ID_SERVO6 = 145,
399
- // Servo #7.
400
- MAV_COMP_ID_SERVO7 = 146,
401
- // Servo #8.
402
- MAV_COMP_ID_SERVO8 = 147,
403
- // Servo #9.
404
- MAV_COMP_ID_SERVO9 = 148,
405
- // Servo #10.
406
- MAV_COMP_ID_SERVO10 = 149,
407
- // Servo #11.
408
- MAV_COMP_ID_SERVO11 = 150,
409
- // Servo #12.
410
- MAV_COMP_ID_SERVO12 = 151,
411
- // Servo #13.
412
- MAV_COMP_ID_SERVO13 = 152,
413
- // Servo #14.
414
- MAV_COMP_ID_SERVO14 = 153,
415
- // Gimbal #1.
416
- MAV_COMP_ID_GIMBAL = 154,
417
- // Logging component.
418
- MAV_COMP_ID_LOG = 155,
419
- // Automatic Dependent Surveillance-Broadcast (ADS-B) component.
420
- MAV_COMP_ID_ADSB = 156,
421
- // On Screen Display (OSD) devices for video links.
422
- MAV_COMP_ID_OSD = 157,
423
- // Generic autopilot peripheral component ID. Meant for devices that do not implement the parameter microservice.
424
- MAV_COMP_ID_PERIPHERAL = 158,
425
- // Gimbal ID for QX1.
426
- MAV_COMP_ID_QX1_GIMBAL = 159,
427
- // FLARM collision alert component.
428
- MAV_COMP_ID_FLARM = 160,
429
- // Parachute component.
430
- MAV_COMP_ID_PARACHUTE = 161,
431
- // Winch component.
432
- MAV_COMP_ID_WINCH = 169,
433
- // Gimbal #2.
434
- MAV_COMP_ID_GIMBAL2 = 171,
435
- // Gimbal #3.
436
- MAV_COMP_ID_GIMBAL3 = 172,
437
- // Gimbal #4
438
- MAV_COMP_ID_GIMBAL4 = 173,
439
- // Gimbal #5.
440
- MAV_COMP_ID_GIMBAL5 = 174,
441
- // Gimbal #6.
442
- MAV_COMP_ID_GIMBAL6 = 175,
443
- // Battery #1.
444
- MAV_COMP_ID_BATTERY = 180,
445
- // Battery #2.
446
- MAV_COMP_ID_BATTERY2 = 181,
447
- // CAN over MAVLink client.
448
- MAV_COMP_ID_MAVCAN = 189,
449
- // Component that can generate/supply a mission flight plan (e.g. GCS or developer API).
450
- MAV_COMP_ID_MISSIONPLANNER = 190,
451
- // 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't directly speak mavlink and so on.
452
- MAV_COMP_ID_ONBOARD_COMPUTER = 191,
453
- // 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't directly speak mavlink and so on.
454
- MAV_COMP_ID_ONBOARD_COMPUTER2 = 192,
455
- // 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't directly speak mavlink and so on.
456
- MAV_COMP_ID_ONBOARD_COMPUTER3 = 193,
457
- // 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't directly speak mavlink and so on.
458
- MAV_COMP_ID_ONBOARD_COMPUTER4 = 194,
459
- // Component that finds an optimal path between points based on a certain constraint (e.g. minimum snap, shortest path, cost, etc.).
460
- MAV_COMP_ID_PATHPLANNER = 195,
461
- // Component that plans a collision free path between two points.
462
- MAV_COMP_ID_OBSTACLE_AVOIDANCE = 196,
463
- // Component that provides position estimates using VIO techniques.
464
- MAV_COMP_ID_VISUAL_INERTIAL_ODOMETRY = 197,
465
- // Component that manages pairing of vehicle and GCS.
466
- MAV_COMP_ID_PAIRING_MANAGER = 198,
467
- // Inertial Measurement Unit (IMU) #1.
468
- MAV_COMP_ID_IMU = 200,
469
- // Inertial Measurement Unit (IMU) #2.
470
- MAV_COMP_ID_IMU_2 = 201,
471
- // Inertial Measurement Unit (IMU) #3.
472
- MAV_COMP_ID_IMU_3 = 202,
473
- // GPS #1.
474
- MAV_COMP_ID_GPS = 220,
475
- // GPS #2.
476
- MAV_COMP_ID_GPS2 = 221,
477
- // Open Drone ID transmitter/receiver (Bluetooth/WiFi/Internet).
478
- MAV_COMP_ID_ODID_TXRX_1 = 236,
479
- // Open Drone ID transmitter/receiver (Bluetooth/WiFi/Internet).
480
- MAV_COMP_ID_ODID_TXRX_2 = 237,
481
- // Open Drone ID transmitter/receiver (Bluetooth/WiFi/Internet).
482
- MAV_COMP_ID_ODID_TXRX_3 = 238,
483
- // Component to bridge MAVLink to UDP (i.e. from a UART).
484
- MAV_COMP_ID_UDP_BRIDGE = 240,
485
- // Component to bridge to UART (i.e. from UDP).
486
- MAV_COMP_ID_UART_BRIDGE = 241,
487
- // Component handling TUNNEL messages (e.g. vendor specific GUI of a component).
488
- MAV_COMP_ID_TUNNEL_NODE = 242,
489
- // Illuminator
490
- MAV_COMP_ID_ILLUMINATOR = 243,
491
- // Deprecated, don't use. Component for handling system messages (e.g. to ARM, takeoff, etc.).
492
- MAV_COMP_ID_SYSTEM_CONTROL = 250,
493
- }
494
-
495
- // Enum used to indicate true or false (also: success or failure, enabled or disabled, active or inactive).
496
- export enum BOOLEnum {
497
- // False.
498
- BOOL_FALSE = 0,
499
- // True.
500
- BOOL_TRUE = 1,
501
- }
502
-
503
- // These values define the type of firmware release. These values indicate the first version or release of this type. For example the first alpha release would be 64, the second would be 65.
504
- export enum FIRMWARE_VERSION_TYPEEnum {
505
- // development release
506
- FIRMWARE_VERSION_TYPE_DEV = 0,
507
- // alpha release
508
- FIRMWARE_VERSION_TYPE_ALPHA = 64,
509
- // beta release
510
- FIRMWARE_VERSION_TYPE_BETA = 128,
511
- // release candidate
512
- FIRMWARE_VERSION_TYPE_RC = 192,
513
- // official stable release
514
- FIRMWARE_VERSION_TYPE_OFFICIAL = 255,
515
- }
516
-
517
- // Flags to report failure cases over the high latency telemetry.
518
- export enum HL_FAILURE_FLAGEnum {
519
- // GPS failure.
520
- HL_FAILURE_FLAG_GPS = 1,
521
- // Differential pressure sensor failure.
522
- HL_FAILURE_FLAG_DIFFERENTIAL_PRESSURE = 2,
523
- // Absolute pressure sensor failure.
524
- HL_FAILURE_FLAG_ABSOLUTE_PRESSURE = 4,
525
- // Accelerometer sensor failure.
526
- HL_FAILURE_FLAG_3D_ACCEL = 8,
527
- // Gyroscope sensor failure.
528
- HL_FAILURE_FLAG_3D_GYRO = 16,
529
- // Magnetometer sensor failure.
530
- HL_FAILURE_FLAG_3D_MAG = 32,
531
- // Terrain subsystem failure.
532
- HL_FAILURE_FLAG_TERRAIN = 64,
533
- // Battery failure/critical low battery.
534
- HL_FAILURE_FLAG_BATTERY = 128,
535
- // RC receiver failure/no RC connection.
536
- HL_FAILURE_FLAG_RC_RECEIVER = 256,
537
- // Offboard link failure.
538
- HL_FAILURE_FLAG_OFFBOARD_LINK = 512,
539
- // Engine failure.
540
- HL_FAILURE_FLAG_ENGINE = 1024,
541
- // Geofence violation.
542
- HL_FAILURE_FLAG_GEOFENCE = 2048,
543
- // Estimator failure, for example measurement rejection or large variances.
544
- HL_FAILURE_FLAG_ESTIMATOR = 4096,
545
- // Mission failure.
546
- HL_FAILURE_FLAG_MISSION = 8192,
547
- }
548
-
549
- // Actions that may be specified in MAV_CMD_OVERRIDE_GOTO to override mission execution.
550
- export enum MAV_GOTOEnum {
551
- // Hold at the current position.
552
- MAV_GOTO_DO_HOLD = 0,
553
- // Continue with the next item in mission execution.
554
- MAV_GOTO_DO_CONTINUE = 1,
555
- // Hold at the current position of the system
556
- MAV_GOTO_HOLD_AT_CURRENT_POSITION = 2,
557
- // Hold at the position specified in the parameters of the DO_HOLD action
558
- MAV_GOTO_HOLD_AT_SPECIFIED_POSITION = 3,
559
- }
560
-
561
- // Predefined OR-combined MAV_MODE_FLAG values. These can simplify using the flags when setting modes. Note that manual input is enabled in all modes as a safety override.
562
- export enum MAV_MODEEnum {
563
- // System is not ready to fly, booting, calibrating, etc. No flag is set.
564
- MAV_MODE_PREFLIGHT = 0,
565
- // System is allowed to be active, under assisted RC control (MAV_MODE_FLAG_SAFETY_ARMED, MAV_MODE_FLAG_STABILIZE_ENABLED)
566
- MAV_MODE_STABILIZE_DISARMED = 80,
567
- // System is allowed to be active, under assisted RC control (MAV_MODE_FLAG_SAFETY_ARMED, MAV_MODE_FLAG_MANUAL_INPUT_ENABLED, MAV_MODE_FLAG_STABILIZE_ENABLED)
568
- MAV_MODE_STABILIZE_ARMED = 208,
569
- // System is allowed to be active, under manual (RC) control, no stabilization (MAV_MODE_FLAG_MANUAL_INPUT_ENABLED)
570
- MAV_MODE_MANUAL_DISARMED = 64,
571
- // System is allowed to be active, under manual (RC) control, no stabilization (MAV_MODE_FLAG_SAFETY_ARMED, MAV_MODE_FLAG_MANUAL_INPUT_ENABLED)
572
- MAV_MODE_MANUAL_ARMED = 192,
573
- // System is allowed to be active, under autonomous control, manual setpoint (MAV_MODE_FLAG_SAFETY_ARMED, MAV_MODE_FLAG_STABILIZE_ENABLED, MAV_MODE_FLAG_GUIDED_ENABLED)
574
- MAV_MODE_GUIDED_DISARMED = 88,
575
- // System is allowed to be active, under autonomous control, manual setpoint (MAV_MODE_FLAG_SAFETY_ARMED, MAV_MODE_FLAG_MANUAL_INPUT_ENABLED, MAV_MODE_FLAG_STABILIZE_ENABLED, MAV_MODE_FLAG_GUIDED_ENABLED)
576
- MAV_MODE_GUIDED_ARMED = 216,
577
- // System is allowed to be active, under autonomous control and navigation (the trajectory is decided onboard and not pre-programmed by waypoints). (MAV_MODE_FLAG_SAFETY_ARMED, MAV_MODE_FLAG_STABILIZE_ENABLED, MAV_MODE_FLAG_GUIDED_ENABLED, MAV_MODE_FLAG_AUTO_ENABLED).
578
- MAV_MODE_AUTO_DISARMED = 92,
579
- // System is allowed to be active, under autonomous control and navigation (the trajectory is decided onboard and not pre-programmed by waypoints). (MAV_MODE_FLAG_SAFETY_ARMED, MAV_MODE_FLAG_MANUAL_INPUT_ENABLED, MAV_MODE_FLAG_STABILIZE_ENABLED, MAV_MODE_FLAG_GUIDED_ENABLED,MAV_MODE_FLAG_AUTO_ENABLED).
580
- MAV_MODE_AUTO_ARMED = 220,
581
- // UNDEFINED mode. This solely depends on the autopilot - use with caution, intended for developers only. (MAV_MODE_FLAG_MANUAL_INPUT_ENABLED, MAV_MODE_FLAG_TEST_ENABLED).
582
- MAV_MODE_TEST_DISARMED = 66,
583
- // UNDEFINED mode. This solely depends on the autopilot - use with caution, intended for developers only (MAV_MODE_FLAG_SAFETY_ARMED, MAV_MODE_FLAG_MANUAL_INPUT_ENABLED, MAV_MODE_FLAG_TEST_ENABLED)
584
- MAV_MODE_TEST_ARMED = 194,
585
- }
586
-
587
- // These encode the sensors whose status is sent as part of the SYS_STATUS message.
588
- export enum MAV_SYS_STATUS_SENSOREnum {
589
- // 0x01 3D gyro
590
- MAV_SYS_STATUS_SENSOR_3D_GYRO = 1,
591
- // 0x02 3D accelerometer
592
- MAV_SYS_STATUS_SENSOR_3D_ACCEL = 2,
593
- // 0x04 3D magnetometer
594
- MAV_SYS_STATUS_SENSOR_3D_MAG = 4,
595
- // 0x08 absolute pressure
596
- MAV_SYS_STATUS_SENSOR_ABSOLUTE_PRESSURE = 8,
597
- // 0x10 differential pressure
598
- MAV_SYS_STATUS_SENSOR_DIFFERENTIAL_PRESSURE = 16,
599
- // 0x20 GPS
600
- MAV_SYS_STATUS_SENSOR_GPS = 32,
601
- // 0x40 optical flow
602
- MAV_SYS_STATUS_SENSOR_OPTICAL_FLOW = 64,
603
- // 0x80 computer vision position
604
- MAV_SYS_STATUS_SENSOR_VISION_POSITION = 128,
605
- // 0x100 laser based position
606
- MAV_SYS_STATUS_SENSOR_LASER_POSITION = 256,
607
- // 0x200 external ground truth (Vicon or Leica)
608
- MAV_SYS_STATUS_SENSOR_EXTERNAL_GROUND_TRUTH = 512,
609
- // 0x400 3D angular rate control
610
- MAV_SYS_STATUS_SENSOR_ANGULAR_RATE_CONTROL = 1024,
611
- // 0x800 attitude stabilization
612
- MAV_SYS_STATUS_SENSOR_ATTITUDE_STABILIZATION = 2048,
613
- // 0x1000 yaw position
614
- MAV_SYS_STATUS_SENSOR_YAW_POSITION = 4096,
615
- // 0x2000 z/altitude control
616
- MAV_SYS_STATUS_SENSOR_Z_ALTITUDE_CONTROL = 8192,
617
- // 0x4000 x/y position control
618
- MAV_SYS_STATUS_SENSOR_XY_POSITION_CONTROL = 16384,
619
- // 0x8000 motor outputs / control
620
- MAV_SYS_STATUS_SENSOR_MOTOR_OUTPUTS = 32768,
621
- // 0x10000 RC receiver
622
- MAV_SYS_STATUS_SENSOR_RC_RECEIVER = 65536,
623
- // 0x20000 2nd 3D gyro
624
- MAV_SYS_STATUS_SENSOR_3D_GYRO2 = 131072,
625
- // 0x40000 2nd 3D accelerometer
626
- MAV_SYS_STATUS_SENSOR_3D_ACCEL2 = 262144,
627
- // 0x80000 2nd 3D magnetometer
628
- MAV_SYS_STATUS_SENSOR_3D_MAG2 = 524288,
629
- // 0x100000 geofence
630
- MAV_SYS_STATUS_GEOFENCE = 1048576,
631
- // 0x200000 AHRS subsystem health
632
- MAV_SYS_STATUS_AHRS = 2097152,
633
- // 0x400000 Terrain subsystem health
634
- MAV_SYS_STATUS_TERRAIN = 4194304,
635
- // 0x800000 Motors are reversed
636
- MAV_SYS_STATUS_REVERSE_MOTOR = 8388608,
637
- // 0x1000000 Logging
638
- MAV_SYS_STATUS_LOGGING = 16777216,
639
- // 0x2000000 Battery
640
- MAV_SYS_STATUS_SENSOR_BATTERY = 33554432,
641
- // 0x4000000 Proximity
642
- MAV_SYS_STATUS_SENSOR_PROXIMITY = 67108864,
643
- // 0x8000000 Satellite Communication
644
- MAV_SYS_STATUS_SENSOR_SATCOM = 134217728,
645
- // 0x10000000 pre-arm check status. Always healthy when armed
646
- MAV_SYS_STATUS_PREARM_CHECK = 268435456,
647
- // 0x20000000 Avoidance/collision prevention
648
- MAV_SYS_STATUS_OBSTACLE_AVOIDANCE = 536870912,
649
- // 0x40000000 propulsion (actuator, esc, motor or propellor)
650
- MAV_SYS_STATUS_SENSOR_PROPULSION = 1073741824,
651
- // 0x80000000 Extended bit-field are used for further sensor status bits (needs to be set in onboard_control_sensors_present only)
652
- MAV_SYS_STATUS_EXTENSION_USED = 2147483648,
653
- }
654
-
655
- // These encode the sensors whose status is sent as part of the SYS_STATUS message in the extended fields.
656
- export enum MAV_SYS_STATUS_SENSOR_EXTENDEDEnum {
657
- // 0x01 Recovery system (parachute, balloon, retracts etc)
658
- MAV_SYS_STATUS_RECOVERY_SYSTEM = 1,
659
- }
660
-
661
- // Coordinate frames used by MAVLink. Not all frames are supported by all commands, messages, or vehicles.
662
- // Global frames use the following naming conventions:
663
- // - "GLOBAL": Global coordinate frame with WGS84 latitude/longitude and altitude positive over mean sea level (MSL) by default.
664
- // The following modifiers may be used with "GLOBAL":
665
- // - "RELATIVE_ALT": Altitude is relative to the vehicle home position rather than MSL.
666
- // - "TERRAIN_ALT": Altitude is relative to ground level rather than MSL.
667
- // - "INT": Latitude/longitude (in degrees) are scaled by multiplying by 1E7.
668
- // Local frames use the following naming conventions:
669
- // - "LOCAL": Origin of local frame is fixed relative to earth. Unless otherwise specified this origin is the origin of the vehicle position-estimator ("EKF").
670
- // - "BODY": Origin of local frame travels with the vehicle. NOTE, "BODY" does NOT indicate alignment of frame axis with vehicle attitude.
671
- // - "OFFSET": Deprecated synonym for "BODY" (origin travels with the vehicle). Not to be used for new frames.
672
- // Some deprecated frames do not follow these conventions (e.g. MAV_FRAME_BODY_NED and MAV_FRAME_BODY_OFFSET_NED).
673
- export enum MAV_FRAMEEnum {
674
- // Global (WGS84) coordinate frame + altitude relative to mean sea level (MSL).
675
- MAV_FRAME_GLOBAL = 0,
676
- // NED local tangent frame (x: North, y: East, z: Down) with origin fixed relative to earth.
677
- MAV_FRAME_LOCAL_NED = 1,
678
- // NOT a coordinate frame, indicates a mission command.
679
- MAV_FRAME_MISSION = 2,
680
- // Global (WGS84) coordinate frame + altitude relative to the home position.
681
- MAV_FRAME_GLOBAL_RELATIVE_ALT = 3,
682
- // ENU local tangent frame (x: East, y: North, z: Up) with origin fixed relative to earth.
683
- MAV_FRAME_LOCAL_ENU = 4,
684
- // Global (WGS84) coordinate frame (scaled) + altitude relative to mean sea level (MSL).
685
- MAV_FRAME_GLOBAL_INT = 5,
686
- // Global (WGS84) coordinate frame (scaled) + altitude relative to the home position.
687
- MAV_FRAME_GLOBAL_RELATIVE_ALT_INT = 6,
688
- // NED local tangent frame (x: North, y: East, z: Down) with origin that travels with the vehicle.
689
- MAV_FRAME_LOCAL_OFFSET_NED = 7,
690
- // Same as MAV_FRAME_LOCAL_NED when used to represent position values. Same as MAV_FRAME_BODY_FRD when used with velocity/acceleration values.
691
- MAV_FRAME_BODY_NED = 8,
692
- // This is the same as MAV_FRAME_BODY_FRD.
693
- MAV_FRAME_BODY_OFFSET_NED = 9,
694
- // Global (WGS84) coordinate frame with AGL altitude (altitude at ground level).
695
- MAV_FRAME_GLOBAL_TERRAIN_ALT = 10,
696
- // Global (WGS84) coordinate frame (scaled) with AGL altitude (altitude at ground level).
697
- MAV_FRAME_GLOBAL_TERRAIN_ALT_INT = 11,
698
- // FRD local frame aligned to the vehicle's attitude (x: Forward, y: Right, z: Down) with an origin that travels with vehicle.
699
- MAV_FRAME_BODY_FRD = 12,
700
- // MAV_FRAME_BODY_FLU - Body fixed frame of reference, Z-up (x: Forward, y: Left, z: Up).
701
- MAV_FRAME_RESERVED_13 = 13,
702
- // MAV_FRAME_MOCAP_NED - Odometry local coordinate frame of data given by a motion capture system, Z-down (x: North, y: East, z: Down).
703
- MAV_FRAME_RESERVED_14 = 14,
704
- // MAV_FRAME_MOCAP_ENU - Odometry local coordinate frame of data given by a motion capture system, Z-up (x: East, y: North, z: Up).
705
- MAV_FRAME_RESERVED_15 = 15,
706
- // MAV_FRAME_VISION_NED - Odometry local coordinate frame of data given by a vision estimation system, Z-down (x: North, y: East, z: Down).
707
- MAV_FRAME_RESERVED_16 = 16,
708
- // MAV_FRAME_VISION_ENU - Odometry local coordinate frame of data given by a vision estimation system, Z-up (x: East, y: North, z: Up).
709
- MAV_FRAME_RESERVED_17 = 17,
710
- // MAV_FRAME_ESTIM_NED - Odometry local coordinate frame of data given by an estimator running onboard the vehicle, Z-down (x: North, y: East, z: Down).
711
- MAV_FRAME_RESERVED_18 = 18,
712
- // MAV_FRAME_ESTIM_ENU - Odometry local coordinate frame of data given by an estimator running onboard the vehicle, Z-up (x: East, y: North, z: Up).
713
- MAV_FRAME_RESERVED_19 = 19,
714
- // FRD local tangent frame (x: Forward, y: Right, z: Down) with origin fixed relative to earth. The forward axis is aligned to the front of the vehicle in the horizontal plane.
715
- MAV_FRAME_LOCAL_FRD = 20,
716
- // FLU local tangent frame (x: Forward, y: Left, z: Up) with origin fixed relative to earth. The forward axis is aligned to the front of the vehicle in the horizontal plane.
717
- MAV_FRAME_LOCAL_FLU = 21,
718
- }
719
-
720
- export enum MAVLINK_DATA_STREAM_TYPEEnum {
721
- MAVLINK_DATA_STREAM_IMG_JPEG = 0,
722
- MAVLINK_DATA_STREAM_IMG_BMP = 1,
723
- MAVLINK_DATA_STREAM_IMG_RAW8U = 2,
724
- MAVLINK_DATA_STREAM_IMG_RAW32U = 3,
725
- MAVLINK_DATA_STREAM_IMG_PGM = 4,
726
- MAVLINK_DATA_STREAM_IMG_PNG = 5,
727
- }
728
-
729
- export enum FENCE_BREACHEnum {
730
- // No last fence breach
731
- FENCE_BREACH_NONE = 0,
732
- // Breached minimum altitude
733
- FENCE_BREACH_MINALT = 1,
734
- // Breached maximum altitude
735
- FENCE_BREACH_MAXALT = 2,
736
- // Breached fence boundary
737
- FENCE_BREACH_BOUNDARY = 3,
738
- }
739
-
740
- // Actions being taken to mitigate/prevent fence breach
741
- export enum FENCE_MITIGATEEnum {
742
- // Unknown
743
- FENCE_MITIGATE_UNKNOWN = 0,
744
- // No actions being taken
745
- FENCE_MITIGATE_NONE = 1,
746
- // Velocity limiting active to prevent breach
747
- FENCE_MITIGATE_VEL_LIMIT = 2,
748
- }
749
-
750
- // Fence types to enable or disable when using MAV_CMD_DO_FENCE_ENABLE.
751
- // Note that at least one of these flags must be set in MAV_CMD_DO_FENCE_ENABLE.param2.
752
- // If none are set, the flight stack will ignore the field and enable/disable its default set of fences (usually all of them).
753
- export enum FENCE_TYPEEnum {
754
- // Maximum altitude fence
755
- FENCE_TYPE_ALT_MAX = 1,
756
- // Circle fence
757
- FENCE_TYPE_CIRCLE = 2,
758
- // Polygon fence
759
- FENCE_TYPE_POLYGON = 4,
760
- // Minimum altitude fence
761
- FENCE_TYPE_ALT_MIN = 8,
762
- }
763
-
764
- // Enumeration of possible mount operation modes. This message is used by obsolete/deprecated gimbal messages.
765
- export enum MAV_MOUNT_MODEEnum {
766
- // Load and keep safe position (Roll,Pitch,Yaw) from permanent memory and stop stabilization
767
- MAV_MOUNT_MODE_RETRACT = 0,
768
- // Load and keep neutral position (Roll,Pitch,Yaw) from permanent memory.
769
- MAV_MOUNT_MODE_NEUTRAL = 1,
770
- // Load neutral position and start MAVLink Roll,Pitch,Yaw control with stabilization
771
- MAV_MOUNT_MODE_MAVLINK_TARGETING = 2,
772
- // Load neutral position and start RC Roll,Pitch,Yaw control with stabilization
773
- MAV_MOUNT_MODE_RC_TARGETING = 3,
774
- // Load neutral position and start to point to Lat,Lon,Alt
775
- MAV_MOUNT_MODE_GPS_POINT = 4,
776
- // Gimbal tracks system with specified system ID
777
- MAV_MOUNT_MODE_SYSID_TARGET = 5,
778
- // Gimbal tracks home position
779
- MAV_MOUNT_MODE_HOME_LOCATION = 6,
780
- }
781
-
782
- // Gimbal device (low level) capability flags (bitmap).
783
- export enum GIMBAL_DEVICE_CAP_FLAGSEnum {
784
- // Gimbal device supports a retracted position.
785
- GIMBAL_DEVICE_CAP_FLAGS_HAS_RETRACT = 1,
786
- // Gimbal device supports a horizontal, forward looking position, stabilized.
787
- GIMBAL_DEVICE_CAP_FLAGS_HAS_NEUTRAL = 2,
788
- // Gimbal device supports rotating around roll axis.
789
- GIMBAL_DEVICE_CAP_FLAGS_HAS_ROLL_AXIS = 4,
790
- // Gimbal device supports to follow a roll angle relative to the vehicle.
791
- GIMBAL_DEVICE_CAP_FLAGS_HAS_ROLL_FOLLOW = 8,
792
- // Gimbal device supports locking to a roll angle (generally that's the default with roll stabilized).
793
- GIMBAL_DEVICE_CAP_FLAGS_HAS_ROLL_LOCK = 16,
794
- // Gimbal device supports rotating around pitch axis.
795
- GIMBAL_DEVICE_CAP_FLAGS_HAS_PITCH_AXIS = 32,
796
- // Gimbal device supports to follow a pitch angle relative to the vehicle.
797
- GIMBAL_DEVICE_CAP_FLAGS_HAS_PITCH_FOLLOW = 64,
798
- // Gimbal device supports locking to a pitch angle (generally that's the default with pitch stabilized).
799
- GIMBAL_DEVICE_CAP_FLAGS_HAS_PITCH_LOCK = 128,
800
- // Gimbal device supports rotating around yaw axis.
801
- GIMBAL_DEVICE_CAP_FLAGS_HAS_YAW_AXIS = 256,
802
- // Gimbal device supports to follow a yaw angle relative to the vehicle (generally that's the default).
803
- GIMBAL_DEVICE_CAP_FLAGS_HAS_YAW_FOLLOW = 512,
804
- // Gimbal device supports locking to an absolute heading, i.e., yaw angle relative to North (earth frame, often this is an option available).
805
- GIMBAL_DEVICE_CAP_FLAGS_HAS_YAW_LOCK = 1024,
806
- // Gimbal device supports yawing/panning infinitely (e.g. using slip disk).
807
- GIMBAL_DEVICE_CAP_FLAGS_SUPPORTS_INFINITE_YAW = 2048,
808
- // Gimbal device supports yaw angles and angular velocities relative to North (earth frame). This usually requires support by an autopilot via AUTOPILOT_STATE_FOR_GIMBAL_DEVICE. Support can go on and off during runtime, which is reported by the flag GIMBAL_DEVICE_FLAGS_CAN_ACCEPT_YAW_IN_EARTH_FRAME.
809
- GIMBAL_DEVICE_CAP_FLAGS_SUPPORTS_YAW_IN_EARTH_FRAME = 4096,
810
- // Gimbal device supports radio control inputs as an alternative input for controlling the gimbal orientation.
811
- GIMBAL_DEVICE_CAP_FLAGS_HAS_RC_INPUTS = 8192,
812
- }
813
-
814
- // Gimbal manager high level capability flags (bitmap). The first 16 bits are identical to the GIMBAL_DEVICE_CAP_FLAGS. However, the gimbal manager does not need to copy the flags from the gimbal but can also enhance the capabilities and thus add flags.
815
- export enum GIMBAL_MANAGER_CAP_FLAGSEnum {
816
- // Based on GIMBAL_DEVICE_CAP_FLAGS_HAS_RETRACT.
817
- GIMBAL_MANAGER_CAP_FLAGS_HAS_RETRACT = 1,
818
- // Based on GIMBAL_DEVICE_CAP_FLAGS_HAS_NEUTRAL.
819
- GIMBAL_MANAGER_CAP_FLAGS_HAS_NEUTRAL = 2,
820
- // Based on GIMBAL_DEVICE_CAP_FLAGS_HAS_ROLL_AXIS.
821
- GIMBAL_MANAGER_CAP_FLAGS_HAS_ROLL_AXIS = 4,
822
- // Based on GIMBAL_DEVICE_CAP_FLAGS_HAS_ROLL_FOLLOW.
823
- GIMBAL_MANAGER_CAP_FLAGS_HAS_ROLL_FOLLOW = 8,
824
- // Based on GIMBAL_DEVICE_CAP_FLAGS_HAS_ROLL_LOCK.
825
- GIMBAL_MANAGER_CAP_FLAGS_HAS_ROLL_LOCK = 16,
826
- // Based on GIMBAL_DEVICE_CAP_FLAGS_HAS_PITCH_AXIS.
827
- GIMBAL_MANAGER_CAP_FLAGS_HAS_PITCH_AXIS = 32,
828
- // Based on GIMBAL_DEVICE_CAP_FLAGS_HAS_PITCH_FOLLOW.
829
- GIMBAL_MANAGER_CAP_FLAGS_HAS_PITCH_FOLLOW = 64,
830
- // Based on GIMBAL_DEVICE_CAP_FLAGS_HAS_PITCH_LOCK.
831
- GIMBAL_MANAGER_CAP_FLAGS_HAS_PITCH_LOCK = 128,
832
- // Based on GIMBAL_DEVICE_CAP_FLAGS_HAS_YAW_AXIS.
833
- GIMBAL_MANAGER_CAP_FLAGS_HAS_YAW_AXIS = 256,
834
- // Based on GIMBAL_DEVICE_CAP_FLAGS_HAS_YAW_FOLLOW.
835
- GIMBAL_MANAGER_CAP_FLAGS_HAS_YAW_FOLLOW = 512,
836
- // Based on GIMBAL_DEVICE_CAP_FLAGS_HAS_YAW_LOCK.
837
- GIMBAL_MANAGER_CAP_FLAGS_HAS_YAW_LOCK = 1024,
838
- // Based on GIMBAL_DEVICE_CAP_FLAGS_SUPPORTS_INFINITE_YAW.
839
- GIMBAL_MANAGER_CAP_FLAGS_SUPPORTS_INFINITE_YAW = 2048,
840
- // Based on GIMBAL_DEVICE_CAP_FLAGS_SUPPORTS_YAW_IN_EARTH_FRAME.
841
- GIMBAL_MANAGER_CAP_FLAGS_SUPPORTS_YAW_IN_EARTH_FRAME = 4096,
842
- // Based on GIMBAL_DEVICE_CAP_FLAGS_HAS_RC_INPUTS.
843
- GIMBAL_MANAGER_CAP_FLAGS_HAS_RC_INPUTS = 8192,
844
- // Gimbal manager supports to point to a local position.
845
- GIMBAL_MANAGER_CAP_FLAGS_CAN_POINT_LOCATION_LOCAL = 65536,
846
- // Gimbal manager supports to point to a global latitude, longitude, altitude position.
847
- GIMBAL_MANAGER_CAP_FLAGS_CAN_POINT_LOCATION_GLOBAL = 131072,
848
- }
849
-
850
- // Flags for gimbal device (lower level) operation.
851
- export enum GIMBAL_DEVICE_FLAGSEnum {
852
- // Set to retracted safe position (no stabilization), takes precedence over all other flags.
853
- GIMBAL_DEVICE_FLAGS_RETRACT = 1,
854
- // Set to neutral/default position, taking precedence over all other flags except RETRACT. Neutral is commonly forward-facing and horizontal (roll=pitch=yaw=0) but may be any orientation.
855
- GIMBAL_DEVICE_FLAGS_NEUTRAL = 2,
856
- // Lock roll angle to absolute angle relative to horizon (not relative to vehicle). This is generally the default with a stabilizing gimbal.
857
- GIMBAL_DEVICE_FLAGS_ROLL_LOCK = 4,
858
- // Lock pitch angle to absolute angle relative to horizon (not relative to vehicle). This is generally the default with a stabilizing gimbal.
859
- GIMBAL_DEVICE_FLAGS_PITCH_LOCK = 8,
860
- // Lock yaw angle to absolute angle relative to North (not relative to vehicle). If this flag is set, the yaw angle and z component of angular velocity are relative to North (earth frame, x-axis pointing North), else they are relative to the vehicle heading (vehicle frame, earth frame rotated so that the x-axis is pointing forward).
861
- GIMBAL_DEVICE_FLAGS_YAW_LOCK = 16,
862
- // Yaw angle and z component of angular velocity are relative to the vehicle heading (vehicle frame, earth frame rotated such that the x-axis is pointing forward).
863
- GIMBAL_DEVICE_FLAGS_YAW_IN_VEHICLE_FRAME = 32,
864
- // Yaw angle and z component of angular velocity are relative to North (earth frame, x-axis is pointing North).
865
- GIMBAL_DEVICE_FLAGS_YAW_IN_EARTH_FRAME = 64,
866
- // Gimbal device can accept yaw angle inputs relative to North (earth frame). This flag is only for reporting (attempts to set this flag are ignored).
867
- GIMBAL_DEVICE_FLAGS_ACCEPTS_YAW_IN_EARTH_FRAME = 128,
868
- // The gimbal orientation is set exclusively by the RC signals feed to the gimbal's radio control inputs. MAVLink messages for setting the gimbal orientation (GIMBAL_DEVICE_SET_ATTITUDE) are ignored.
869
- GIMBAL_DEVICE_FLAGS_RC_EXCLUSIVE = 256,
870
- // The gimbal orientation is determined by combining/mixing the RC signals feed to the gimbal's radio control inputs and the MAVLink messages for setting the gimbal orientation (GIMBAL_DEVICE_SET_ATTITUDE). How these two controls are combined or mixed is not defined by the protocol but is up to the implementation.
871
- GIMBAL_DEVICE_FLAGS_RC_MIXED = 512,
872
- }
873
-
874
- // Flags for high level gimbal manager operation The first 16 bits are identical to the GIMBAL_DEVICE_FLAGS.
875
- export enum GIMBAL_MANAGER_FLAGSEnum {
876
- // Based on GIMBAL_DEVICE_FLAGS_RETRACT.
877
- GIMBAL_MANAGER_FLAGS_RETRACT = 1,
878
- // Based on GIMBAL_DEVICE_FLAGS_NEUTRAL.
879
- GIMBAL_MANAGER_FLAGS_NEUTRAL = 2,
880
- // Based on GIMBAL_DEVICE_FLAGS_ROLL_LOCK.
881
- GIMBAL_MANAGER_FLAGS_ROLL_LOCK = 4,
882
- // Based on GIMBAL_DEVICE_FLAGS_PITCH_LOCK.
883
- GIMBAL_MANAGER_FLAGS_PITCH_LOCK = 8,
884
- // Based on GIMBAL_DEVICE_FLAGS_YAW_LOCK.
885
- GIMBAL_MANAGER_FLAGS_YAW_LOCK = 16,
886
- // Based on GIMBAL_DEVICE_FLAGS_YAW_IN_VEHICLE_FRAME.
887
- GIMBAL_MANAGER_FLAGS_YAW_IN_VEHICLE_FRAME = 32,
888
- // Based on GIMBAL_DEVICE_FLAGS_YAW_IN_EARTH_FRAME.
889
- GIMBAL_MANAGER_FLAGS_YAW_IN_EARTH_FRAME = 64,
890
- // Based on GIMBAL_DEVICE_FLAGS_ACCEPTS_YAW_IN_EARTH_FRAME.
891
- GIMBAL_MANAGER_FLAGS_ACCEPTS_YAW_IN_EARTH_FRAME = 128,
892
- // Based on GIMBAL_DEVICE_FLAGS_RC_EXCLUSIVE.
893
- GIMBAL_MANAGER_FLAGS_RC_EXCLUSIVE = 256,
894
- // Based on GIMBAL_DEVICE_FLAGS_RC_MIXED.
895
- GIMBAL_MANAGER_FLAGS_RC_MIXED = 512,
896
- }
897
-
898
- // Gimbal device (low level) error flags (bitmap, 0 means no error)
899
- export enum GIMBAL_DEVICE_ERROR_FLAGSEnum {
900
- // Gimbal device is limited by hardware roll limit.
901
- GIMBAL_DEVICE_ERROR_FLAGS_AT_ROLL_LIMIT = 1,
902
- // Gimbal device is limited by hardware pitch limit.
903
- GIMBAL_DEVICE_ERROR_FLAGS_AT_PITCH_LIMIT = 2,
904
- // Gimbal device is limited by hardware yaw limit.
905
- GIMBAL_DEVICE_ERROR_FLAGS_AT_YAW_LIMIT = 4,
906
- // There is an error with the gimbal encoders.
907
- GIMBAL_DEVICE_ERROR_FLAGS_ENCODER_ERROR = 8,
908
- // There is an error with the gimbal power source.
909
- GIMBAL_DEVICE_ERROR_FLAGS_POWER_ERROR = 16,
910
- // There is an error with the gimbal motors.
911
- GIMBAL_DEVICE_ERROR_FLAGS_MOTOR_ERROR = 32,
912
- // There is an error with the gimbal's software.
913
- GIMBAL_DEVICE_ERROR_FLAGS_SOFTWARE_ERROR = 64,
914
- // There is an error with the gimbal's communication.
915
- GIMBAL_DEVICE_ERROR_FLAGS_COMMS_ERROR = 128,
916
- // Gimbal device is currently calibrating.
917
- GIMBAL_DEVICE_ERROR_FLAGS_CALIBRATION_RUNNING = 256,
918
- // Gimbal device is not assigned to a gimbal manager.
919
- GIMBAL_DEVICE_ERROR_FLAGS_NO_MANAGER = 512,
920
- }
921
-
922
- // Gripper actions.
923
- export enum GRIPPER_ACTIONSEnum {
924
- // Gripper release cargo.
925
- GRIPPER_ACTION_RELEASE = 0,
926
- // Gripper grab onto cargo.
927
- GRIPPER_ACTION_GRAB = 1,
928
- }
929
-
930
- // Winch actions.
931
- export enum WINCH_ACTIONSEnum {
932
- // Allow motor to freewheel.
933
- WINCH_RELAXED = 0,
934
- // Wind or unwind specified length of line, optionally using specified rate.
935
- WINCH_RELATIVE_LENGTH_CONTROL = 1,
936
- // Wind or unwind line at specified rate.
937
- WINCH_RATE_CONTROL = 2,
938
- // Perform the locking sequence to relieve motor while in the fully retracted position. Only action and instance command parameters are used, others are ignored.
939
- WINCH_LOCK = 3,
940
- // Sequence of drop, slow down, touch down, reel up, lock. Only action and instance command parameters are used, others are ignored.
941
- WINCH_DELIVER = 4,
942
- // Engage motor and hold current position. Only action and instance command parameters are used, others are ignored.
943
- WINCH_HOLD = 5,
944
- // Return the reel to the fully retracted position. Only action and instance command parameters are used, others are ignored.
945
- WINCH_RETRACT = 6,
946
- // Load the reel with line. The winch will calculate the total loaded length and stop when the tension exceeds a threshold. Only action and instance command parameters are used, others are ignored.
947
- WINCH_LOAD_LINE = 7,
948
- // Spool out the entire length of the line. Only action and instance command parameters are used, others are ignored.
949
- WINCH_ABANDON_LINE = 8,
950
- // Spools out just enough to present the hook to the user to load the payload. Only action and instance command parameters are used, others are ignored
951
- WINCH_LOAD_PAYLOAD = 9,
952
- }
953
-
954
- // Generalized UAVCAN node health
955
- export enum UAVCAN_NODE_HEALTHEnum {
956
- // The node is functioning properly.
957
- UAVCAN_NODE_HEALTH_OK = 0,
958
- // A critical parameter went out of range or the node has encountered a minor failure.
959
- UAVCAN_NODE_HEALTH_WARNING = 1,
960
- // The node has encountered a major failure.
961
- UAVCAN_NODE_HEALTH_ERROR = 2,
962
- // The node has suffered a fatal malfunction.
963
- UAVCAN_NODE_HEALTH_CRITICAL = 3,
964
- }
965
-
966
- // Generalized UAVCAN node mode
967
- export enum UAVCAN_NODE_MODEEnum {
968
- // The node is performing its primary functions.
969
- UAVCAN_NODE_MODE_OPERATIONAL = 0,
970
- // The node is initializing; this mode is entered immediately after startup.
971
- UAVCAN_NODE_MODE_INITIALIZATION = 1,
972
- // The node is under maintenance.
973
- UAVCAN_NODE_MODE_MAINTENANCE = 2,
974
- // The node is in the process of updating its software.
975
- UAVCAN_NODE_MODE_SOFTWARE_UPDATE = 3,
976
- // The node is no longer available online.
977
- UAVCAN_NODE_MODE_OFFLINE = 7,
978
- }
979
-
980
- // Indicates the ESC connection type.
981
- export enum ESC_CONNECTION_TYPEEnum {
982
- // Traditional PPM ESC.
983
- ESC_CONNECTION_TYPE_PPM = 0,
984
- // Serial Bus connected ESC.
985
- ESC_CONNECTION_TYPE_SERIAL = 1,
986
- // One Shot PPM ESC.
987
- ESC_CONNECTION_TYPE_ONESHOT = 2,
988
- // I2C ESC.
989
- ESC_CONNECTION_TYPE_I2C = 3,
990
- // CAN-Bus ESC.
991
- ESC_CONNECTION_TYPE_CAN = 4,
992
- // DShot ESC.
993
- ESC_CONNECTION_TYPE_DSHOT = 5,
994
- }
995
-
996
- // Flags to report ESC failures.
997
- export enum ESC_FAILURE_FLAGSEnum {
998
- // Over current failure.
999
- ESC_FAILURE_OVER_CURRENT = 1,
1000
- // Over voltage failure.
1001
- ESC_FAILURE_OVER_VOLTAGE = 2,
1002
- // Over temperature failure.
1003
- ESC_FAILURE_OVER_TEMPERATURE = 4,
1004
- // Over RPM failure.
1005
- ESC_FAILURE_OVER_RPM = 8,
1006
- // Inconsistent command failure i.e. out of bounds.
1007
- ESC_FAILURE_INCONSISTENT_CMD = 16,
1008
- // Motor stuck failure.
1009
- ESC_FAILURE_MOTOR_STUCK = 32,
1010
- // Generic ESC failure.
1011
- ESC_FAILURE_GENERIC = 64,
1012
- }
1013
-
1014
- // Flags to indicate the status of camera storage.
1015
- export enum STORAGE_STATUSEnum {
1016
- // Storage is missing (no microSD card loaded for example.)
1017
- STORAGE_STATUS_EMPTY = 0,
1018
- // Storage present but unformatted.
1019
- STORAGE_STATUS_UNFORMATTED = 1,
1020
- // Storage present and ready.
1021
- STORAGE_STATUS_READY = 2,
1022
- // Camera does not supply storage status information. Capacity information in STORAGE_INFORMATION fields will be ignored.
1023
- STORAGE_STATUS_NOT_SUPPORTED = 3,
1024
- }
1025
-
1026
- // Flags to indicate the type of storage.
1027
- export enum STORAGE_TYPEEnum {
1028
- // Storage type is not known.
1029
- STORAGE_TYPE_UNKNOWN = 0,
1030
- // Storage type is USB device.
1031
- STORAGE_TYPE_USB_STICK = 1,
1032
- // Storage type is SD card.
1033
- STORAGE_TYPE_SD = 2,
1034
- // Storage type is microSD card.
1035
- STORAGE_TYPE_MICROSD = 3,
1036
- // Storage type is CFast.
1037
- STORAGE_TYPE_CF = 4,
1038
- // Storage type is CFexpress.
1039
- STORAGE_TYPE_CFE = 5,
1040
- // Storage type is XQD.
1041
- STORAGE_TYPE_XQD = 6,
1042
- // Storage type is HD mass storage type.
1043
- STORAGE_TYPE_HD = 7,
1044
- // Storage type is other, not listed type.
1045
- STORAGE_TYPE_OTHER = 254,
1046
- }
1047
-
1048
- // Flags to indicate usage for a particular storage (see STORAGE_INFORMATION.storage_usage and MAV_CMD_SET_STORAGE_USAGE).
1049
- export enum STORAGE_USAGE_FLAGEnum {
1050
- // Always set to 1 (indicates STORAGE_INFORMATION.storage_usage is supported).
1051
- STORAGE_USAGE_FLAG_SET = 1,
1052
- // Storage for saving photos.
1053
- STORAGE_USAGE_FLAG_PHOTO = 2,
1054
- // Storage for saving videos.
1055
- STORAGE_USAGE_FLAG_VIDEO = 4,
1056
- // Storage for saving logs.
1057
- STORAGE_USAGE_FLAG_LOGS = 8,
1058
- }
1059
-
1060
- // Yaw behaviour during orbit flight.
1061
- export enum ORBIT_YAW_BEHAVIOUREnum {
1062
- // Vehicle front points to the center (default).
1063
- ORBIT_YAW_BEHAVIOUR_HOLD_FRONT_TO_CIRCLE_CENTER = 0,
1064
- // Vehicle front holds heading when message received.
1065
- ORBIT_YAW_BEHAVIOUR_HOLD_INITIAL_HEADING = 1,
1066
- // Yaw uncontrolled.
1067
- ORBIT_YAW_BEHAVIOUR_UNCONTROLLED = 2,
1068
- // Vehicle front follows flight path (tangential to circle).
1069
- ORBIT_YAW_BEHAVIOUR_HOLD_FRONT_TANGENT_TO_CIRCLE = 3,
1070
- // Yaw controlled by RC input.
1071
- ORBIT_YAW_BEHAVIOUR_RC_CONTROLLED = 4,
1072
- // Vehicle uses current yaw behaviour (unchanged). The vehicle-default yaw behaviour is used if this value is specified when orbit is first commanded.
1073
- ORBIT_YAW_BEHAVIOUR_UNCHANGED = 5,
1074
- }
1075
-
1076
- // Possible responses from a WIFI_CONFIG_AP message.
1077
- export enum WIFI_CONFIG_AP_RESPONSEEnum {
1078
- // Undefined response. Likely an indicative of a system that doesn't support this request.
1079
- WIFI_CONFIG_AP_RESPONSE_UNDEFINED = 0,
1080
- // Changes accepted.
1081
- WIFI_CONFIG_AP_RESPONSE_ACCEPTED = 1,
1082
- // Changes rejected.
1083
- WIFI_CONFIG_AP_RESPONSE_REJECTED = 2,
1084
- // Invalid Mode.
1085
- WIFI_CONFIG_AP_RESPONSE_MODE_ERROR = 3,
1086
- // Invalid SSID.
1087
- WIFI_CONFIG_AP_RESPONSE_SSID_ERROR = 4,
1088
- // Invalid Password.
1089
- WIFI_CONFIG_AP_RESPONSE_PASSWORD_ERROR = 5,
1090
- }
1091
-
1092
- // Possible responses from a CELLULAR_CONFIG message.
1093
- export enum CELLULAR_CONFIG_RESPONSEEnum {
1094
- // Changes accepted.
1095
- CELLULAR_CONFIG_RESPONSE_ACCEPTED = 0,
1096
- // Invalid APN.
1097
- CELLULAR_CONFIG_RESPONSE_APN_ERROR = 1,
1098
- // Invalid PIN.
1099
- CELLULAR_CONFIG_RESPONSE_PIN_ERROR = 2,
1100
- // Changes rejected.
1101
- CELLULAR_CONFIG_RESPONSE_REJECTED = 3,
1102
- // PUK is required to unblock SIM card.
1103
- CELLULAR_CONFIG_BLOCKED_PUK_REQUIRED = 4,
1104
- }
1105
-
1106
- // WiFi Mode.
1107
- export enum WIFI_CONFIG_AP_MODEEnum {
1108
- // WiFi mode is undefined.
1109
- WIFI_CONFIG_AP_MODE_UNDEFINED = 0,
1110
- // WiFi configured as an access point.
1111
- WIFI_CONFIG_AP_MODE_AP = 1,
1112
- // WiFi configured as a station connected to an existing local WiFi network.
1113
- WIFI_CONFIG_AP_MODE_STATION = 2,
1114
- // WiFi disabled.
1115
- WIFI_CONFIG_AP_MODE_DISABLED = 3,
1116
- }
1117
-
1118
- // Supported component metadata types. These are used in the "general" metadata file returned by COMPONENT_METADATA to provide information about supported metadata types. The types are not used directly in MAVLink messages.
1119
- export enum COMP_METADATA_TYPEEnum {
1120
- // General information about the component. General metadata includes information about other metadata types supported by the component. Files of this type must be supported, and must be downloadable from vehicle using a MAVLink FTP URI.
1121
- COMP_METADATA_TYPE_GENERAL = 0,
1122
- // Parameter meta data.
1123
- COMP_METADATA_TYPE_PARAMETER = 1,
1124
- // Meta data that specifies which commands and command parameters the vehicle supports. (WIP)
1125
- COMP_METADATA_TYPE_COMMANDS = 2,
1126
- // Meta data that specifies external non-MAVLink peripherals.
1127
- COMP_METADATA_TYPE_PERIPHERALS = 3,
1128
- // Meta data for the events interface.
1129
- COMP_METADATA_TYPE_EVENTS = 4,
1130
- // Meta data for actuator configuration (motors, servos and vehicle geometry) and testing.
1131
- COMP_METADATA_TYPE_ACTUATORS = 5,
1132
- }
1133
-
1134
- // Actuator configuration, used to change a setting on an actuator. Component information metadata can be used to know which outputs support which commands.
1135
- export enum ACTUATOR_CONFIGURATIONEnum {
1136
- // Do nothing.
1137
- ACTUATOR_CONFIGURATION_NONE = 0,
1138
- // Command the actuator to beep now.
1139
- ACTUATOR_CONFIGURATION_BEEP = 1,
1140
- // Permanently set the actuator (ESC) to 3D mode (reversible thrust).
1141
- ACTUATOR_CONFIGURATION_3D_MODE_ON = 2,
1142
- // Permanently set the actuator (ESC) to non 3D mode (non-reversible thrust).
1143
- ACTUATOR_CONFIGURATION_3D_MODE_OFF = 3,
1144
- // Permanently set the actuator (ESC) to spin direction 1 (which can be clockwise or counter-clockwise).
1145
- ACTUATOR_CONFIGURATION_SPIN_DIRECTION1 = 4,
1146
- // Permanently set the actuator (ESC) to spin direction 2 (opposite of direction 1).
1147
- ACTUATOR_CONFIGURATION_SPIN_DIRECTION2 = 5,
1148
- }
1149
-
1150
- // Actuator output function. Values greater or equal to 1000 are autopilot-specific.
1151
- export enum ACTUATOR_OUTPUT_FUNCTIONEnum {
1152
- // No function (disabled).
1153
- ACTUATOR_OUTPUT_FUNCTION_NONE = 0,
1154
- // Motor 1
1155
- ACTUATOR_OUTPUT_FUNCTION_MOTOR1 = 1,
1156
- // Motor 2
1157
- ACTUATOR_OUTPUT_FUNCTION_MOTOR2 = 2,
1158
- // Motor 3
1159
- ACTUATOR_OUTPUT_FUNCTION_MOTOR3 = 3,
1160
- // Motor 4
1161
- ACTUATOR_OUTPUT_FUNCTION_MOTOR4 = 4,
1162
- // Motor 5
1163
- ACTUATOR_OUTPUT_FUNCTION_MOTOR5 = 5,
1164
- // Motor 6
1165
- ACTUATOR_OUTPUT_FUNCTION_MOTOR6 = 6,
1166
- // Motor 7
1167
- ACTUATOR_OUTPUT_FUNCTION_MOTOR7 = 7,
1168
- // Motor 8
1169
- ACTUATOR_OUTPUT_FUNCTION_MOTOR8 = 8,
1170
- // Motor 9
1171
- ACTUATOR_OUTPUT_FUNCTION_MOTOR9 = 9,
1172
- // Motor 10
1173
- ACTUATOR_OUTPUT_FUNCTION_MOTOR10 = 10,
1174
- // Motor 11
1175
- ACTUATOR_OUTPUT_FUNCTION_MOTOR11 = 11,
1176
- // Motor 12
1177
- ACTUATOR_OUTPUT_FUNCTION_MOTOR12 = 12,
1178
- // Motor 13
1179
- ACTUATOR_OUTPUT_FUNCTION_MOTOR13 = 13,
1180
- // Motor 14
1181
- ACTUATOR_OUTPUT_FUNCTION_MOTOR14 = 14,
1182
- // Motor 15
1183
- ACTUATOR_OUTPUT_FUNCTION_MOTOR15 = 15,
1184
- // Motor 16
1185
- ACTUATOR_OUTPUT_FUNCTION_MOTOR16 = 16,
1186
- // Servo 1
1187
- ACTUATOR_OUTPUT_FUNCTION_SERVO1 = 33,
1188
- // Servo 2
1189
- ACTUATOR_OUTPUT_FUNCTION_SERVO2 = 34,
1190
- // Servo 3
1191
- ACTUATOR_OUTPUT_FUNCTION_SERVO3 = 35,
1192
- // Servo 4
1193
- ACTUATOR_OUTPUT_FUNCTION_SERVO4 = 36,
1194
- // Servo 5
1195
- ACTUATOR_OUTPUT_FUNCTION_SERVO5 = 37,
1196
- // Servo 6
1197
- ACTUATOR_OUTPUT_FUNCTION_SERVO6 = 38,
1198
- // Servo 7
1199
- ACTUATOR_OUTPUT_FUNCTION_SERVO7 = 39,
1200
- // Servo 8
1201
- ACTUATOR_OUTPUT_FUNCTION_SERVO8 = 40,
1202
- // Servo 9
1203
- ACTUATOR_OUTPUT_FUNCTION_SERVO9 = 41,
1204
- // Servo 10
1205
- ACTUATOR_OUTPUT_FUNCTION_SERVO10 = 42,
1206
- // Servo 11
1207
- ACTUATOR_OUTPUT_FUNCTION_SERVO11 = 43,
1208
- // Servo 12
1209
- ACTUATOR_OUTPUT_FUNCTION_SERVO12 = 44,
1210
- // Servo 13
1211
- ACTUATOR_OUTPUT_FUNCTION_SERVO13 = 45,
1212
- // Servo 14
1213
- ACTUATOR_OUTPUT_FUNCTION_SERVO14 = 46,
1214
- // Servo 15
1215
- ACTUATOR_OUTPUT_FUNCTION_SERVO15 = 47,
1216
- // Servo 16
1217
- ACTUATOR_OUTPUT_FUNCTION_SERVO16 = 48,
1218
- }
1219
-
1220
- // Axes that will be autotuned by MAV_CMD_DO_AUTOTUNE_ENABLE.
1221
- // Note that at least one flag must be set in MAV_CMD_DO_AUTOTUNE_ENABLE.param2: if none are set, the flight stack will tune its default set of axes.
1222
- export enum AUTOTUNE_AXISEnum {
1223
- // Autotune roll axis.
1224
- AUTOTUNE_AXIS_ROLL = 1,
1225
- // Autotune pitch axis.
1226
- AUTOTUNE_AXIS_PITCH = 2,
1227
- // Autotune yaw axis.
1228
- AUTOTUNE_AXIS_YAW = 4,
1229
- }
1230
-
1231
- // Actions for reading/writing parameters between persistent and volatile storage when using MAV_CMD_PREFLIGHT_STORAGE.
1232
- // (Commonly parameters are loaded from persistent storage (flash/EEPROM) into volatile storage (RAM) on startup and written back when they are changed.)
1233
- export enum PREFLIGHT_STORAGE_PARAMETER_ACTIONEnum {
1234
- // Read all parameters from persistent storage. Replaces values in volatile storage.
1235
- PARAM_READ_PERSISTENT = 0,
1236
- // Write all parameter values to persistent storage (flash/EEPROM)
1237
- PARAM_WRITE_PERSISTENT = 1,
1238
- // Reset all user configurable parameters to their default value (including airframe selection, sensor calibration data, safety settings, and so on). Does not reset values that contain operation counters and vehicle computed statistics.
1239
- PARAM_RESET_CONFIG_DEFAULT = 2,
1240
- // Reset only sensor calibration parameters to factory defaults (or firmware default if not available)
1241
- PARAM_RESET_SENSOR_DEFAULT = 3,
1242
- // Reset all parameters, including operation counters, to default values
1243
- PARAM_RESET_ALL_DEFAULT = 4,
1244
- }
1245
-
1246
- // Actions for reading and writing plan information (mission, rally points, geofence) between persistent and volatile storage when using MAV_CMD_PREFLIGHT_STORAGE.
1247
- // (Commonly missions are loaded from persistent storage (flash/EEPROM) into volatile storage (RAM) on startup and written back when they are changed.)
1248
- export enum PREFLIGHT_STORAGE_MISSION_ACTIONEnum {
1249
- // Read current mission data from persistent storage
1250
- MISSION_READ_PERSISTENT = 0,
1251
- // Write current mission data to persistent storage
1252
- MISSION_WRITE_PERSISTENT = 1,
1253
- // Erase all mission data stored on the vehicle (both persistent and volatile storage)
1254
- MISSION_RESET_DEFAULT = 2,
1255
- }
1256
-
1257
- // Specifies the conditions under which the MAV_CMD_PREFLIGHT_REBOOT_SHUTDOWN command should be accepted.
1258
- export enum REBOOT_SHUTDOWN_CONDITIONSEnum {
1259
- // Reboot/Shutdown only if allowed by safety checks, such as being landed.
1260
- REBOOT_SHUTDOWN_CONDITIONS_SAFETY_INTERLOCKED = 0,
1261
- // Force reboot/shutdown of the autopilot/component regardless of system state.
1262
- REBOOT_SHUTDOWN_CONDITIONS_FORCE = 20190226,
1263
- }
1264
-
1265
- // Commands to be executed by the MAV. They can be executed on user request, or as part of a mission script. If the action is used in a mission, the parameter mapping to the waypoint/mission message is as follows: Param 1, Param 2, Param 3, Param 4, X: Param 5, Y:Param 6, Z:Param 7. This command list is similar what ARINC 424 is for commercial aircraft: A data format how to interpret waypoint/mission data. NaN and INT32_MAX may be used in float/integer params (respectively) to indicate optional/default values (e.g. to use the component's current yaw or latitude rather than a specific value). See https://mavlink.io/en/guide/xml_schema.html#MAV_CMD for information about the structure of the MAV_CMD entries
1266
- export enum MAV_CMDEnum {
1267
- // Navigate to waypoint. This is intended for use in missions (for guided commands outside of missions use MAV_CMD_DO_REPOSITION).
1268
- MAV_CMD_NAV_WAYPOINT = 16,
1269
- // Loiter around this waypoint an unlimited amount of time
1270
- MAV_CMD_NAV_LOITER_UNLIM = 17,
1271
- // Loiter around this waypoint for X turns
1272
- MAV_CMD_NAV_LOITER_TURNS = 18,
1273
- // Loiter at the specified latitude, longitude and altitude for a certain amount of time. Multicopter vehicles stop at the point (within a vehicle-specific acceptance radius). Forward-only moving vehicles (e.g. fixed-wing) circle the point with the specified radius/direction. If the Heading Required parameter (2) is non-zero forward moving aircraft will only leave the loiter circle once heading towards the next waypoint.
1274
- MAV_CMD_NAV_LOITER_TIME = 19,
1275
- // Return to launch location
1276
- MAV_CMD_NAV_RETURN_TO_LAUNCH = 20,
1277
- // Land at location.
1278
- MAV_CMD_NAV_LAND = 21,
1279
- // Takeoff from ground / hand. Vehicles that support multiple takeoff modes (e.g. VTOL quadplane) should take off using the currently configured mode.
1280
- MAV_CMD_NAV_TAKEOFF = 22,
1281
- // Land at local position (local frame only)
1282
- MAV_CMD_NAV_LAND_LOCAL = 23,
1283
- // Takeoff from local position (local frame only)
1284
- MAV_CMD_NAV_TAKEOFF_LOCAL = 24,
1285
- // Vehicle following, i.e. this waypoint represents the position of a moving vehicle
1286
- MAV_CMD_NAV_FOLLOW = 25,
1287
- // Continue on the current course and climb/descend to specified altitude. When the altitude is reached continue to the next command (i.e., don't proceed to the next command until the desired altitude is reached.
1288
- MAV_CMD_NAV_CONTINUE_AND_CHANGE_ALT = 30,
1289
- // Begin loiter at the specified Latitude and Longitude. If Lat=Lon=0, then loiter at the current position. Don't consider the navigation command complete (don't leave loiter) until the altitude has been reached. Additionally, if the Heading Required parameter is non-zero the aircraft will not leave the loiter until heading toward the next waypoint.
1290
- MAV_CMD_NAV_LOITER_TO_ALT = 31,
1291
- // Begin following a target
1292
- MAV_CMD_DO_FOLLOW = 32,
1293
- // Reposition the MAV after a follow target command has been sent
1294
- MAV_CMD_DO_FOLLOW_REPOSITION = 33,
1295
- // Start orbiting on the circumference of a circle defined by the parameters. Setting values to NaN/INT32_MAX (as appropriate) results in using defaults.
1296
- MAV_CMD_DO_ORBIT = 34,
1297
- // Sets the region of interest (ROI) for a sensor set or the vehicle itself. This can then be used by the vehicle's control system to control the vehicle attitude and the attitude of various sensors such as cameras.
1298
- MAV_CMD_NAV_ROI = 80,
1299
- // Control autonomous path planning on the MAV.
1300
- MAV_CMD_NAV_PATHPLANNING = 81,
1301
- // Navigate to waypoint using a spline path.
1302
- MAV_CMD_NAV_SPLINE_WAYPOINT = 82,
1303
- // Takeoff from ground using VTOL mode, and transition to forward flight with specified heading. The command should be ignored by vehicles that dont support both VTOL and fixed-wing flight (multicopters, boats,etc.).
1304
- MAV_CMD_NAV_VTOL_TAKEOFF = 84,
1305
- // Land using VTOL mode
1306
- MAV_CMD_NAV_VTOL_LAND = 85,
1307
- // Hand control over to an external controller
1308
- MAV_CMD_NAV_GUIDED_ENABLE = 92,
1309
- // Delay the next navigation command a number of seconds or until a specified time
1310
- MAV_CMD_NAV_DELAY = 93,
1311
- // Descend and place payload. Vehicle moves to specified location, descends until it detects a hanging payload has reached the ground, and then releases the payload. If ground is not detected before the reaching the maximum descent value (param1), the command will complete without releasing the payload.
1312
- MAV_CMD_NAV_PAYLOAD_PLACE = 94,
1313
- // NOP - This command is only used to mark the upper limit of the NAV/ACTION commands in the enumeration
1314
- MAV_CMD_NAV_LAST = 95,
1315
- // Delay mission state machine.
1316
- MAV_CMD_CONDITION_DELAY = 112,
1317
- // Ascend/descend to target altitude at specified rate. Delay mission state machine until desired altitude reached.
1318
- MAV_CMD_CONDITION_CHANGE_ALT = 113,
1319
- // Delay mission state machine until within desired distance of next NAV point.
1320
- MAV_CMD_CONDITION_DISTANCE = 114,
1321
- // Reach a certain target angle.
1322
- MAV_CMD_CONDITION_YAW = 115,
1323
- // NOP - This command is only used to mark the upper limit of the CONDITION commands in the enumeration
1324
- MAV_CMD_CONDITION_LAST = 159,
1325
- // Set system mode.
1326
- MAV_CMD_DO_SET_MODE = 176,
1327
- // Jump to the desired command in the mission list. Repeat this action only the specified number of times
1328
- MAV_CMD_DO_JUMP = 177,
1329
- // Change speed and/or throttle set points. The value persists until it is overridden or there is a mode change
1330
- MAV_CMD_DO_CHANGE_SPEED = 178,
1331
- // Sets the home position to either to the current position or a specified position.
1332
- // The home position is the default position that the system will return to and land on.
1333
- // The position is set automatically by the system during the takeoff (and may also be set using this command).
1334
- // Note: the current home position may be emitted in a HOME_POSITION message on request (using MAV_CMD_REQUEST_MESSAGE with param1=242).
1335
- MAV_CMD_DO_SET_HOME = 179,
1336
- // Set a system parameter. Caution! Use of this command requires knowledge of the numeric enumeration value of the parameter.
1337
- MAV_CMD_DO_SET_PARAMETER = 180,
1338
- // Set a relay to a condition.
1339
- MAV_CMD_DO_SET_RELAY = 181,
1340
- // Cycle a relay on and off for a desired number of cycles with a desired period.
1341
- MAV_CMD_DO_REPEAT_RELAY = 182,
1342
- // Set a servo to a desired PWM value.
1343
- MAV_CMD_DO_SET_SERVO = 183,
1344
- // Cycle a between its nominal setting and a desired PWM for a desired number of cycles with a desired period.
1345
- MAV_CMD_DO_REPEAT_SERVO = 184,
1346
- // Terminate flight immediately.
1347
- // Flight termination immediately and irreversibly terminates the current flight, returning the vehicle to ground.
1348
- // The vehicle will ignore RC or other input until it has been power-cycled.
1349
- // Termination may trigger safety measures, including: disabling motors and deployment of parachute on multicopters, and setting flight surfaces to initiate a landing pattern on fixed-wing).
1350
- // On multicopters without a parachute it may trigger a crash landing.
1351
- // Support for this command can be tested using the protocol bit: MAV_PROTOCOL_CAPABILITY_FLIGHT_TERMINATION.
1352
- // Support for this command can also be tested by sending the command with param1=0 (< 0.5); the ACK should be either MAV_RESULT_FAILED or MAV_RESULT_UNSUPPORTED.
1353
- MAV_CMD_DO_FLIGHTTERMINATION = 185,
1354
- // Change altitude set point.
1355
- MAV_CMD_DO_CHANGE_ALTITUDE = 186,
1356
- // Sets actuators (e.g. servos) to a desired value. The actuator numbers are mapped to specific outputs (e.g. on any MAIN or AUX PWM or UAVCAN) using a flight-stack specific mechanism (i.e. a parameter).
1357
- MAV_CMD_DO_SET_ACTUATOR = 187,
1358
- // Mission item to specify the start of a failsafe/landing return-path segment (the end of the segment is the next MAV_CMD_DO_LAND_START item).
1359
- // A vehicle that is using missions for landing (e.g. in a return mode) will join the mission on the closest path of the return-path segment (instead of MAV_CMD_DO_LAND_START or the nearest waypoint).
1360
- // The main use case is to minimize the failsafe flight path in corridor missions, where the inbound/outbound paths are constrained (by geofences) to the same particular path.
1361
- // The MAV_CMD_NAV_RETURN_PATH_START would be placed at the start of the return path.
1362
- // If a failsafe occurs on the outbound path the vehicle will move to the nearest point on the return path (which is parallel for this kind of mission), effectively turning round and following the shortest path to landing.
1363
- // If a failsafe occurs on the inbound path the vehicle is already on the return segment and will continue to landing.
1364
- // The Latitude/Longitude/Altitude are optional, and may be set to 0 if not needed.
1365
- // If specified, the item defines the waypoint at which the return segment starts.
1366
- // If sent using as a command, the vehicle will perform a mission landing (using the land segment if defined) or reject the command if mission landings are not supported, or no mission landing is defined. When used as a command any position information in the command is ignored.
1367
- MAV_CMD_DO_RETURN_PATH_START = 188,
1368
- // Mission item to mark the start of a mission landing pattern, or a command to land with a mission landing pattern.
1369
- // When used in a mission, this is a marker for the start of a sequence of mission items that represent a landing pattern.
1370
- // It should be followed by a navigation item that defines the first waypoint of the landing sequence.
1371
- // The start marker positional params are used only for selecting what landing pattern to use if several are defined in the mission (the selected pattern will be the one with the marker position that is closest to the vehicle when a landing is commanded).
1372
- // If the marker item position has zero-values for latitude, longitude, and altitude, then landing pattern selection is instead based on the position of the first waypoint in the landing sequence.
1373
- // When sent as a command it triggers a landing using a mission landing pattern.
1374
- // The location parameters are not used in this case, and should be set to 0.
1375
- MAV_CMD_DO_LAND_START = 189,
1376
- // Mission command to perform a landing from a rally point.
1377
- MAV_CMD_DO_RALLY_LAND = 190,
1378
- // Mission command to safely abort an autonomous landing.
1379
- MAV_CMD_DO_GO_AROUND = 191,
1380
- // Reposition the vehicle to a specific WGS84 global position. This command is intended for guided commands (for missions use MAV_CMD_NAV_WAYPOINT instead).
1381
- MAV_CMD_DO_REPOSITION = 192,
1382
- // If in a GPS controlled position mode, hold the current position or continue.
1383
- MAV_CMD_DO_PAUSE_CONTINUE = 193,
1384
- // Set moving direction to forward or reverse.
1385
- MAV_CMD_DO_SET_REVERSE = 194,
1386
- // Sets the region of interest (ROI) to a location. This can then be used by the vehicle's control system to control the vehicle attitude and the attitude of various sensors such as cameras. This command can be sent to a gimbal manager but not to a gimbal device. A gimbal is not to react to this message.
1387
- MAV_CMD_DO_SET_ROI_LOCATION = 195,
1388
- // Sets the region of interest (ROI) to be toward next waypoint, with optional pitch/roll/yaw offset. This can then be used by the vehicle's control system to control the vehicle attitude and the attitude of various sensors such as cameras. This command can be sent to a gimbal manager but not to a gimbal device. A gimbal device is not to react to this message.
1389
- MAV_CMD_DO_SET_ROI_WPNEXT_OFFSET = 196,
1390
- // Cancels any previous ROI command returning the vehicle/sensors to default flight characteristics. This can then be used by the vehicle's control system to control the vehicle attitude and the attitude of various sensors such as cameras. This command can be sent to a gimbal manager but not to a gimbal device. A gimbal device is not to react to this message. After this command the gimbal manager should go back to manual input if available, and otherwise assume a neutral position.
1391
- MAV_CMD_DO_SET_ROI_NONE = 197,
1392
- // Mount tracks system with specified system ID. Determination of target vehicle position may be done with GLOBAL_POSITION_INT or any other means. This command can be sent to a gimbal manager but not to a gimbal device. A gimbal device is not to react to this message.
1393
- MAV_CMD_DO_SET_ROI_SYSID = 198,
1394
- // Control onboard camera system.
1395
- MAV_CMD_DO_CONTROL_VIDEO = 200,
1396
- // Sets the region of interest (ROI) for a sensor set or the vehicle itself. This can then be used by the vehicle's control system to control the vehicle attitude and the attitude of various sensors such as cameras.
1397
- MAV_CMD_DO_SET_ROI = 201,
1398
- // Configure digital camera. This is a fallback message for systems that have not yet implemented PARAM_EXT_XXX messages and camera definition files (see https://mavlink.io/en/services/camera_def.html ).
1399
- MAV_CMD_DO_DIGICAM_CONFIGURE = 202,
1400
- // Control digital camera. This is a fallback message for systems that have not yet implemented PARAM_EXT_XXX messages and camera definition files (see https://mavlink.io/en/services/camera_def.html ).
1401
- MAV_CMD_DO_DIGICAM_CONTROL = 203,
1402
- // Mission command to configure a camera or antenna mount
1403
- MAV_CMD_DO_MOUNT_CONFIGURE = 204,
1404
- // Mission command to control a camera or antenna mount
1405
- MAV_CMD_DO_MOUNT_CONTROL = 205,
1406
- // Mission command to set camera trigger distance for this flight. The camera is triggered each time this distance is exceeded. This command can also be used to set the shutter integration time for the camera.
1407
- MAV_CMD_DO_SET_CAM_TRIGG_DIST = 206,
1408
- // Enable the geofence.
1409
- // This can be used in a mission or via the command protocol.
1410
- // The persistence/lifetime of the setting is undefined.
1411
- // Depending on flight stack implementation it may persist until superseded, or it may revert to a system default at the end of a mission.
1412
- // Flight stacks typically reset the setting to system defaults on reboot.
1413
- MAV_CMD_DO_FENCE_ENABLE = 207,
1414
- // Mission item/command to release a parachute or enable/disable auto release.
1415
- MAV_CMD_DO_PARACHUTE = 208,
1416
- // Command to perform motor test.
1417
- MAV_CMD_DO_MOTOR_TEST = 209,
1418
- // Change to/from inverted flight.
1419
- MAV_CMD_DO_INVERTED_FLIGHT = 210,
1420
- // Mission command to operate a gripper.
1421
- MAV_CMD_DO_GRIPPER = 211,
1422
- // Enable/disable autotune.
1423
- MAV_CMD_DO_AUTOTUNE_ENABLE = 212,
1424
- // Sets a desired vehicle turn angle and speed change.
1425
- MAV_CMD_NAV_SET_YAW_SPEED = 213,
1426
- // Mission command to set camera trigger interval for this flight. If triggering is enabled, the camera is triggered each time this interval expires. This command can also be used to set the shutter integration time for the camera.
1427
- MAV_CMD_DO_SET_CAM_TRIGG_INTERVAL = 214,
1428
- // Mission command to control a camera or antenna mount, using a quaternion as reference.
1429
- MAV_CMD_DO_MOUNT_CONTROL_QUAT = 220,
1430
- // set id of master controller
1431
- MAV_CMD_DO_GUIDED_MASTER = 221,
1432
- // Set limits for external control
1433
- MAV_CMD_DO_GUIDED_LIMITS = 222,
1434
- // Control vehicle engine. This is interpreted by the vehicles engine controller to change the target engine state. It is intended for vehicles with internal combustion engines
1435
- MAV_CMD_DO_ENGINE_CONTROL = 223,
1436
- // Set the mission item with sequence number seq as the current item and emit MISSION_CURRENT (whether or not the mission number changed).
1437
- // If a mission is currently being executed, the system will continue to this new mission item on the shortest path, skipping any intermediate mission items.
1438
- // Note that mission jump repeat counters are not reset unless param2 is set (see MAV_CMD_DO_JUMP param2).
1439
- // This command may trigger a mission state-machine change on some systems: for example from MISSION_STATE_NOT_STARTED or MISSION_STATE_PAUSED to MISSION_STATE_ACTIVE.
1440
- // If the system is in mission mode, on those systems this command might therefore start, restart or resume the mission.
1441
- // If the system is not in mission mode this command must not trigger a switch to mission mode.
1442
- // The mission may be "reset" using param2.
1443
- // Resetting sets jump counters to initial values (to reset counters without changing the current mission item set the param1 to `-1`).
1444
- // Resetting also explicitly changes a mission state of MISSION_STATE_COMPLETE to MISSION_STATE_PAUSED or MISSION_STATE_ACTIVE, potentially allowing it to resume when it is (next) in a mission mode.
1445
- // The command will ACK with MAV_RESULT_FAILED if the sequence number is out of range (including if there is no mission item).
1446
- MAV_CMD_DO_SET_MISSION_CURRENT = 224,
1447
- // NOP - This command is only used to mark the upper limit of the DO commands in the enumeration
1448
- MAV_CMD_DO_LAST = 240,
1449
- // Trigger calibration. This command will be only accepted if in pre-flight mode. Except for Temperature Calibration, only one sensor should be set in a single message and all others should be zero.
1450
- MAV_CMD_PREFLIGHT_CALIBRATION = 241,
1451
- // Set sensor offsets. This command will be only accepted if in pre-flight mode.
1452
- MAV_CMD_PREFLIGHT_SET_SENSOR_OFFSETS = 242,
1453
- // Trigger UAVCAN configuration (actuator ID assignment and direction mapping). Note that this maps to the legacy UAVCAN v0 function UAVCAN_ENUMERATE, which is intended to be executed just once during initial vehicle configuration (it is not a normal pre-flight command and has been poorly named).
1454
- MAV_CMD_PREFLIGHT_UAVCAN = 243,
1455
- // Request storage of different parameter values and logs. This command will be only accepted if in pre-flight mode.
1456
- MAV_CMD_PREFLIGHT_STORAGE = 245,
1457
- // Request the reboot or shutdown of system components.
1458
- MAV_CMD_PREFLIGHT_REBOOT_SHUTDOWN = 246,
1459
- // Override current mission with command to pause mission, pause mission and move to position, continue/resume mission. When param 1 indicates that the mission is paused (MAV_GOTO_DO_HOLD), param 2 defines whether it holds in place or moves to another position.
1460
- MAV_CMD_OVERRIDE_GOTO = 252,
1461
- // Mission command to set a Camera Auto Mount Pivoting Oblique Survey (Replaces CAM_TRIGG_DIST for this purpose). The camera is triggered each time this distance is exceeded, then the mount moves to the next position. Params 4~6 set-up the angle limits and number of positions for oblique survey, where mount-enabled vehicles automatically roll the camera between shots to emulate an oblique camera setup (providing an increased HFOV). This command can also be used to set the shutter integration time for the camera.
1462
- MAV_CMD_OBLIQUE_SURVEY = 260,
1463
- // Enable the specified standard MAVLink mode.
1464
- // If the specified mode is not supported, the vehicle should ACK with MAV_RESULT_FAILED.
1465
- // See https://mavlink.io/en/services/standard_modes.html
1466
- MAV_CMD_DO_SET_STANDARD_MODE = 262,
1467
- // start running a mission
1468
- MAV_CMD_MISSION_START = 300,
1469
- // Actuator testing command. This is similar to MAV_CMD_DO_MOTOR_TEST but operates on the level of output functions, i.e. it is possible to test Motor1 independent from which output it is configured on. Autopilots must NACK this command with MAV_RESULT_TEMPORARILY_REJECTED while armed.
1470
- MAV_CMD_ACTUATOR_TEST = 310,
1471
- // Actuator configuration command.
1472
- MAV_CMD_CONFIGURE_ACTUATOR = 311,
1473
- // Arms / Disarms a component
1474
- MAV_CMD_COMPONENT_ARM_DISARM = 400,
1475
- // Instructs a target system to run pre-arm checks.
1476
- // This allows preflight checks to be run on demand, which may be useful on systems that normally run them at low rate, or which do not trigger checks when the armable state might have changed.
1477
- // This command should return MAV_RESULT_ACCEPTED if it will run the checks.
1478
- // The results of the checks are usually then reported in SYS_STATUS messages (this is system-specific).
1479
- // The command should return MAV_RESULT_TEMPORARILY_REJECTED if the system is already armed.
1480
- MAV_CMD_RUN_PREARM_CHECKS = 401,
1481
- // Turns illuminators ON/OFF. 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).
1482
- MAV_CMD_ILLUMINATOR_ON_OFF = 405,
1483
- // Configures illuminator settings. 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).
1484
- MAV_CMD_DO_ILLUMINATOR_CONFIGURE = 406,
1485
- // Request the home position from the vehicle.
1486
- // The vehicle will ACK the command and then emit the HOME_POSITION message.
1487
- MAV_CMD_GET_HOME_POSITION = 410,
1488
- // Inject artificial failure for testing purposes. Note that autopilots should implement an additional protection before accepting this command such as a specific param setting.
1489
- MAV_CMD_INJECT_FAILURE = 420,
1490
- // Starts receiver pairing.
1491
- MAV_CMD_START_RX_PAIR = 500,
1492
- // Request the interval between messages for a particular MAVLink message ID.
1493
- // The receiver should ACK the command and then emit its response in a MESSAGE_INTERVAL message.
1494
- MAV_CMD_GET_MESSAGE_INTERVAL = 510,
1495
- // Set the interval between messages for a particular MAVLink message ID. This interface replaces REQUEST_DATA_STREAM.
1496
- MAV_CMD_SET_MESSAGE_INTERVAL = 511,
1497
- // Request the target system(s) emit a single instance of a specified message (i.e. a "one-shot" version of MAV_CMD_SET_MESSAGE_INTERVAL).
1498
- MAV_CMD_REQUEST_MESSAGE = 512,
1499
- // Request MAVLink protocol version compatibility. All receivers should ACK the command and then emit their capabilities in an PROTOCOL_VERSION message
1500
- MAV_CMD_REQUEST_PROTOCOL_VERSION = 519,
1501
- // Request autopilot capabilities. The receiver should ACK the command and then emit its capabilities in an AUTOPILOT_VERSION message
1502
- MAV_CMD_REQUEST_AUTOPILOT_CAPABILITIES = 520,
1503
- // Request camera information (CAMERA_INFORMATION).
1504
- MAV_CMD_REQUEST_CAMERA_INFORMATION = 521,
1505
- // Request camera settings (CAMERA_SETTINGS).
1506
- MAV_CMD_REQUEST_CAMERA_SETTINGS = 522,
1507
- // Request storage information (STORAGE_INFORMATION). Use the command's target_component to target a specific component's storage.
1508
- MAV_CMD_REQUEST_STORAGE_INFORMATION = 525,
1509
- // Format a storage medium. Once format is complete, a STORAGE_INFORMATION message is sent. Use the command's target_component to target a specific component's storage.
1510
- MAV_CMD_STORAGE_FORMAT = 526,
1511
- // Request camera capture status (CAMERA_CAPTURE_STATUS)
1512
- MAV_CMD_REQUEST_CAMERA_CAPTURE_STATUS = 527,
1513
- // Request flight information (FLIGHT_INFORMATION)
1514
- MAV_CMD_REQUEST_FLIGHT_INFORMATION = 528,
1515
- // Reset all camera settings to Factory Default
1516
- MAV_CMD_RESET_CAMERA_SETTINGS = 529,
1517
- // Set camera running mode. Use NaN for reserved values. GCS will send a MAV_CMD_REQUEST_VIDEO_STREAM_STATUS command after a mode change if the camera supports video streaming.
1518
- MAV_CMD_SET_CAMERA_MODE = 530,
1519
- // Set camera zoom. Camera must respond with a CAMERA_SETTINGS message (on success).
1520
- MAV_CMD_SET_CAMERA_ZOOM = 531,
1521
- // Set camera focus. Camera must respond with a CAMERA_SETTINGS message (on success).
1522
- MAV_CMD_SET_CAMERA_FOCUS = 532,
1523
- // Set that a particular storage is the preferred location for saving photos, videos, and/or other media (e.g. to set that an SD card is used for storing videos).
1524
- // There can only be one preferred save location for each particular media type: setting a media usage flag will clear/reset that same flag if set on any other storage.
1525
- // If no flag is set the system should use its default storage.
1526
- // A target system can choose to always use default storage, in which case it should ACK the command with MAV_RESULT_UNSUPPORTED.
1527
- // A target system can choose to not allow a particular storage to be set as preferred storage, in which case it should ACK the command with MAV_RESULT_DENIED.
1528
- MAV_CMD_SET_STORAGE_USAGE = 533,
1529
- // Set camera source. Changes the camera's active sources on cameras with multiple image sensors.
1530
- MAV_CMD_SET_CAMERA_SOURCE = 534,
1531
- // Tagged jump target. Can be jumped to with MAV_CMD_DO_JUMP_TAG.
1532
- MAV_CMD_JUMP_TAG = 600,
1533
- // Jump to the matching tag in the mission list. Repeat this action for the specified number of times. A mission should contain a single matching tag for each jump. If this is not the case then a jump to a missing tag should complete the mission, and a jump where there are multiple matching tags should always select the one with the lowest mission sequence number.
1534
- MAV_CMD_DO_JUMP_TAG = 601,
1535
- // Set gimbal manager pitch/yaw setpoints (low rate command). It is possible to set combinations of the values below. E.g. an angle as well as a desired angular rate can be used to get to this angle at a certain angular rate, or an angular rate only will result in continuous turning. NaN is to be used to signal unset. Note: only the gimbal manager will react to this command - it will be ignored by a gimbal device. Use GIMBAL_MANAGER_SET_PITCHYAW if you need to stream pitch/yaw setpoints at higher rate.
1536
- MAV_CMD_DO_GIMBAL_MANAGER_PITCHYAW = 1000,
1537
- // Gimbal configuration to set which sysid/compid is in primary and secondary control.
1538
- MAV_CMD_DO_GIMBAL_MANAGER_CONFIGURE = 1001,
1539
- // Start image capture sequence. CAMERA_IMAGE_CAPTURED must be emitted after each capture.
1540
- // Param1 (id) may be used to specify the target camera: 0: all cameras, 1 to 6: autopilot-connected cameras, 7-255: MAVLink camera component ID.
1541
- // It is needed in order to target specific cameras connected to the autopilot, or specific sensors in a multi-sensor camera (neither of which have a distinct MAVLink component ID).
1542
- // It is also needed to specify the target camera in missions.
1543
- // When used in a mission, an autopilot should execute the MAV_CMD for a specified local camera (param1 = 1-6), or resend it as a command if it is intended for a MAVLink camera (param1 = 7 - 255), setting the command's target_component as the param1 value (and setting param1 in the command to zero).
1544
- // If the param1 is 0 the autopilot should do both.
1545
- // When sent in a command the target MAVLink address is set using target_component.
1546
- // If addressed specifically to an autopilot: param1 should be used in the same way as it is for missions (though command should NACK with MAV_RESULT_DENIED if a specified local camera does not exist).
1547
- // If addressed to a MAVLink camera, param 1 can be used to address all cameras (0), or to separately address 1 to 7 individual sensors. Other values should be NACKed with MAV_RESULT_DENIED.
1548
- // If the command is broadcast (target_component is 0) then param 1 should be set to 0 (any other value should be NACKED with MAV_RESULT_DENIED). An autopilot would trigger any local cameras and forward the command to all channels.
1549
- MAV_CMD_IMAGE_START_CAPTURE = 2000,
1550
- // Stop image capture sequence.
1551
- // Param1 (id) may be used to specify the target camera: 0: all cameras, 1 to 6: autopilot-connected cameras, 7-255: MAVLink camera component ID.
1552
- // It is needed in order to target specific cameras connected to the autopilot, or specific sensors in a multi-sensor camera (neither of which have a distinct MAVLink component ID).
1553
- // It is also needed to specify the target camera in missions.
1554
- // When used in a mission, an autopilot should execute the MAV_CMD for a specified local camera (param1 = 1-6), or resend it as a command if it is intended for a MAVLink camera (param1 = 7 - 255), setting the command's target_component as the param1 value (and setting param1 in the command to zero).
1555
- // If the param1 is 0 the autopilot should do both.
1556
- // When sent in a command the target MAVLink address is set using target_component.
1557
- // If addressed specifically to an autopilot: param1 should be used in the same way as it is for missions (though command should NACK with MAV_RESULT_DENIED if a specified local camera does not exist).
1558
- // If addressed to a MAVLink camera, param1 can be used to address all cameras (0), or to separately address 1 to 7 individual sensors. Other values should be NACKed with MAV_RESULT_DENIED.
1559
- // If the command is broadcast (target_component is 0) then param 1 should be set to 0 (any other value should be NACKED with MAV_RESULT_DENIED). An autopilot would trigger any local cameras and forward the command to all channels.
1560
- MAV_CMD_IMAGE_STOP_CAPTURE = 2001,
1561
- // Re-request a CAMERA_IMAGE_CAPTURED message.
1562
- MAV_CMD_REQUEST_CAMERA_IMAGE_CAPTURE = 2002,
1563
- // Enable or disable on-board camera triggering system.
1564
- MAV_CMD_DO_TRIGGER_CONTROL = 2003,
1565
- // If the camera supports point visual tracking (CAMERA_CAP_FLAGS_HAS_TRACKING_POINT is set), this command allows to initiate the tracking.
1566
- MAV_CMD_CAMERA_TRACK_POINT = 2004,
1567
- // If the camera supports rectangle visual tracking (CAMERA_CAP_FLAGS_HAS_TRACKING_RECTANGLE is set), this command allows to initiate the tracking.
1568
- MAV_CMD_CAMERA_TRACK_RECTANGLE = 2005,
1569
- // Stops ongoing tracking.
1570
- MAV_CMD_CAMERA_STOP_TRACKING = 2010,
1571
- // Starts video capture (recording).
1572
- MAV_CMD_VIDEO_START_CAPTURE = 2500,
1573
- // Stop the current video capture (recording).
1574
- MAV_CMD_VIDEO_STOP_CAPTURE = 2501,
1575
- // Start video streaming
1576
- MAV_CMD_VIDEO_START_STREAMING = 2502,
1577
- // Stop the given video stream
1578
- MAV_CMD_VIDEO_STOP_STREAMING = 2503,
1579
- // Request video stream information (VIDEO_STREAM_INFORMATION)
1580
- MAV_CMD_REQUEST_VIDEO_STREAM_INFORMATION = 2504,
1581
- // Request video stream status (VIDEO_STREAM_STATUS)
1582
- MAV_CMD_REQUEST_VIDEO_STREAM_STATUS = 2505,
1583
- // Request to start streaming logging data over MAVLink (see also LOGGING_DATA message)
1584
- MAV_CMD_LOGGING_START = 2510,
1585
- // Request to stop streaming log data over MAVLink
1586
- MAV_CMD_LOGGING_STOP = 2511,
1587
- MAV_CMD_AIRFRAME_CONFIGURATION = 2520,
1588
- // Request to start/stop transmitting over the high latency telemetry
1589
- MAV_CMD_CONTROL_HIGH_LATENCY = 2600,
1590
- // Create a panorama at the current position
1591
- MAV_CMD_PANORAMA_CREATE = 2800,
1592
- // Request VTOL transition
1593
- MAV_CMD_DO_VTOL_TRANSITION = 3000,
1594
- // Request authorization to arm the vehicle to a external entity, the arm authorizer is responsible to request all data that is needs from the vehicle before authorize or deny the request.
1595
- // If approved the COMMAND_ACK message progress field should be set with period of time that this authorization is valid in seconds.
1596
- // If the authorization is denied COMMAND_ACK.result_param2 should be set with one of the reasons in ARM_AUTH_DENIED_REASON.
1597
- MAV_CMD_ARM_AUTHORIZATION_REQUEST = 3001,
1598
- // This command sets the submode to standard guided when vehicle is in guided mode. The vehicle holds position and altitude and the user can input the desired velocities along all three axes.
1599
- MAV_CMD_SET_GUIDED_SUBMODE_STANDARD = 4000,
1600
- // This command sets submode circle when vehicle is in guided mode. Vehicle flies along a circle facing the center of the circle. The user can input the velocity along the circle and change the radius. If no input is given the vehicle will hold position.
1601
- MAV_CMD_SET_GUIDED_SUBMODE_CIRCLE = 4001,
1602
- // Delay mission state machine until gate has been reached.
1603
- MAV_CMD_CONDITION_GATE = 4501,
1604
- // Fence return point (there can only be one such point in a geofence definition). If rally points are supported they should be used instead.
1605
- MAV_CMD_NAV_FENCE_RETURN_POINT = 5000,
1606
- // Fence vertex for an inclusion polygon (the polygon must not be self-intersecting). The vehicle must stay within this area. Minimum of 3 vertices required.
1607
- // The vertices for a polygon must be sent sequentially, each with param1 set to the total number of vertices in the polygon.
1608
- MAV_CMD_NAV_FENCE_POLYGON_VERTEX_INCLUSION = 5001,
1609
- // Fence vertex for an exclusion polygon (the polygon must not be self-intersecting). The vehicle must stay outside this area. Minimum of 3 vertices required.
1610
- // The vertices for a polygon must be sent sequentially, each with param1 set to the total number of vertices in the polygon.
1611
- MAV_CMD_NAV_FENCE_POLYGON_VERTEX_EXCLUSION = 5002,
1612
- // Circular fence area. The vehicle must stay inside this area.
1613
- MAV_CMD_NAV_FENCE_CIRCLE_INCLUSION = 5003,
1614
- // Circular fence area. The vehicle must stay outside this area.
1615
- MAV_CMD_NAV_FENCE_CIRCLE_EXCLUSION = 5004,
1616
- // Rally point. You can have multiple rally points defined.
1617
- MAV_CMD_NAV_RALLY_POINT = 5100,
1618
- // Commands the vehicle to respond with a sequence of messages UAVCAN_NODE_INFO, one message per every UAVCAN node that is online. Note that some of the response messages can be lost, which the receiver can detect easily by checking whether every received UAVCAN_NODE_STATUS has a matching message UAVCAN_NODE_INFO received earlier; if not, this command should be sent again in order to request re-transmission of the node information messages.
1619
- MAV_CMD_UAVCAN_GET_NODE_INFO = 5200,
1620
- // Change state of safety switch.
1621
- MAV_CMD_DO_SET_SAFETY_SWITCH_STATE = 5300,
1622
- // Trigger the start of an ADSB-out IDENT. This should only be used when requested to do so by an Air Traffic Controller in controlled airspace. This starts the IDENT which is then typically held for 18 seconds by the hardware per the Mode A, C, and S transponder spec.
1623
- MAV_CMD_DO_ADSB_OUT_IDENT = 10001,
1624
- // Deploy payload on a Lat / Lon / Alt position. This includes the navigation to reach the required release position and velocity.
1625
- MAV_CMD_PAYLOAD_PREPARE_DEPLOY = 30001,
1626
- // Control the payload deployment.
1627
- MAV_CMD_PAYLOAD_CONTROL_DEPLOY = 30002,
1628
- // Magnetometer calibration based on provided known yaw. This allows for fast calibration using WMM field tables in the vehicle, given only the known yaw of the vehicle. If Latitude and longitude are both zero then use the current vehicle location.
1629
- MAV_CMD_FIXED_MAG_CAL_YAW = 42006,
1630
- // Command to operate winch.
1631
- MAV_CMD_DO_WINCH = 42600,
1632
- // Provide an external position estimate for use when dead-reckoning. This is meant to be used for occasional position resets that may be provided by a external system such as a remote pilot using landmarks over a video link.
1633
- MAV_CMD_EXTERNAL_POSITION_ESTIMATE = 43003,
1634
- // User defined waypoint item. Ground Station will show the Vehicle as flying through this item.
1635
- MAV_CMD_WAYPOINT_USER_1 = 31000,
1636
- // User defined waypoint item. Ground Station will show the Vehicle as flying through this item.
1637
- MAV_CMD_WAYPOINT_USER_2 = 31001,
1638
- // User defined waypoint item. Ground Station will show the Vehicle as flying through this item.
1639
- MAV_CMD_WAYPOINT_USER_3 = 31002,
1640
- // User defined waypoint item. Ground Station will show the Vehicle as flying through this item.
1641
- MAV_CMD_WAYPOINT_USER_4 = 31003,
1642
- // User defined waypoint item. Ground Station will show the Vehicle as flying through this item.
1643
- MAV_CMD_WAYPOINT_USER_5 = 31004,
1644
- // User defined spatial item. Ground Station will not show the Vehicle as flying through this item. Example: ROI item.
1645
- MAV_CMD_SPATIAL_USER_1 = 31005,
1646
- // User defined spatial item. Ground Station will not show the Vehicle as flying through this item. Example: ROI item.
1647
- MAV_CMD_SPATIAL_USER_2 = 31006,
1648
- // User defined spatial item. Ground Station will not show the Vehicle as flying through this item. Example: ROI item.
1649
- MAV_CMD_SPATIAL_USER_3 = 31007,
1650
- // User defined spatial item. Ground Station will not show the Vehicle as flying through this item. Example: ROI item.
1651
- MAV_CMD_SPATIAL_USER_4 = 31008,
1652
- // User defined spatial item. Ground Station will not show the Vehicle as flying through this item. Example: ROI item.
1653
- MAV_CMD_SPATIAL_USER_5 = 31009,
1654
- // User defined command. Ground Station will not show the Vehicle as flying through this item. Example: MAV_CMD_DO_SET_PARAMETER item.
1655
- MAV_CMD_USER_1 = 31010,
1656
- // User defined command. Ground Station will not show the Vehicle as flying through this item. Example: MAV_CMD_DO_SET_PARAMETER item.
1657
- MAV_CMD_USER_2 = 31011,
1658
- // User defined command. Ground Station will not show the Vehicle as flying through this item. Example: MAV_CMD_DO_SET_PARAMETER item.
1659
- MAV_CMD_USER_3 = 31012,
1660
- // User defined command. Ground Station will not show the Vehicle as flying through this item. Example: MAV_CMD_DO_SET_PARAMETER item.
1661
- MAV_CMD_USER_4 = 31013,
1662
- // User defined command. Ground Station will not show the Vehicle as flying through this item. Example: MAV_CMD_DO_SET_PARAMETER item.
1663
- MAV_CMD_USER_5 = 31014,
1664
- // Request forwarding of CAN packets from the given CAN bus to this component. CAN Frames are sent using CAN_FRAME and CANFD_FRAME messages
1665
- MAV_CMD_CAN_FORWARD = 32000,
1666
- }
1667
-
1668
- // A data stream is not a fixed set of messages, but rather a
1669
- // recommendation to the autopilot software. Individual autopilots may or may not obey
1670
- // the recommended messages.
1671
- export enum MAV_DATA_STREAMEnum {
1672
- // Enable all data streams
1673
- MAV_DATA_STREAM_ALL = 0,
1674
- // Enable IMU_RAW, GPS_RAW, GPS_STATUS packets.
1675
- MAV_DATA_STREAM_RAW_SENSORS = 1,
1676
- // Enable GPS_STATUS, CONTROL_STATUS, AUX_STATUS
1677
- MAV_DATA_STREAM_EXTENDED_STATUS = 2,
1678
- // Enable RC_CHANNELS_SCALED, RC_CHANNELS_RAW, SERVO_OUTPUT_RAW
1679
- MAV_DATA_STREAM_RC_CHANNELS = 3,
1680
- // Enable ATTITUDE_CONTROLLER_OUTPUT, POSITION_CONTROLLER_OUTPUT, NAV_CONTROLLER_OUTPUT.
1681
- MAV_DATA_STREAM_RAW_CONTROLLER = 4,
1682
- // Enable LOCAL_POSITION, GLOBAL_POSITION_INT messages.
1683
- MAV_DATA_STREAM_POSITION = 6,
1684
- // Dependent on the autopilot
1685
- MAV_DATA_STREAM_EXTRA1 = 10,
1686
- // Dependent on the autopilot
1687
- MAV_DATA_STREAM_EXTRA2 = 11,
1688
- // Dependent on the autopilot
1689
- MAV_DATA_STREAM_EXTRA3 = 12,
1690
- }
1691
-
1692
- // The ROI (region of interest) for the vehicle. This can be
1693
- // be used by the vehicle for camera/vehicle attitude alignment (see
1694
- // MAV_CMD_NAV_ROI).
1695
- export enum MAV_ROIEnum {
1696
- // No region of interest.
1697
- MAV_ROI_NONE = 0,
1698
- // Point toward next waypoint, with optional pitch/roll/yaw offset.
1699
- MAV_ROI_WPNEXT = 1,
1700
- // Point toward given waypoint.
1701
- MAV_ROI_WPINDEX = 2,
1702
- // Point toward fixed location.
1703
- MAV_ROI_LOCATION = 3,
1704
- // Point toward of given id.
1705
- MAV_ROI_TARGET = 4,
1706
- }
1707
-
1708
- // Specifies the datatype of a MAVLink parameter.
1709
- export enum MAV_PARAM_TYPEEnum {
1710
- // 8-bit unsigned integer
1711
- MAV_PARAM_TYPE_UINT8 = 1,
1712
- // 8-bit signed integer
1713
- MAV_PARAM_TYPE_INT8 = 2,
1714
- // 16-bit unsigned integer
1715
- MAV_PARAM_TYPE_UINT16 = 3,
1716
- // 16-bit signed integer
1717
- MAV_PARAM_TYPE_INT16 = 4,
1718
- // 32-bit unsigned integer
1719
- MAV_PARAM_TYPE_UINT32 = 5,
1720
- // 32-bit signed integer
1721
- MAV_PARAM_TYPE_INT32 = 6,
1722
- // 64-bit unsigned integer
1723
- MAV_PARAM_TYPE_UINT64 = 7,
1724
- // 64-bit signed integer
1725
- MAV_PARAM_TYPE_INT64 = 8,
1726
- // 32-bit floating-point
1727
- MAV_PARAM_TYPE_REAL32 = 9,
1728
- // 64-bit floating-point
1729
- MAV_PARAM_TYPE_REAL64 = 10,
1730
- }
1731
-
1732
- // Specifies the datatype of a MAVLink extended parameter.
1733
- export enum MAV_PARAM_EXT_TYPEEnum {
1734
- // 8-bit unsigned integer
1735
- MAV_PARAM_EXT_TYPE_UINT8 = 1,
1736
- // 8-bit signed integer
1737
- MAV_PARAM_EXT_TYPE_INT8 = 2,
1738
- // 16-bit unsigned integer
1739
- MAV_PARAM_EXT_TYPE_UINT16 = 3,
1740
- // 16-bit signed integer
1741
- MAV_PARAM_EXT_TYPE_INT16 = 4,
1742
- // 32-bit unsigned integer
1743
- MAV_PARAM_EXT_TYPE_UINT32 = 5,
1744
- // 32-bit signed integer
1745
- MAV_PARAM_EXT_TYPE_INT32 = 6,
1746
- // 64-bit unsigned integer
1747
- MAV_PARAM_EXT_TYPE_UINT64 = 7,
1748
- // 64-bit signed integer
1749
- MAV_PARAM_EXT_TYPE_INT64 = 8,
1750
- // 32-bit floating-point
1751
- MAV_PARAM_EXT_TYPE_REAL32 = 9,
1752
- // 64-bit floating-point
1753
- MAV_PARAM_EXT_TYPE_REAL64 = 10,
1754
- // Custom Type
1755
- MAV_PARAM_EXT_TYPE_CUSTOM = 11,
1756
- }
1757
-
1758
- // Result from a MAVLink command (MAV_CMD)
1759
- export enum MAV_RESULTEnum {
1760
- // Command is valid (is supported and has valid parameters), and was executed.
1761
- MAV_RESULT_ACCEPTED = 0,
1762
- // Command is valid, but cannot be executed at this time. This is used to indicate a problem that should be fixed just by waiting (e.g. a state machine is busy, can't arm because have not got GPS lock, etc.). Retrying later should work.
1763
- MAV_RESULT_TEMPORARILY_REJECTED = 1,
1764
- // Command is invalid (is supported but has invalid parameters). Retrying same command and parameters will not work.
1765
- MAV_RESULT_DENIED = 2,
1766
- // Command is not supported (unknown).
1767
- MAV_RESULT_UNSUPPORTED = 3,
1768
- // Command is valid, but execution has failed. This is used to indicate any non-temporary or unexpected problem, i.e. any problem that must be fixed before the command can succeed/be retried. For example, attempting to write a file when out of memory, attempting to arm when sensors are not calibrated, etc.
1769
- MAV_RESULT_FAILED = 4,
1770
- // Command is valid and is being executed. This will be followed by further progress updates, i.e. the component may send further COMMAND_ACK messages with result MAV_RESULT_IN_PROGRESS (at a rate decided by the implementation), and must terminate by sending a COMMAND_ACK message with final result of the operation. The COMMAND_ACK.progress field can be used to indicate the progress of the operation.
1771
- MAV_RESULT_IN_PROGRESS = 5,
1772
- // Command has been cancelled (as a result of receiving a COMMAND_CANCEL message).
1773
- MAV_RESULT_CANCELLED = 6,
1774
- // Command is only accepted when sent as a COMMAND_LONG.
1775
- MAV_RESULT_COMMAND_LONG_ONLY = 7,
1776
- // Command is only accepted when sent as a COMMAND_INT.
1777
- MAV_RESULT_COMMAND_INT_ONLY = 8,
1778
- // Command is invalid because a frame is required and the specified frame is not supported.
1779
- MAV_RESULT_COMMAND_UNSUPPORTED_MAV_FRAME = 9,
1780
- }
1781
-
1782
- // Result of mission operation (in a MISSION_ACK message).
1783
- export enum MAV_MISSION_RESULTEnum {
1784
- // mission accepted OK
1785
- MAV_MISSION_ACCEPTED = 0,
1786
- // Generic error / not accepting mission commands at all right now.
1787
- MAV_MISSION_ERROR = 1,
1788
- // Coordinate frame is not supported.
1789
- MAV_MISSION_UNSUPPORTED_FRAME = 2,
1790
- // Command is not supported.
1791
- MAV_MISSION_UNSUPPORTED = 3,
1792
- // Mission items exceed storage space.
1793
- MAV_MISSION_NO_SPACE = 4,
1794
- // One of the parameters has an invalid value.
1795
- MAV_MISSION_INVALID = 5,
1796
- // param1 has an invalid value.
1797
- MAV_MISSION_INVALID_PARAM1 = 6,
1798
- // param2 has an invalid value.
1799
- MAV_MISSION_INVALID_PARAM2 = 7,
1800
- // param3 has an invalid value.
1801
- MAV_MISSION_INVALID_PARAM3 = 8,
1802
- // param4 has an invalid value.
1803
- MAV_MISSION_INVALID_PARAM4 = 9,
1804
- // x / param5 has an invalid value.
1805
- MAV_MISSION_INVALID_PARAM5_X = 10,
1806
- // y / param6 has an invalid value.
1807
- MAV_MISSION_INVALID_PARAM6_Y = 11,
1808
- // z / param7 has an invalid value.
1809
- MAV_MISSION_INVALID_PARAM7 = 12,
1810
- // Mission item received out of sequence
1811
- MAV_MISSION_INVALID_SEQUENCE = 13,
1812
- // Not accepting any mission commands from this communication partner.
1813
- MAV_MISSION_DENIED = 14,
1814
- // Current mission operation cancelled (e.g. mission upload, mission download).
1815
- MAV_MISSION_OPERATION_CANCELLED = 15,
1816
- }
1817
-
1818
- // Indicates the severity level, generally used for status messages to indicate their relative urgency. Based on RFC-5424 using expanded definitions at: http://www.kiwisyslog.com/kb/info:-syslog-message-levels/.
1819
- export enum MAV_SEVERITYEnum {
1820
- // System is unusable. This is a "panic" condition.
1821
- MAV_SEVERITY_EMERGENCY = 0,
1822
- // Action should be taken immediately. Indicates error in non-critical systems.
1823
- MAV_SEVERITY_ALERT = 1,
1824
- // Action must be taken immediately. Indicates failure in a primary system.
1825
- MAV_SEVERITY_CRITICAL = 2,
1826
- // Indicates an error in secondary/redundant systems.
1827
- MAV_SEVERITY_ERROR = 3,
1828
- // Indicates about a possible future error if this is not resolved within a given timeframe. Example would be a low battery warning.
1829
- MAV_SEVERITY_WARNING = 4,
1830
- // An unusual event has occurred, though not an error condition. This should be investigated for the root cause.
1831
- MAV_SEVERITY_NOTICE = 5,
1832
- // Normal operational messages. Useful for logging. No action is required for these messages.
1833
- MAV_SEVERITY_INFO = 6,
1834
- // Useful non-operational messages that can assist in debugging. These should not occur during normal operation.
1835
- MAV_SEVERITY_DEBUG = 7,
1836
- }
1837
-
1838
- // Power supply status flags (bitmask)
1839
- export enum MAV_POWER_STATUSEnum {
1840
- // main brick power supply valid
1841
- MAV_POWER_STATUS_BRICK_VALID = 1,
1842
- // main servo power supply valid for FMU
1843
- MAV_POWER_STATUS_SERVO_VALID = 2,
1844
- // USB power is connected
1845
- MAV_POWER_STATUS_USB_CONNECTED = 4,
1846
- // peripheral supply is in over-current state
1847
- MAV_POWER_STATUS_PERIPH_OVERCURRENT = 8,
1848
- // hi-power peripheral supply is in over-current state
1849
- MAV_POWER_STATUS_PERIPH_HIPOWER_OVERCURRENT = 16,
1850
- // Power status has changed since boot
1851
- MAV_POWER_STATUS_CHANGED = 32,
1852
- }
1853
-
1854
- // SERIAL_CONTROL device types
1855
- export enum SERIAL_CONTROL_DEVEnum {
1856
- // First telemetry port
1857
- SERIAL_CONTROL_DEV_TELEM1 = 0,
1858
- // Second telemetry port
1859
- SERIAL_CONTROL_DEV_TELEM2 = 1,
1860
- // First GPS port
1861
- SERIAL_CONTROL_DEV_GPS1 = 2,
1862
- // Second GPS port
1863
- SERIAL_CONTROL_DEV_GPS2 = 3,
1864
- // system shell
1865
- SERIAL_CONTROL_DEV_SHELL = 10,
1866
- // SERIAL0
1867
- SERIAL_CONTROL_SERIAL0 = 100,
1868
- // SERIAL1
1869
- SERIAL_CONTROL_SERIAL1 = 101,
1870
- // SERIAL2
1871
- SERIAL_CONTROL_SERIAL2 = 102,
1872
- // SERIAL3
1873
- SERIAL_CONTROL_SERIAL3 = 103,
1874
- // SERIAL4
1875
- SERIAL_CONTROL_SERIAL4 = 104,
1876
- // SERIAL5
1877
- SERIAL_CONTROL_SERIAL5 = 105,
1878
- // SERIAL6
1879
- SERIAL_CONTROL_SERIAL6 = 106,
1880
- // SERIAL7
1881
- SERIAL_CONTROL_SERIAL7 = 107,
1882
- // SERIAL8
1883
- SERIAL_CONTROL_SERIAL8 = 108,
1884
- // SERIAL9
1885
- SERIAL_CONTROL_SERIAL9 = 109,
1886
- }
1887
-
1888
- // SERIAL_CONTROL flags (bitmask)
1889
- export enum SERIAL_CONTROL_FLAGEnum {
1890
- // Set if this is a reply
1891
- SERIAL_CONTROL_FLAG_REPLY = 1,
1892
- // Set if the sender wants the receiver to send a response as another SERIAL_CONTROL message
1893
- SERIAL_CONTROL_FLAG_RESPOND = 2,
1894
- // Set if access to the serial port should be removed from whatever driver is currently using it, giving exclusive access to the SERIAL_CONTROL protocol. The port can be handed back by sending a request without this flag set
1895
- SERIAL_CONTROL_FLAG_EXCLUSIVE = 4,
1896
- // Block on writes to the serial port
1897
- SERIAL_CONTROL_FLAG_BLOCKING = 8,
1898
- // Send multiple replies until port is drained
1899
- SERIAL_CONTROL_FLAG_MULTI = 16,
1900
- }
1901
-
1902
- // Enumeration of distance sensor types
1903
- export enum MAV_DISTANCE_SENSOREnum {
1904
- // Laser rangefinder, e.g. LightWare SF02/F or PulsedLight units
1905
- MAV_DISTANCE_SENSOR_LASER = 0,
1906
- // Ultrasound rangefinder, e.g. MaxBotix units
1907
- MAV_DISTANCE_SENSOR_ULTRASOUND = 1,
1908
- // Infrared rangefinder, e.g. Sharp units
1909
- MAV_DISTANCE_SENSOR_INFRARED = 2,
1910
- // Radar type, e.g. uLanding units
1911
- MAV_DISTANCE_SENSOR_RADAR = 3,
1912
- // Broken or unknown type, e.g. analog units
1913
- MAV_DISTANCE_SENSOR_UNKNOWN = 4,
1914
- }
1915
-
1916
- // Enumeration of sensor orientation, according to its rotations
1917
- export enum MAV_SENSOR_ORIENTATIONEnum {
1918
- // Roll: 0, Pitch: 0, Yaw: 0
1919
- MAV_SENSOR_ROTATION_NONE = 0,
1920
- // Roll: 0, Pitch: 0, Yaw: 45
1921
- MAV_SENSOR_ROTATION_YAW_45 = 1,
1922
- // Roll: 0, Pitch: 0, Yaw: 90
1923
- MAV_SENSOR_ROTATION_YAW_90 = 2,
1924
- // Roll: 0, Pitch: 0, Yaw: 135
1925
- MAV_SENSOR_ROTATION_YAW_135 = 3,
1926
- // Roll: 0, Pitch: 0, Yaw: 180
1927
- MAV_SENSOR_ROTATION_YAW_180 = 4,
1928
- // Roll: 0, Pitch: 0, Yaw: 225
1929
- MAV_SENSOR_ROTATION_YAW_225 = 5,
1930
- // Roll: 0, Pitch: 0, Yaw: 270
1931
- MAV_SENSOR_ROTATION_YAW_270 = 6,
1932
- // Roll: 0, Pitch: 0, Yaw: 315
1933
- MAV_SENSOR_ROTATION_YAW_315 = 7,
1934
- // Roll: 180, Pitch: 0, Yaw: 0
1935
- MAV_SENSOR_ROTATION_ROLL_180 = 8,
1936
- // Roll: 180, Pitch: 0, Yaw: 45
1937
- MAV_SENSOR_ROTATION_ROLL_180_YAW_45 = 9,
1938
- // Roll: 180, Pitch: 0, Yaw: 90
1939
- MAV_SENSOR_ROTATION_ROLL_180_YAW_90 = 10,
1940
- // Roll: 180, Pitch: 0, Yaw: 135
1941
- MAV_SENSOR_ROTATION_ROLL_180_YAW_135 = 11,
1942
- // Roll: 0, Pitch: 180, Yaw: 0
1943
- MAV_SENSOR_ROTATION_PITCH_180 = 12,
1944
- // Roll: 180, Pitch: 0, Yaw: 225
1945
- MAV_SENSOR_ROTATION_ROLL_180_YAW_225 = 13,
1946
- // Roll: 180, Pitch: 0, Yaw: 270
1947
- MAV_SENSOR_ROTATION_ROLL_180_YAW_270 = 14,
1948
- // Roll: 180, Pitch: 0, Yaw: 315
1949
- MAV_SENSOR_ROTATION_ROLL_180_YAW_315 = 15,
1950
- // Roll: 90, Pitch: 0, Yaw: 0
1951
- MAV_SENSOR_ROTATION_ROLL_90 = 16,
1952
- // Roll: 90, Pitch: 0, Yaw: 45
1953
- MAV_SENSOR_ROTATION_ROLL_90_YAW_45 = 17,
1954
- // Roll: 90, Pitch: 0, Yaw: 90
1955
- MAV_SENSOR_ROTATION_ROLL_90_YAW_90 = 18,
1956
- // Roll: 90, Pitch: 0, Yaw: 135
1957
- MAV_SENSOR_ROTATION_ROLL_90_YAW_135 = 19,
1958
- // Roll: 270, Pitch: 0, Yaw: 0
1959
- MAV_SENSOR_ROTATION_ROLL_270 = 20,
1960
- // Roll: 270, Pitch: 0, Yaw: 45
1961
- MAV_SENSOR_ROTATION_ROLL_270_YAW_45 = 21,
1962
- // Roll: 270, Pitch: 0, Yaw: 90
1963
- MAV_SENSOR_ROTATION_ROLL_270_YAW_90 = 22,
1964
- // Roll: 270, Pitch: 0, Yaw: 135
1965
- MAV_SENSOR_ROTATION_ROLL_270_YAW_135 = 23,
1966
- // Roll: 0, Pitch: 90, Yaw: 0
1967
- MAV_SENSOR_ROTATION_PITCH_90 = 24,
1968
- // Roll: 0, Pitch: 270, Yaw: 0
1969
- MAV_SENSOR_ROTATION_PITCH_270 = 25,
1970
- // Roll: 0, Pitch: 180, Yaw: 90
1971
- MAV_SENSOR_ROTATION_PITCH_180_YAW_90 = 26,
1972
- // Roll: 0, Pitch: 180, Yaw: 270
1973
- MAV_SENSOR_ROTATION_PITCH_180_YAW_270 = 27,
1974
- // Roll: 90, Pitch: 90, Yaw: 0
1975
- MAV_SENSOR_ROTATION_ROLL_90_PITCH_90 = 28,
1976
- // Roll: 180, Pitch: 90, Yaw: 0
1977
- MAV_SENSOR_ROTATION_ROLL_180_PITCH_90 = 29,
1978
- // Roll: 270, Pitch: 90, Yaw: 0
1979
- MAV_SENSOR_ROTATION_ROLL_270_PITCH_90 = 30,
1980
- // Roll: 90, Pitch: 180, Yaw: 0
1981
- MAV_SENSOR_ROTATION_ROLL_90_PITCH_180 = 31,
1982
- // Roll: 270, Pitch: 180, Yaw: 0
1983
- MAV_SENSOR_ROTATION_ROLL_270_PITCH_180 = 32,
1984
- // Roll: 90, Pitch: 270, Yaw: 0
1985
- MAV_SENSOR_ROTATION_ROLL_90_PITCH_270 = 33,
1986
- // Roll: 180, Pitch: 270, Yaw: 0
1987
- MAV_SENSOR_ROTATION_ROLL_180_PITCH_270 = 34,
1988
- // Roll: 270, Pitch: 270, Yaw: 0
1989
- MAV_SENSOR_ROTATION_ROLL_270_PITCH_270 = 35,
1990
- // Roll: 90, Pitch: 180, Yaw: 90
1991
- MAV_SENSOR_ROTATION_ROLL_90_PITCH_180_YAW_90 = 36,
1992
- // Roll: 90, Pitch: 0, Yaw: 270
1993
- MAV_SENSOR_ROTATION_ROLL_90_YAW_270 = 37,
1994
- // Roll: 90, Pitch: 68, Yaw: 293
1995
- MAV_SENSOR_ROTATION_ROLL_90_PITCH_68_YAW_293 = 38,
1996
- // Pitch: 315
1997
- MAV_SENSOR_ROTATION_PITCH_315 = 39,
1998
- // Roll: 90, Pitch: 315
1999
- MAV_SENSOR_ROTATION_ROLL_90_PITCH_315 = 40,
2000
- // Custom orientation
2001
- MAV_SENSOR_ROTATION_CUSTOM = 100,
2002
- }
2003
-
2004
- // Bitmask of (optional) autopilot capabilities (64 bit). If a bit is set, the autopilot supports this capability.
2005
- export enum MAV_PROTOCOL_CAPABILITYEnum {
2006
- // Autopilot supports the MISSION_ITEM float message type.
2007
- // Note that MISSION_ITEM is deprecated, and autopilots should use MISSION_INT instead.
2008
- MAV_PROTOCOL_CAPABILITY_MISSION_FLOAT = 1,
2009
- // Autopilot supports the new param float message type.
2010
- MAV_PROTOCOL_CAPABILITY_PARAM_FLOAT = 2,
2011
- // Autopilot supports MISSION_ITEM_INT scaled integer message type.
2012
- // Note that this flag must always be set if missions are supported, because missions must always use MISSION_ITEM_INT (rather than MISSION_ITEM, which is deprecated).
2013
- MAV_PROTOCOL_CAPABILITY_MISSION_INT = 4,
2014
- // Autopilot supports COMMAND_INT scaled integer message type.
2015
- MAV_PROTOCOL_CAPABILITY_COMMAND_INT = 8,
2016
- // Parameter protocol uses byte-wise encoding of parameter values into param_value (float) fields: https://mavlink.io/en/services/parameter.html#parameter-encoding.
2017
- // Note that either this flag or MAV_PROTOCOL_CAPABILITY_PARAM_ENCODE_C_CAST should be set if the parameter protocol is supported.
2018
- MAV_PROTOCOL_CAPABILITY_PARAM_ENCODE_BYTEWISE = 16,
2019
- // Autopilot supports the File Transfer Protocol v1: https://mavlink.io/en/services/ftp.html.
2020
- MAV_PROTOCOL_CAPABILITY_FTP = 32,
2021
- // Autopilot supports commanding attitude offboard.
2022
- MAV_PROTOCOL_CAPABILITY_SET_ATTITUDE_TARGET = 64,
2023
- // Autopilot supports commanding position and velocity targets in local NED frame.
2024
- MAV_PROTOCOL_CAPABILITY_SET_POSITION_TARGET_LOCAL_NED = 128,
2025
- // Autopilot supports commanding position and velocity targets in global scaled integers.
2026
- MAV_PROTOCOL_CAPABILITY_SET_POSITION_TARGET_GLOBAL_INT = 256,
2027
- // Autopilot supports terrain protocol / data handling.
2028
- MAV_PROTOCOL_CAPABILITY_TERRAIN = 512,
2029
- // Reserved for future use.
2030
- MAV_PROTOCOL_CAPABILITY_RESERVED3 = 1024,
2031
- // Autopilot supports the MAV_CMD_DO_FLIGHTTERMINATION command (flight termination).
2032
- MAV_PROTOCOL_CAPABILITY_FLIGHT_TERMINATION = 2048,
2033
- // Autopilot supports onboard compass calibration.
2034
- MAV_PROTOCOL_CAPABILITY_COMPASS_CALIBRATION = 4096,
2035
- // Autopilot supports MAVLink version 2.
2036
- MAV_PROTOCOL_CAPABILITY_MAVLINK2 = 8192,
2037
- // Autopilot supports mission fence protocol.
2038
- MAV_PROTOCOL_CAPABILITY_MISSION_FENCE = 16384,
2039
- // Autopilot supports mission rally point protocol.
2040
- MAV_PROTOCOL_CAPABILITY_MISSION_RALLY = 32768,
2041
- // Reserved for future use.
2042
- MAV_PROTOCOL_CAPABILITY_RESERVED2 = 65536,
2043
- // Parameter protocol uses C-cast of parameter values to set the param_value (float) fields: https://mavlink.io/en/services/parameter.html#parameter-encoding.
2044
- // Note that either this flag or MAV_PROTOCOL_CAPABILITY_PARAM_ENCODE_BYTEWISE should be set if the parameter protocol is supported.
2045
- MAV_PROTOCOL_CAPABILITY_PARAM_ENCODE_C_CAST = 131072,
2046
- // This component implements/is a gimbal manager. This means the GIMBAL_MANAGER_INFORMATION, and other messages can be requested.
2047
- MAV_PROTOCOL_CAPABILITY_COMPONENT_IMPLEMENTS_GIMBAL_MANAGER = 262144,
2048
- // Component supports locking control to a particular GCS independent of its system (via MAV_CMD_REQUEST_OPERATOR_CONTROL).
2049
- MAV_PROTOCOL_CAPABILITY_COMPONENT_ACCEPTS_GCS_CONTROL = 524288,
2050
- // Autopilot has a connected gripper. MAVLink Grippers would set MAV_TYPE_GRIPPER instead.
2051
- MAV_PROTOCOL_CAPABILITY_GRIPPER = 1048576,
2052
- }
2053
-
2054
- // Type of mission items being requested/sent in mission protocol.
2055
- export enum MAV_MISSION_TYPEEnum {
2056
- // Items are mission commands for main mission.
2057
- MAV_MISSION_TYPE_MISSION = 0,
2058
- // Specifies GeoFence area(s). Items are MAV_CMD_NAV_FENCE_ GeoFence items.
2059
- MAV_MISSION_TYPE_FENCE = 1,
2060
- // Specifies the rally points for the vehicle. Rally points are alternative RTL points. Items are MAV_CMD_NAV_RALLY_POINT rally point items.
2061
- MAV_MISSION_TYPE_RALLY = 2,
2062
- // Only used in MISSION_CLEAR_ALL to clear all mission types.
2063
- MAV_MISSION_TYPE_ALL = 255,
2064
- }
2065
-
2066
- // Enumeration of estimator types
2067
- export enum MAV_ESTIMATOR_TYPEEnum {
2068
- // Unknown type of the estimator.
2069
- MAV_ESTIMATOR_TYPE_UNKNOWN = 0,
2070
- // This is a naive estimator without any real covariance feedback.
2071
- MAV_ESTIMATOR_TYPE_NAIVE = 1,
2072
- // Computer vision based estimate. Might be up to scale.
2073
- MAV_ESTIMATOR_TYPE_VISION = 2,
2074
- // Visual-inertial estimate.
2075
- MAV_ESTIMATOR_TYPE_VIO = 3,
2076
- // Plain GPS estimate.
2077
- MAV_ESTIMATOR_TYPE_GPS = 4,
2078
- // Estimator integrating GPS and inertial sensing.
2079
- MAV_ESTIMATOR_TYPE_GPS_INS = 5,
2080
- // Estimate from external motion capturing system.
2081
- MAV_ESTIMATOR_TYPE_MOCAP = 6,
2082
- // Estimator based on lidar sensor input.
2083
- MAV_ESTIMATOR_TYPE_LIDAR = 7,
2084
- // Estimator on autopilot.
2085
- MAV_ESTIMATOR_TYPE_AUTOPILOT = 8,
2086
- }
2087
-
2088
- // Enumeration of battery types
2089
- export enum MAV_BATTERY_TYPEEnum {
2090
- // Not specified.
2091
- MAV_BATTERY_TYPE_UNKNOWN = 0,
2092
- // Lithium polymer battery
2093
- MAV_BATTERY_TYPE_LIPO = 1,
2094
- // Lithium-iron-phosphate battery
2095
- MAV_BATTERY_TYPE_LIFE = 2,
2096
- // Lithium-ION battery
2097
- MAV_BATTERY_TYPE_LION = 3,
2098
- // Nickel metal hydride battery
2099
- MAV_BATTERY_TYPE_NIMH = 4,
2100
- }
2101
-
2102
- // Enumeration of battery functions
2103
- export enum MAV_BATTERY_FUNCTIONEnum {
2104
- // Battery function is unknown
2105
- MAV_BATTERY_FUNCTION_UNKNOWN = 0,
2106
- // Battery supports all flight systems
2107
- MAV_BATTERY_FUNCTION_ALL = 1,
2108
- // Battery for the propulsion system
2109
- MAV_BATTERY_FUNCTION_PROPULSION = 2,
2110
- // Avionics battery
2111
- MAV_BATTERY_FUNCTION_AVIONICS = 3,
2112
- // Payload battery
2113
- MAV_BATTERY_FUNCTION_PAYLOAD = 4,
2114
- }
2115
-
2116
- // Enumeration for battery charge states.
2117
- export enum MAV_BATTERY_CHARGE_STATEEnum {
2118
- // Low battery state is not provided
2119
- MAV_BATTERY_CHARGE_STATE_UNDEFINED = 0,
2120
- // Battery is not in low state. Normal operation.
2121
- MAV_BATTERY_CHARGE_STATE_OK = 1,
2122
- // Battery state is low, warn and monitor close.
2123
- MAV_BATTERY_CHARGE_STATE_LOW = 2,
2124
- // Battery state is critical, return or abort immediately.
2125
- MAV_BATTERY_CHARGE_STATE_CRITICAL = 3,
2126
- // Battery state is too low for ordinary abort sequence. Perform fastest possible emergency stop to prevent damage.
2127
- MAV_BATTERY_CHARGE_STATE_EMERGENCY = 4,
2128
- // Battery failed, damage unavoidable. Possible causes (faults) are listed in MAV_BATTERY_FAULT.
2129
- MAV_BATTERY_CHARGE_STATE_FAILED = 5,
2130
- // Battery is diagnosed to be defective or an error occurred, usage is discouraged / prohibited. Possible causes (faults) are listed in MAV_BATTERY_FAULT.
2131
- MAV_BATTERY_CHARGE_STATE_UNHEALTHY = 6,
2132
- // Battery is charging.
2133
- MAV_BATTERY_CHARGE_STATE_CHARGING = 7,
2134
- }
2135
-
2136
- // Battery mode. Note, the normal operation mode (i.e. when flying) should be reported as MAV_BATTERY_MODE_UNKNOWN to allow message trimming in normal flight.
2137
- export enum MAV_BATTERY_MODEEnum {
2138
- // Battery mode not supported/unknown battery mode/normal operation.
2139
- MAV_BATTERY_MODE_UNKNOWN = 0,
2140
- // Battery is auto discharging (towards storage level).
2141
- MAV_BATTERY_MODE_AUTO_DISCHARGING = 1,
2142
- // Battery in hot-swap mode (current limited to prevent spikes that might damage sensitive electrical circuits).
2143
- MAV_BATTERY_MODE_HOT_SWAP = 2,
2144
- }
2145
-
2146
- // Smart battery supply status/fault flags (bitmask) for health indication. The battery must also report either MAV_BATTERY_CHARGE_STATE_FAILED or MAV_BATTERY_CHARGE_STATE_UNHEALTHY if any of these are set.
2147
- export enum MAV_BATTERY_FAULTEnum {
2148
- // Battery has deep discharged.
2149
- MAV_BATTERY_FAULT_DEEP_DISCHARGE = 1,
2150
- // Voltage spikes.
2151
- MAV_BATTERY_FAULT_SPIKES = 2,
2152
- // One or more cells have failed. Battery should also report MAV_BATTERY_CHARGE_STATE_FAILE (and should not be used).
2153
- MAV_BATTERY_FAULT_CELL_FAIL = 4,
2154
- // Over-current fault.
2155
- MAV_BATTERY_FAULT_OVER_CURRENT = 8,
2156
- // Over-temperature fault.
2157
- MAV_BATTERY_FAULT_OVER_TEMPERATURE = 16,
2158
- // Under-temperature fault.
2159
- MAV_BATTERY_FAULT_UNDER_TEMPERATURE = 32,
2160
- // Vehicle voltage is not compatible with this battery (batteries on same power rail should have similar voltage).
2161
- MAV_BATTERY_FAULT_INCOMPATIBLE_VOLTAGE = 64,
2162
- // Battery firmware is not compatible with current autopilot firmware.
2163
- MAV_BATTERY_FAULT_INCOMPATIBLE_FIRMWARE = 128,
2164
- // Battery is not compatible due to cell configuration (e.g. 5s1p when vehicle requires 6s).
2165
- BATTERY_FAULT_INCOMPATIBLE_CELLS_CONFIGURATION = 256,
2166
- }
2167
-
2168
- // Fuel types for use in FUEL_TYPE. Fuel types specify the units for the maximum, available and consumed fuel, and for the flow rates.
2169
- export enum MAV_FUEL_TYPEEnum {
2170
- // Not specified. Fuel levels are normalized (i.e. maximum is 1, and other levels are relative to 1).
2171
- MAV_FUEL_TYPE_UNKNOWN = 0,
2172
- // A generic liquid fuel. Fuel levels are in millilitres (ml). Fuel rates are in millilitres/second.
2173
- MAV_FUEL_TYPE_LIQUID = 1,
2174
- // A gas tank. Fuel levels are in kilo-Pascal (kPa), and flow rates are in milliliters per second (ml/s).
2175
- MAV_FUEL_TYPE_GAS = 2,
2176
- }
2177
-
2178
- // Flags to report status/failure cases for a power generator (used in GENERATOR_STATUS). Note that FAULTS are conditions that cause the generator to fail. Warnings are conditions that require attention before the next use (they indicate the system is not operating properly).
2179
- export enum MAV_GENERATOR_STATUS_FLAGEnum {
2180
- // Generator is off.
2181
- MAV_GENERATOR_STATUS_FLAG_OFF = 1,
2182
- // Generator is ready to start generating power.
2183
- MAV_GENERATOR_STATUS_FLAG_READY = 2,
2184
- // Generator is generating power.
2185
- MAV_GENERATOR_STATUS_FLAG_GENERATING = 4,
2186
- // Generator is charging the batteries (generating enough power to charge and provide the load).
2187
- MAV_GENERATOR_STATUS_FLAG_CHARGING = 8,
2188
- // Generator is operating at a reduced maximum power.
2189
- MAV_GENERATOR_STATUS_FLAG_REDUCED_POWER = 16,
2190
- // Generator is providing the maximum output.
2191
- MAV_GENERATOR_STATUS_FLAG_MAXPOWER = 32,
2192
- // Generator is near the maximum operating temperature, cooling is insufficient.
2193
- MAV_GENERATOR_STATUS_FLAG_OVERTEMP_WARNING = 64,
2194
- // Generator hit the maximum operating temperature and shutdown.
2195
- MAV_GENERATOR_STATUS_FLAG_OVERTEMP_FAULT = 128,
2196
- // Power electronics are near the maximum operating temperature, cooling is insufficient.
2197
- MAV_GENERATOR_STATUS_FLAG_ELECTRONICS_OVERTEMP_WARNING = 256,
2198
- // Power electronics hit the maximum operating temperature and shutdown.
2199
- MAV_GENERATOR_STATUS_FLAG_ELECTRONICS_OVERTEMP_FAULT = 512,
2200
- // Power electronics experienced a fault and shutdown.
2201
- MAV_GENERATOR_STATUS_FLAG_ELECTRONICS_FAULT = 1024,
2202
- // The power source supplying the generator failed e.g. mechanical generator stopped, tether is no longer providing power, solar cell is in shade, hydrogen reaction no longer happening.
2203
- MAV_GENERATOR_STATUS_FLAG_POWERSOURCE_FAULT = 2048,
2204
- // Generator controller having communication problems.
2205
- MAV_GENERATOR_STATUS_FLAG_COMMUNICATION_WARNING = 4096,
2206
- // Power electronic or generator cooling system error.
2207
- MAV_GENERATOR_STATUS_FLAG_COOLING_WARNING = 8192,
2208
- // Generator controller power rail experienced a fault.
2209
- MAV_GENERATOR_STATUS_FLAG_POWER_RAIL_FAULT = 16384,
2210
- // Generator controller exceeded the overcurrent threshold and shutdown to prevent damage.
2211
- MAV_GENERATOR_STATUS_FLAG_OVERCURRENT_FAULT = 32768,
2212
- // Generator controller detected a high current going into the batteries and shutdown to prevent battery damage.
2213
- MAV_GENERATOR_STATUS_FLAG_BATTERY_OVERCHARGE_CURRENT_FAULT = 65536,
2214
- // Generator controller exceeded it's overvoltage threshold and shutdown to prevent it exceeding the voltage rating.
2215
- MAV_GENERATOR_STATUS_FLAG_OVERVOLTAGE_FAULT = 131072,
2216
- // Batteries are under voltage (generator will not start).
2217
- MAV_GENERATOR_STATUS_FLAG_BATTERY_UNDERVOLT_FAULT = 262144,
2218
- // Generator start is inhibited by e.g. a safety switch.
2219
- MAV_GENERATOR_STATUS_FLAG_START_INHIBITED = 524288,
2220
- // Generator requires maintenance.
2221
- MAV_GENERATOR_STATUS_FLAG_MAINTENANCE_REQUIRED = 1048576,
2222
- // Generator is not ready to generate yet.
2223
- MAV_GENERATOR_STATUS_FLAG_WARMING_UP = 2097152,
2224
- // Generator is idle.
2225
- MAV_GENERATOR_STATUS_FLAG_IDLE = 4194304,
2226
- }
2227
-
2228
- // Enumeration of VTOL states
2229
- export enum MAV_VTOL_STATEEnum {
2230
- // MAV is not configured as VTOL
2231
- MAV_VTOL_STATE_UNDEFINED = 0,
2232
- // VTOL is in transition from multicopter to fixed-wing
2233
- MAV_VTOL_STATE_TRANSITION_TO_FW = 1,
2234
- // VTOL is in transition from fixed-wing to multicopter
2235
- MAV_VTOL_STATE_TRANSITION_TO_MC = 2,
2236
- // VTOL is in multicopter state
2237
- MAV_VTOL_STATE_MC = 3,
2238
- // VTOL is in fixed-wing state
2239
- MAV_VTOL_STATE_FW = 4,
2240
- }
2241
-
2242
- // Enumeration of landed detector states
2243
- export enum MAV_LANDED_STATEEnum {
2244
- // MAV landed state is unknown
2245
- MAV_LANDED_STATE_UNDEFINED = 0,
2246
- // MAV is landed (on ground)
2247
- MAV_LANDED_STATE_ON_GROUND = 1,
2248
- // MAV is in air
2249
- MAV_LANDED_STATE_IN_AIR = 2,
2250
- // MAV currently taking off
2251
- MAV_LANDED_STATE_TAKEOFF = 3,
2252
- // MAV currently landing
2253
- MAV_LANDED_STATE_LANDING = 4,
2254
- }
2255
-
2256
- // Enumeration of the ADSB altimeter types
2257
- export enum ADSB_ALTITUDE_TYPEEnum {
2258
- // Altitude reported from a Baro source using QNH reference
2259
- ADSB_ALTITUDE_TYPE_PRESSURE_QNH = 0,
2260
- // Altitude reported from a GNSS source
2261
- ADSB_ALTITUDE_TYPE_GEOMETRIC = 1,
2262
- }
2263
-
2264
- // ADSB classification for the type of vehicle emitting the transponder signal
2265
- export enum ADSB_EMITTER_TYPEEnum {
2266
- ADSB_EMITTER_TYPE_NO_INFO = 0,
2267
- ADSB_EMITTER_TYPE_LIGHT = 1,
2268
- ADSB_EMITTER_TYPE_SMALL = 2,
2269
- ADSB_EMITTER_TYPE_LARGE = 3,
2270
- ADSB_EMITTER_TYPE_HIGH_VORTEX_LARGE = 4,
2271
- ADSB_EMITTER_TYPE_HEAVY = 5,
2272
- ADSB_EMITTER_TYPE_HIGHLY_MANUV = 6,
2273
- ADSB_EMITTER_TYPE_ROTOCRAFT = 7,
2274
- ADSB_EMITTER_TYPE_UNASSIGNED = 8,
2275
- ADSB_EMITTER_TYPE_GLIDER = 9,
2276
- ADSB_EMITTER_TYPE_LIGHTER_AIR = 10,
2277
- ADSB_EMITTER_TYPE_PARACHUTE = 11,
2278
- ADSB_EMITTER_TYPE_ULTRA_LIGHT = 12,
2279
- ADSB_EMITTER_TYPE_UNASSIGNED2 = 13,
2280
- ADSB_EMITTER_TYPE_UAV = 14,
2281
- ADSB_EMITTER_TYPE_SPACE = 15,
2282
- ADSB_EMITTER_TYPE_UNASSGINED3 = 16,
2283
- ADSB_EMITTER_TYPE_EMERGENCY_SURFACE = 17,
2284
- ADSB_EMITTER_TYPE_SERVICE_SURFACE = 18,
2285
- ADSB_EMITTER_TYPE_POINT_OBSTACLE = 19,
2286
- }
2287
-
2288
- // These flags indicate status such as data validity of each data source. Set = data valid
2289
- export enum ADSB_FLAGSEnum {
2290
- ADSB_FLAGS_VALID_COORDS = 1,
2291
- ADSB_FLAGS_VALID_ALTITUDE = 2,
2292
- ADSB_FLAGS_VALID_HEADING = 4,
2293
- ADSB_FLAGS_VALID_VELOCITY = 8,
2294
- ADSB_FLAGS_VALID_CALLSIGN = 16,
2295
- ADSB_FLAGS_VALID_SQUAWK = 32,
2296
- ADSB_FLAGS_SIMULATED = 64,
2297
- ADSB_FLAGS_VERTICAL_VELOCITY_VALID = 128,
2298
- ADSB_FLAGS_BARO_VALID = 256,
2299
- ADSB_FLAGS_SOURCE_UAT = 32768,
2300
- }
2301
-
2302
- // Bitmap of options for the MAV_CMD_DO_REPOSITION
2303
- export enum MAV_DO_REPOSITION_FLAGSEnum {
2304
- // The aircraft should immediately transition into guided. This should not be set for follow me applications
2305
- MAV_DO_REPOSITION_FLAGS_CHANGE_MODE = 1,
2306
- // Yaw relative to the vehicle current heading (if not set, relative to North).
2307
- MAV_DO_REPOSITION_FLAGS_RELATIVE_YAW = 2,
2308
- }
2309
-
2310
- // Speed setpoint types used in MAV_CMD_DO_CHANGE_SPEED
2311
- export enum SPEED_TYPEEnum {
2312
- // Airspeed
2313
- SPEED_TYPE_AIRSPEED = 0,
2314
- // Groundspeed
2315
- SPEED_TYPE_GROUNDSPEED = 1,
2316
- // Climb speed
2317
- SPEED_TYPE_CLIMB_SPEED = 2,
2318
- // Descent speed
2319
- SPEED_TYPE_DESCENT_SPEED = 3,
2320
- }
2321
-
2322
- // Flags in ESTIMATOR_STATUS message
2323
- export enum ESTIMATOR_STATUS_FLAGSEnum {
2324
- // True if the attitude estimate is good
2325
- ESTIMATOR_ATTITUDE = 1,
2326
- // True if the horizontal velocity estimate is good
2327
- ESTIMATOR_VELOCITY_HORIZ = 2,
2328
- // True if the vertical velocity estimate is good
2329
- ESTIMATOR_VELOCITY_VERT = 4,
2330
- // True if the horizontal position (relative) estimate is good
2331
- ESTIMATOR_POS_HORIZ_REL = 8,
2332
- // True if the horizontal position (absolute) estimate is good
2333
- ESTIMATOR_POS_HORIZ_ABS = 16,
2334
- // True if the vertical position (absolute) estimate is good
2335
- ESTIMATOR_POS_VERT_ABS = 32,
2336
- // True if the vertical position (above ground) estimate is good
2337
- ESTIMATOR_POS_VERT_AGL = 64,
2338
- // True if the EKF is in a constant position mode and is not using external measurements (eg GPS or optical flow)
2339
- ESTIMATOR_CONST_POS_MODE = 128,
2340
- // True if the EKF has sufficient data to enter a mode that will provide a (relative) position estimate
2341
- ESTIMATOR_PRED_POS_HORIZ_REL = 256,
2342
- // True if the EKF has sufficient data to enter a mode that will provide a (absolute) position estimate
2343
- ESTIMATOR_PRED_POS_HORIZ_ABS = 512,
2344
- // True if the EKF has detected a GPS glitch
2345
- ESTIMATOR_GPS_GLITCH = 1024,
2346
- // True if the EKF has detected bad accelerometer data
2347
- ESTIMATOR_ACCEL_ERROR = 2048,
2348
- }
2349
-
2350
- // Sequence that motors are tested when using MAV_CMD_DO_MOTOR_TEST.
2351
- export enum MOTOR_TEST_ORDEREnum {
2352
- // Default autopilot motor test method.
2353
- MOTOR_TEST_ORDER_DEFAULT = 0,
2354
- // Motor numbers are specified as their index in a predefined vehicle-specific sequence.
2355
- MOTOR_TEST_ORDER_SEQUENCE = 1,
2356
- // Motor numbers are specified as the output as labeled on the board.
2357
- MOTOR_TEST_ORDER_BOARD = 2,
2358
- }
2359
-
2360
- // Defines how throttle value is represented in MAV_CMD_DO_MOTOR_TEST.
2361
- export enum MOTOR_TEST_THROTTLE_TYPEEnum {
2362
- // Throttle as a percentage (0 ~ 100)
2363
- MOTOR_TEST_THROTTLE_PERCENT = 0,
2364
- // Throttle as an absolute PWM value (normally in range of 1000~2000).
2365
- MOTOR_TEST_THROTTLE_PWM = 1,
2366
- // Throttle pass-through from pilot's transmitter.
2367
- MOTOR_TEST_THROTTLE_PILOT = 2,
2368
- // Per-motor compass calibration test.
2369
- MOTOR_TEST_COMPASS_CAL = 3,
2370
- }
2371
-
2372
- export enum GPS_INPUT_IGNORE_FLAGSEnum {
2373
- // ignore altitude field
2374
- GPS_INPUT_IGNORE_FLAG_ALT = 1,
2375
- // ignore hdop field
2376
- GPS_INPUT_IGNORE_FLAG_HDOP = 2,
2377
- // ignore vdop field
2378
- GPS_INPUT_IGNORE_FLAG_VDOP = 4,
2379
- // ignore horizontal velocity field (vn and ve)
2380
- GPS_INPUT_IGNORE_FLAG_VEL_HORIZ = 8,
2381
- // ignore vertical velocity field (vd)
2382
- GPS_INPUT_IGNORE_FLAG_VEL_VERT = 16,
2383
- // ignore speed accuracy field
2384
- GPS_INPUT_IGNORE_FLAG_SPEED_ACCURACY = 32,
2385
- // ignore horizontal accuracy field
2386
- GPS_INPUT_IGNORE_FLAG_HORIZONTAL_ACCURACY = 64,
2387
- // ignore vertical accuracy field
2388
- GPS_INPUT_IGNORE_FLAG_VERTICAL_ACCURACY = 128,
2389
- }
2390
-
2391
- // Possible actions an aircraft can take to avoid a collision.
2392
- export enum MAV_COLLISION_ACTIONEnum {
2393
- // Ignore any potential collisions
2394
- MAV_COLLISION_ACTION_NONE = 0,
2395
- // Report potential collision
2396
- MAV_COLLISION_ACTION_REPORT = 1,
2397
- // Ascend or Descend to avoid threat
2398
- MAV_COLLISION_ACTION_ASCEND_OR_DESCEND = 2,
2399
- // Move horizontally to avoid threat
2400
- MAV_COLLISION_ACTION_MOVE_HORIZONTALLY = 3,
2401
- // Aircraft to move perpendicular to the collision's velocity vector
2402
- MAV_COLLISION_ACTION_MOVE_PERPENDICULAR = 4,
2403
- // Aircraft to fly directly back to its launch point
2404
- MAV_COLLISION_ACTION_RTL = 5,
2405
- // Aircraft to stop in place
2406
- MAV_COLLISION_ACTION_HOVER = 6,
2407
- }
2408
-
2409
- // Aircraft-rated danger from this threat.
2410
- export enum MAV_COLLISION_THREAT_LEVELEnum {
2411
- // Not a threat
2412
- MAV_COLLISION_THREAT_LEVEL_NONE = 0,
2413
- // Craft is mildly concerned about this threat
2414
- MAV_COLLISION_THREAT_LEVEL_LOW = 1,
2415
- // Craft is panicking, and may take actions to avoid threat
2416
- MAV_COLLISION_THREAT_LEVEL_HIGH = 2,
2417
- }
2418
-
2419
- // Source of information about this collision.
2420
- export enum MAV_COLLISION_SRCEnum {
2421
- // ID field references ADSB_VEHICLE packets
2422
- MAV_COLLISION_SRC_ADSB = 0,
2423
- // ID field references MAVLink SRC ID
2424
- MAV_COLLISION_SRC_MAVLINK_GPS_GLOBAL_INT = 1,
2425
- }
2426
-
2427
- // Type of GPS fix
2428
- export enum GPS_FIX_TYPEEnum {
2429
- // No GPS connected
2430
- GPS_FIX_TYPE_NO_GPS = 0,
2431
- // No position information, GPS is connected
2432
- GPS_FIX_TYPE_NO_FIX = 1,
2433
- // 2D position
2434
- GPS_FIX_TYPE_2D_FIX = 2,
2435
- // 3D position
2436
- GPS_FIX_TYPE_3D_FIX = 3,
2437
- // DGPS/SBAS aided 3D position
2438
- GPS_FIX_TYPE_DGPS = 4,
2439
- // RTK float, 3D position
2440
- GPS_FIX_TYPE_RTK_FLOAT = 5,
2441
- // RTK Fixed, 3D position
2442
- GPS_FIX_TYPE_RTK_FIXED = 6,
2443
- // Static fixed, typically used for base stations
2444
- GPS_FIX_TYPE_STATIC = 7,
2445
- // PPP, 3D position.
2446
- GPS_FIX_TYPE_PPP = 8,
2447
- }
2448
-
2449
- // RTK GPS baseline coordinate system, used for RTK corrections
2450
- export enum RTK_BASELINE_COORDINATE_SYSTEMEnum {
2451
- // Earth-centered, Earth-fixed
2452
- RTK_BASELINE_COORDINATE_SYSTEM_ECEF = 0,
2453
- // RTK basestation centered, north, east, down
2454
- RTK_BASELINE_COORDINATE_SYSTEM_NED = 1,
2455
- }
2456
-
2457
- // Type of landing target
2458
- export enum LANDING_TARGET_TYPEEnum {
2459
- // Landing target signaled by light beacon (ex: IR-LOCK)
2460
- LANDING_TARGET_TYPE_LIGHT_BEACON = 0,
2461
- // Landing target signaled by radio beacon (ex: ILS, NDB)
2462
- LANDING_TARGET_TYPE_RADIO_BEACON = 1,
2463
- // Landing target represented by a fiducial marker (ex: ARTag)
2464
- LANDING_TARGET_TYPE_VISION_FIDUCIAL = 2,
2465
- // Landing target represented by a pre-defined visual shape/feature (ex: X-marker, H-marker, square)
2466
- LANDING_TARGET_TYPE_VISION_OTHER = 3,
2467
- }
2468
-
2469
- // Direction of VTOL transition
2470
- export enum VTOL_TRANSITION_HEADINGEnum {
2471
- // Respect the heading configuration of the vehicle.
2472
- VTOL_TRANSITION_HEADING_VEHICLE_DEFAULT = 0,
2473
- // Use the heading pointing towards the next waypoint.
2474
- VTOL_TRANSITION_HEADING_NEXT_WAYPOINT = 1,
2475
- // Use the heading on takeoff (while sitting on the ground).
2476
- VTOL_TRANSITION_HEADING_TAKEOFF = 2,
2477
- // Use the specified heading in parameter 4.
2478
- VTOL_TRANSITION_HEADING_SPECIFIED = 3,
2479
- // Use the current heading when reaching takeoff altitude (potentially facing the wind when weather-vaning is active).
2480
- VTOL_TRANSITION_HEADING_ANY = 4,
2481
- }
2482
-
2483
- // Camera capability flags (Bitmap)
2484
- export enum CAMERA_CAP_FLAGSEnum {
2485
- // Camera is able to record video
2486
- CAMERA_CAP_FLAGS_CAPTURE_VIDEO = 1,
2487
- // Camera is able to capture images
2488
- CAMERA_CAP_FLAGS_CAPTURE_IMAGE = 2,
2489
- // Camera has separate Video and Image/Photo modes (MAV_CMD_SET_CAMERA_MODE)
2490
- CAMERA_CAP_FLAGS_HAS_MODES = 4,
2491
- // Camera can capture images while in video mode
2492
- CAMERA_CAP_FLAGS_CAN_CAPTURE_IMAGE_IN_VIDEO_MODE = 8,
2493
- // Camera can capture videos while in Photo/Image mode
2494
- CAMERA_CAP_FLAGS_CAN_CAPTURE_VIDEO_IN_IMAGE_MODE = 16,
2495
- // Camera has image survey mode (MAV_CMD_SET_CAMERA_MODE)
2496
- CAMERA_CAP_FLAGS_HAS_IMAGE_SURVEY_MODE = 32,
2497
- // Camera has basic zoom control (MAV_CMD_SET_CAMERA_ZOOM)
2498
- CAMERA_CAP_FLAGS_HAS_BASIC_ZOOM = 64,
2499
- // Camera has basic focus control (MAV_CMD_SET_CAMERA_FOCUS)
2500
- CAMERA_CAP_FLAGS_HAS_BASIC_FOCUS = 128,
2501
- // Camera has video streaming capabilities (request VIDEO_STREAM_INFORMATION with MAV_CMD_REQUEST_MESSAGE for video streaming info)
2502
- CAMERA_CAP_FLAGS_HAS_VIDEO_STREAM = 256,
2503
- // Camera supports tracking of a point on the camera view.
2504
- CAMERA_CAP_FLAGS_HAS_TRACKING_POINT = 512,
2505
- // Camera supports tracking of a selection rectangle on the camera view.
2506
- CAMERA_CAP_FLAGS_HAS_TRACKING_RECTANGLE = 1024,
2507
- // Camera supports tracking geo status (CAMERA_TRACKING_GEO_STATUS).
2508
- CAMERA_CAP_FLAGS_HAS_TRACKING_GEO_STATUS = 2048,
2509
- // Camera supports absolute thermal range (request CAMERA_THERMAL_RANGE with MAV_CMD_REQUEST_MESSAGE).
2510
- CAMERA_CAP_FLAGS_HAS_THERMAL_RANGE = 4096,
2511
- }
2512
-
2513
- // Stream status flags (Bitmap)
2514
- export enum VIDEO_STREAM_STATUS_FLAGSEnum {
2515
- // Stream is active (running)
2516
- VIDEO_STREAM_STATUS_FLAGS_RUNNING = 1,
2517
- // Stream is thermal imaging
2518
- VIDEO_STREAM_STATUS_FLAGS_THERMAL = 2,
2519
- // Stream can report absolute thermal range (see CAMERA_THERMAL_RANGE).
2520
- VIDEO_STREAM_STATUS_FLAGS_THERMAL_RANGE_ENABLED = 4,
2521
- }
2522
-
2523
- // Video stream types
2524
- export enum VIDEO_STREAM_TYPEEnum {
2525
- // Stream is RTSP
2526
- VIDEO_STREAM_TYPE_RTSP = 0,
2527
- // Stream is RTP UDP (URI gives the port number)
2528
- VIDEO_STREAM_TYPE_RTPUDP = 1,
2529
- // Stream is MPEG on TCP
2530
- VIDEO_STREAM_TYPE_TCP_MPEG = 2,
2531
- // Stream is MPEG TS (URI gives the port number)
2532
- VIDEO_STREAM_TYPE_MPEG_TS = 3,
2533
- }
2534
-
2535
- // Video stream encodings
2536
- export enum VIDEO_STREAM_ENCODINGEnum {
2537
- // Stream encoding is unknown
2538
- VIDEO_STREAM_ENCODING_UNKNOWN = 0,
2539
- // Stream encoding is H.264
2540
- VIDEO_STREAM_ENCODING_H264 = 1,
2541
- // Stream encoding is H.265
2542
- VIDEO_STREAM_ENCODING_H265 = 2,
2543
- }
2544
-
2545
- // Camera tracking status flags
2546
- export enum CAMERA_TRACKING_STATUS_FLAGSEnum {
2547
- // Camera is not tracking
2548
- CAMERA_TRACKING_STATUS_FLAGS_IDLE = 0,
2549
- // Camera is tracking
2550
- CAMERA_TRACKING_STATUS_FLAGS_ACTIVE = 1,
2551
- // Camera tracking in error state
2552
- CAMERA_TRACKING_STATUS_FLAGS_ERROR = 2,
2553
- }
2554
-
2555
- // Camera tracking modes
2556
- export enum CAMERA_TRACKING_MODEEnum {
2557
- // Not tracking
2558
- CAMERA_TRACKING_MODE_NONE = 0,
2559
- // Target is a point
2560
- CAMERA_TRACKING_MODE_POINT = 1,
2561
- // Target is a rectangle
2562
- CAMERA_TRACKING_MODE_RECTANGLE = 2,
2563
- }
2564
-
2565
- // Camera tracking target data (shows where tracked target is within image)
2566
- export enum CAMERA_TRACKING_TARGET_DATAEnum {
2567
- // Target data embedded in image data (proprietary)
2568
- CAMERA_TRACKING_TARGET_DATA_EMBEDDED = 1,
2569
- // Target data rendered in image
2570
- CAMERA_TRACKING_TARGET_DATA_RENDERED = 2,
2571
- // Target data within status message (Point or Rectangle)
2572
- CAMERA_TRACKING_TARGET_DATA_IN_STATUS = 4,
2573
- }
2574
-
2575
- // Zoom types for MAV_CMD_SET_CAMERA_ZOOM
2576
- export enum CAMERA_ZOOM_TYPEEnum {
2577
- // Zoom one step increment (-1 for wide, 1 for tele)
2578
- ZOOM_TYPE_STEP = 0,
2579
- // Continuous normalized zoom in/out rate until stopped. Range -1..1, negative: wide, positive: narrow/tele, 0 to stop zooming. Other values should be clipped to the range.
2580
- ZOOM_TYPE_CONTINUOUS = 1,
2581
- // Zoom value as proportion of full camera range (a percentage value between 0.0 and 100.0)
2582
- ZOOM_TYPE_RANGE = 2,
2583
- // Zoom value/variable focal length in millimetres. Note that there is no message to get the valid zoom range of the camera, so this can type can only be used for cameras where the zoom range is known (implying that this cannot reliably be used in a GCS for an arbitrary camera)
2584
- ZOOM_TYPE_FOCAL_LENGTH = 3,
2585
- // Zoom value as horizontal field of view in degrees.
2586
- ZOOM_TYPE_HORIZONTAL_FOV = 4,
2587
- }
2588
-
2589
- // Focus types for MAV_CMD_SET_CAMERA_FOCUS
2590
- export enum SET_FOCUS_TYPEEnum {
2591
- // Focus one step increment (-1 for focusing in, 1 for focusing out towards infinity).
2592
- FOCUS_TYPE_STEP = 0,
2593
- // Continuous normalized focus in/out rate until stopped. Range -1..1, negative: in, positive: out towards infinity, 0 to stop focusing. Other values should be clipped to the range.
2594
- FOCUS_TYPE_CONTINUOUS = 1,
2595
- // Focus value as proportion of full camera focus range (a value between 0.0 and 100.0)
2596
- FOCUS_TYPE_RANGE = 2,
2597
- // Focus value in metres. Note that there is no message to get the valid focus range of the camera, so this can type can only be used for cameras where the range is known (implying that this cannot reliably be used in a GCS for an arbitrary camera).
2598
- FOCUS_TYPE_METERS = 3,
2599
- // Focus automatically.
2600
- FOCUS_TYPE_AUTO = 4,
2601
- // Single auto focus. Mainly used for still pictures. Usually abbreviated as AF-S.
2602
- FOCUS_TYPE_AUTO_SINGLE = 5,
2603
- // Continuous auto focus. Mainly used for dynamic scenes. Abbreviated as AF-C.
2604
- FOCUS_TYPE_AUTO_CONTINUOUS = 6,
2605
- }
2606
-
2607
- // Camera sources for MAV_CMD_SET_CAMERA_SOURCE
2608
- export enum CAMERA_SOURCEEnum {
2609
- // Default camera source.
2610
- CAMERA_SOURCE_DEFAULT = 0,
2611
- // RGB camera source.
2612
- CAMERA_SOURCE_RGB = 1,
2613
- // IR camera source.
2614
- CAMERA_SOURCE_IR = 2,
2615
- // NDVI camera source.
2616
- CAMERA_SOURCE_NDVI = 3,
2617
- }
2618
-
2619
- // Result from PARAM_EXT_SET message.
2620
- export enum PARAM_ACKEnum {
2621
- // Parameter value ACCEPTED and SET
2622
- PARAM_ACK_ACCEPTED = 0,
2623
- // Parameter value UNKNOWN/UNSUPPORTED
2624
- PARAM_ACK_VALUE_UNSUPPORTED = 1,
2625
- // Parameter failed to set
2626
- PARAM_ACK_FAILED = 2,
2627
- // Parameter value received but not yet set/accepted. A subsequent PARAM_EXT_ACK with the final result will follow once operation is completed. This is returned immediately for parameters that take longer to set, indicating that the the parameter was received and does not need to be resent.
2628
- PARAM_ACK_IN_PROGRESS = 3,
2629
- }
2630
-
2631
- // Camera Modes.
2632
- export enum CAMERA_MODEEnum {
2633
- // Camera is in image/photo capture mode.
2634
- CAMERA_MODE_IMAGE = 0,
2635
- // Camera is in video capture mode.
2636
- CAMERA_MODE_VIDEO = 1,
2637
- // Camera is in image survey capture mode. It allows for camera controller to do specific settings for surveys.
2638
- CAMERA_MODE_IMAGE_SURVEY = 2,
2639
- }
2640
-
2641
- export enum MAV_ARM_AUTH_DENIED_REASONEnum {
2642
- // Not a specific reason
2643
- MAV_ARM_AUTH_DENIED_REASON_GENERIC = 0,
2644
- // Authorizer will send the error as string to GCS
2645
- MAV_ARM_AUTH_DENIED_REASON_NONE = 1,
2646
- // At least one waypoint have a invalid value
2647
- MAV_ARM_AUTH_DENIED_REASON_INVALID_WAYPOINT = 2,
2648
- // Timeout in the authorizer process(in case it depends on network)
2649
- MAV_ARM_AUTH_DENIED_REASON_TIMEOUT = 3,
2650
- // Airspace of the mission in use by another vehicle, second result parameter can have the waypoint id that caused it to be denied.
2651
- MAV_ARM_AUTH_DENIED_REASON_AIRSPACE_IN_USE = 4,
2652
- // Weather is not good to fly
2653
- MAV_ARM_AUTH_DENIED_REASON_BAD_WEATHER = 5,
2654
- }
2655
-
2656
- // RC type. Used in MAV_CMD_START_RX_PAIR.
2657
- export enum RC_TYPEEnum {
2658
- // Spektrum
2659
- RC_TYPE_SPEKTRUM = 0,
2660
- // CRSF
2661
- RC_TYPE_CRSF = 1,
2662
- }
2663
-
2664
- // RC sub-type of types defined in RC_TYPE. Used in MAV_CMD_START_RX_PAIR. Ignored if value does not correspond to the set RC_TYPE.
2665
- export enum RC_SUB_TYPEEnum {
2666
- // Spektrum DSM2
2667
- RC_SUB_TYPE_SPEKTRUM_DSM2 = 0,
2668
- // Spektrum DSMX
2669
- RC_SUB_TYPE_SPEKTRUM_DSMX = 1,
2670
- // Spektrum DSMX8
2671
- RC_SUB_TYPE_SPEKTRUM_DSMX8 = 2,
2672
- }
2673
-
2674
- // Bitmap to indicate which dimensions should be ignored by the vehicle: a value of 0b0000000000000000 or 0b0000001000000000 indicates that none of the setpoint dimensions should be ignored. If bit 9 is set the floats afx afy afz should be interpreted as force instead of acceleration.
2675
- export enum POSITION_TARGET_TYPEMASKEnum {
2676
- // Ignore position x
2677
- POSITION_TARGET_TYPEMASK_X_IGNORE = 1,
2678
- // Ignore position y
2679
- POSITION_TARGET_TYPEMASK_Y_IGNORE = 2,
2680
- // Ignore position z
2681
- POSITION_TARGET_TYPEMASK_Z_IGNORE = 4,
2682
- // Ignore velocity x
2683
- POSITION_TARGET_TYPEMASK_VX_IGNORE = 8,
2684
- // Ignore velocity y
2685
- POSITION_TARGET_TYPEMASK_VY_IGNORE = 16,
2686
- // Ignore velocity z
2687
- POSITION_TARGET_TYPEMASK_VZ_IGNORE = 32,
2688
- // Ignore acceleration x
2689
- POSITION_TARGET_TYPEMASK_AX_IGNORE = 64,
2690
- // Ignore acceleration y
2691
- POSITION_TARGET_TYPEMASK_AY_IGNORE = 128,
2692
- // Ignore acceleration z
2693
- POSITION_TARGET_TYPEMASK_AZ_IGNORE = 256,
2694
- // Use force instead of acceleration
2695
- POSITION_TARGET_TYPEMASK_FORCE_SET = 512,
2696
- // Ignore yaw
2697
- POSITION_TARGET_TYPEMASK_YAW_IGNORE = 1024,
2698
- // Ignore yaw rate
2699
- POSITION_TARGET_TYPEMASK_YAW_RATE_IGNORE = 2048,
2700
- }
2701
-
2702
- // Bitmap to indicate which dimensions should be ignored by the vehicle: a value of 0b00000000 indicates that none of the setpoint dimensions should be ignored.
2703
- export enum ATTITUDE_TARGET_TYPEMASKEnum {
2704
- // Ignore body roll rate
2705
- ATTITUDE_TARGET_TYPEMASK_BODY_ROLL_RATE_IGNORE = 1,
2706
- // Ignore body pitch rate
2707
- ATTITUDE_TARGET_TYPEMASK_BODY_PITCH_RATE_IGNORE = 2,
2708
- // Ignore body yaw rate
2709
- ATTITUDE_TARGET_TYPEMASK_BODY_YAW_RATE_IGNORE = 4,
2710
- // Use 3D body thrust setpoint instead of throttle
2711
- ATTITUDE_TARGET_TYPEMASK_THRUST_BODY_SET = 32,
2712
- // Ignore throttle
2713
- ATTITUDE_TARGET_TYPEMASK_THROTTLE_IGNORE = 64,
2714
- // Ignore attitude
2715
- ATTITUDE_TARGET_TYPEMASK_ATTITUDE_IGNORE = 128,
2716
- }
2717
-
2718
- // Airborne status of UAS.
2719
- export enum UTM_FLIGHT_STATEEnum {
2720
- // The flight state can't be determined.
2721
- UTM_FLIGHT_STATE_UNKNOWN = 1,
2722
- // UAS on ground.
2723
- UTM_FLIGHT_STATE_GROUND = 2,
2724
- // UAS airborne.
2725
- UTM_FLIGHT_STATE_AIRBORNE = 3,
2726
- // UAS is in an emergency flight state.
2727
- UTM_FLIGHT_STATE_EMERGENCY = 16,
2728
- // UAS has no active controls.
2729
- UTM_FLIGHT_STATE_NOCTRL = 32,
2730
- }
2731
-
2732
- // Flags for the global position report.
2733
- export enum UTM_DATA_AVAIL_FLAGSEnum {
2734
- // The field time contains valid data.
2735
- UTM_DATA_AVAIL_FLAGS_TIME_VALID = 1,
2736
- // The field uas_id contains valid data.
2737
- UTM_DATA_AVAIL_FLAGS_UAS_ID_AVAILABLE = 2,
2738
- // The fields lat, lon and h_acc contain valid data.
2739
- UTM_DATA_AVAIL_FLAGS_POSITION_AVAILABLE = 4,
2740
- // The fields alt and v_acc contain valid data.
2741
- UTM_DATA_AVAIL_FLAGS_ALTITUDE_AVAILABLE = 8,
2742
- // The field relative_alt contains valid data.
2743
- UTM_DATA_AVAIL_FLAGS_RELATIVE_ALTITUDE_AVAILABLE = 16,
2744
- // The fields vx and vy contain valid data.
2745
- UTM_DATA_AVAIL_FLAGS_HORIZONTAL_VELO_AVAILABLE = 32,
2746
- // The field vz contains valid data.
2747
- UTM_DATA_AVAIL_FLAGS_VERTICAL_VELO_AVAILABLE = 64,
2748
- // The fields next_lat, next_lon and next_alt contain valid data.
2749
- UTM_DATA_AVAIL_FLAGS_NEXT_WAYPOINT_AVAILABLE = 128,
2750
- }
2751
-
2752
- // These flags encode the cellular network status
2753
- export enum CELLULAR_STATUS_FLAGEnum {
2754
- // State unknown or not reportable.
2755
- CELLULAR_STATUS_FLAG_UNKNOWN = 0,
2756
- // Modem is unusable
2757
- CELLULAR_STATUS_FLAG_FAILED = 1,
2758
- // Modem is being initialized
2759
- CELLULAR_STATUS_FLAG_INITIALIZING = 2,
2760
- // Modem is locked
2761
- CELLULAR_STATUS_FLAG_LOCKED = 3,
2762
- // Modem is not enabled and is powered down
2763
- CELLULAR_STATUS_FLAG_DISABLED = 4,
2764
- // Modem is currently transitioning to the CELLULAR_STATUS_FLAG_DISABLED state
2765
- CELLULAR_STATUS_FLAG_DISABLING = 5,
2766
- // Modem is currently transitioning to the CELLULAR_STATUS_FLAG_ENABLED state
2767
- CELLULAR_STATUS_FLAG_ENABLING = 6,
2768
- // Modem is enabled and powered on but not registered with a network provider and not available for data connections
2769
- CELLULAR_STATUS_FLAG_ENABLED = 7,
2770
- // Modem is searching for a network provider to register
2771
- CELLULAR_STATUS_FLAG_SEARCHING = 8,
2772
- // Modem is registered with a network provider, and data connections and messaging may be available for use
2773
- CELLULAR_STATUS_FLAG_REGISTERED = 9,
2774
- // Modem is disconnecting and deactivating the last active packet data bearer. This state will not be entered if more than one packet data bearer is active and one of the active bearers is deactivated
2775
- CELLULAR_STATUS_FLAG_DISCONNECTING = 10,
2776
- // Modem is activating and connecting the first packet data bearer. Subsequent bearer activations when another bearer is already active do not cause this state to be entered
2777
- CELLULAR_STATUS_FLAG_CONNECTING = 11,
2778
- // One or more packet data bearers is active and connected
2779
- CELLULAR_STATUS_FLAG_CONNECTED = 12,
2780
- }
2781
-
2782
- // These flags are used to diagnose the failure state of CELLULAR_STATUS
2783
- export enum CELLULAR_NETWORK_FAILED_REASONEnum {
2784
- // No error
2785
- CELLULAR_NETWORK_FAILED_REASON_NONE = 0,
2786
- // Error state is unknown
2787
- CELLULAR_NETWORK_FAILED_REASON_UNKNOWN = 1,
2788
- // SIM is required for the modem but missing
2789
- CELLULAR_NETWORK_FAILED_REASON_SIM_MISSING = 2,
2790
- // SIM is available, but not usable for connection
2791
- CELLULAR_NETWORK_FAILED_REASON_SIM_ERROR = 3,
2792
- }
2793
-
2794
- // Cellular network radio type
2795
- export enum CELLULAR_NETWORK_RADIO_TYPEEnum {
2796
- CELLULAR_NETWORK_RADIO_TYPE_NONE = 0,
2797
- CELLULAR_NETWORK_RADIO_TYPE_GSM = 1,
2798
- CELLULAR_NETWORK_RADIO_TYPE_CDMA = 2,
2799
- CELLULAR_NETWORK_RADIO_TYPE_WCDMA = 3,
2800
- CELLULAR_NETWORK_RADIO_TYPE_LTE = 4,
2801
- }
2802
-
2803
- // Precision land modes (used in MAV_CMD_NAV_LAND).
2804
- export enum PRECISION_LAND_MODEEnum {
2805
- // Normal (non-precision) landing.
2806
- PRECISION_LAND_MODE_DISABLED = 0,
2807
- // Use precision landing if beacon detected when land command accepted, otherwise land normally.
2808
- PRECISION_LAND_MODE_OPPORTUNISTIC = 1,
2809
- // Use precision landing, searching for beacon if not found when land command accepted (land normally if beacon cannot be found).
2810
- PRECISION_LAND_MODE_REQUIRED = 2,
2811
- }
2812
-
2813
- // Parachute actions. Trigger release and enable/disable auto-release.
2814
- export enum PARACHUTE_ACTIONEnum {
2815
- // Disable auto-release of parachute (i.e. release triggered by crash detectors).
2816
- PARACHUTE_DISABLE = 0,
2817
- // Enable auto-release of parachute.
2818
- PARACHUTE_ENABLE = 1,
2819
- // Release parachute and kill motors.
2820
- PARACHUTE_RELEASE = 2,
2821
- }
2822
-
2823
- export enum MAV_TUNNEL_PAYLOAD_TYPEEnum {
2824
- // Encoding of payload unknown.
2825
- MAV_TUNNEL_PAYLOAD_TYPE_UNKNOWN = 0,
2826
- // Registered for STorM32 gimbal controller.
2827
- MAV_TUNNEL_PAYLOAD_TYPE_STORM32_RESERVED0 = 200,
2828
- // Registered for STorM32 gimbal controller.
2829
- MAV_TUNNEL_PAYLOAD_TYPE_STORM32_RESERVED1 = 201,
2830
- // Registered for STorM32 gimbal controller.
2831
- MAV_TUNNEL_PAYLOAD_TYPE_STORM32_RESERVED2 = 202,
2832
- // Registered for STorM32 gimbal controller.
2833
- MAV_TUNNEL_PAYLOAD_TYPE_STORM32_RESERVED3 = 203,
2834
- // Registered for STorM32 gimbal controller.
2835
- MAV_TUNNEL_PAYLOAD_TYPE_STORM32_RESERVED4 = 204,
2836
- // Registered for STorM32 gimbal controller.
2837
- MAV_TUNNEL_PAYLOAD_TYPE_STORM32_RESERVED5 = 205,
2838
- // Registered for STorM32 gimbal controller.
2839
- MAV_TUNNEL_PAYLOAD_TYPE_STORM32_RESERVED6 = 206,
2840
- // Registered for STorM32 gimbal controller.
2841
- MAV_TUNNEL_PAYLOAD_TYPE_STORM32_RESERVED7 = 207,
2842
- // Registered for STorM32 gimbal controller.
2843
- MAV_TUNNEL_PAYLOAD_TYPE_STORM32_RESERVED8 = 208,
2844
- // Registered for STorM32 gimbal controller.
2845
- MAV_TUNNEL_PAYLOAD_TYPE_STORM32_RESERVED9 = 209,
2846
- // Registered for ModalAI remote OSD protocol.
2847
- MAV_TUNNEL_PAYLOAD_TYPE_MODALAI_REMOTE_OSD = 210,
2848
- // Registered for ModalAI ESC UART passthru protocol.
2849
- MAV_TUNNEL_PAYLOAD_TYPE_MODALAI_ESC_UART_PASSTHRU = 211,
2850
- // Registered for ModalAI vendor use.
2851
- MAV_TUNNEL_PAYLOAD_TYPE_MODALAI_IO_UART_PASSTHRU = 212,
2852
- }
2853
-
2854
- export enum MAV_ODID_ID_TYPEEnum {
2855
- // No type defined.
2856
- MAV_ODID_ID_TYPE_NONE = 0,
2857
- // Manufacturer Serial Number (ANSI/CTA-2063 format).
2858
- MAV_ODID_ID_TYPE_SERIAL_NUMBER = 1,
2859
- // CAA (Civil Aviation Authority) registered ID. Format: [ICAO Country Code].[CAA Assigned ID].
2860
- MAV_ODID_ID_TYPE_CAA_REGISTRATION_ID = 2,
2861
- // UTM (Unmanned Traffic Management) assigned UUID (RFC4122).
2862
- MAV_ODID_ID_TYPE_UTM_ASSIGNED_UUID = 3,
2863
- // A 20 byte ID for a specific flight/session. The exact ID type is indicated by the first byte of uas_id and these type values are managed by ICAO.
2864
- MAV_ODID_ID_TYPE_SPECIFIC_SESSION_ID = 4,
2865
- }
2866
-
2867
- export enum MAV_ODID_UA_TYPEEnum {
2868
- // No UA (Unmanned Aircraft) type defined.
2869
- MAV_ODID_UA_TYPE_NONE = 0,
2870
- // Aeroplane/Airplane. Fixed wing.
2871
- MAV_ODID_UA_TYPE_AEROPLANE = 1,
2872
- // Helicopter or multirotor.
2873
- MAV_ODID_UA_TYPE_HELICOPTER_OR_MULTIROTOR = 2,
2874
- // Gyroplane.
2875
- MAV_ODID_UA_TYPE_GYROPLANE = 3,
2876
- // VTOL (Vertical Take-Off and Landing). Fixed wing aircraft that can take off vertically.
2877
- MAV_ODID_UA_TYPE_HYBRID_LIFT = 4,
2878
- // Ornithopter.
2879
- MAV_ODID_UA_TYPE_ORNITHOPTER = 5,
2880
- // Glider.
2881
- MAV_ODID_UA_TYPE_GLIDER = 6,
2882
- // Kite.
2883
- MAV_ODID_UA_TYPE_KITE = 7,
2884
- // Free Balloon.
2885
- MAV_ODID_UA_TYPE_FREE_BALLOON = 8,
2886
- // Captive Balloon.
2887
- MAV_ODID_UA_TYPE_CAPTIVE_BALLOON = 9,
2888
- // Airship. E.g. a blimp.
2889
- MAV_ODID_UA_TYPE_AIRSHIP = 10,
2890
- // Free Fall/Parachute (unpowered).
2891
- MAV_ODID_UA_TYPE_FREE_FALL_PARACHUTE = 11,
2892
- // Rocket.
2893
- MAV_ODID_UA_TYPE_ROCKET = 12,
2894
- // Tethered powered aircraft.
2895
- MAV_ODID_UA_TYPE_TETHERED_POWERED_AIRCRAFT = 13,
2896
- // Ground Obstacle.
2897
- MAV_ODID_UA_TYPE_GROUND_OBSTACLE = 14,
2898
- // Other type of aircraft not listed earlier.
2899
- MAV_ODID_UA_TYPE_OTHER = 15,
2900
- }
2901
-
2902
- export enum MAV_ODID_STATUSEnum {
2903
- // The status of the (UA) Unmanned Aircraft is undefined.
2904
- MAV_ODID_STATUS_UNDECLARED = 0,
2905
- // The UA is on the ground.
2906
- MAV_ODID_STATUS_GROUND = 1,
2907
- // The UA is in the air.
2908
- MAV_ODID_STATUS_AIRBORNE = 2,
2909
- // The UA is having an emergency.
2910
- MAV_ODID_STATUS_EMERGENCY = 3,
2911
- // The remote ID system is failing or unreliable in some way.
2912
- MAV_ODID_STATUS_REMOTE_ID_SYSTEM_FAILURE = 4,
2913
- }
2914
-
2915
- export enum MAV_ODID_HEIGHT_REFEnum {
2916
- // The height field is relative to the take-off location.
2917
- MAV_ODID_HEIGHT_REF_OVER_TAKEOFF = 0,
2918
- // The height field is relative to ground.
2919
- MAV_ODID_HEIGHT_REF_OVER_GROUND = 1,
2920
- }
2921
-
2922
- export enum MAV_ODID_HOR_ACCEnum {
2923
- // The horizontal accuracy is unknown.
2924
- MAV_ODID_HOR_ACC_UNKNOWN = 0,
2925
- // The horizontal accuracy is smaller than 10 Nautical Miles. 18.52 km.
2926
- MAV_ODID_HOR_ACC_10NM = 1,
2927
- // The horizontal accuracy is smaller than 4 Nautical Miles. 7.408 km.
2928
- MAV_ODID_HOR_ACC_4NM = 2,
2929
- // The horizontal accuracy is smaller than 2 Nautical Miles. 3.704 km.
2930
- MAV_ODID_HOR_ACC_2NM = 3,
2931
- // The horizontal accuracy is smaller than 1 Nautical Miles. 1.852 km.
2932
- MAV_ODID_HOR_ACC_1NM = 4,
2933
- // The horizontal accuracy is smaller than 0.5 Nautical Miles. 926 m.
2934
- MAV_ODID_HOR_ACC_0_5NM = 5,
2935
- // The horizontal accuracy is smaller than 0.3 Nautical Miles. 555.6 m.
2936
- MAV_ODID_HOR_ACC_0_3NM = 6,
2937
- // The horizontal accuracy is smaller than 0.1 Nautical Miles. 185.2 m.
2938
- MAV_ODID_HOR_ACC_0_1NM = 7,
2939
- // The horizontal accuracy is smaller than 0.05 Nautical Miles. 92.6 m.
2940
- MAV_ODID_HOR_ACC_0_05NM = 8,
2941
- // The horizontal accuracy is smaller than 30 meter.
2942
- MAV_ODID_HOR_ACC_30_METER = 9,
2943
- // The horizontal accuracy is smaller than 10 meter.
2944
- MAV_ODID_HOR_ACC_10_METER = 10,
2945
- // The horizontal accuracy is smaller than 3 meter.
2946
- MAV_ODID_HOR_ACC_3_METER = 11,
2947
- // The horizontal accuracy is smaller than 1 meter.
2948
- MAV_ODID_HOR_ACC_1_METER = 12,
2949
- }
2950
-
2951
- export enum MAV_ODID_VER_ACCEnum {
2952
- // The vertical accuracy is unknown.
2953
- MAV_ODID_VER_ACC_UNKNOWN = 0,
2954
- // The vertical accuracy is smaller than 150 meter.
2955
- MAV_ODID_VER_ACC_150_METER = 1,
2956
- // The vertical accuracy is smaller than 45 meter.
2957
- MAV_ODID_VER_ACC_45_METER = 2,
2958
- // The vertical accuracy is smaller than 25 meter.
2959
- MAV_ODID_VER_ACC_25_METER = 3,
2960
- // The vertical accuracy is smaller than 10 meter.
2961
- MAV_ODID_VER_ACC_10_METER = 4,
2962
- // The vertical accuracy is smaller than 3 meter.
2963
- MAV_ODID_VER_ACC_3_METER = 5,
2964
- // The vertical accuracy is smaller than 1 meter.
2965
- MAV_ODID_VER_ACC_1_METER = 6,
2966
- }
2967
-
2968
- export enum MAV_ODID_SPEED_ACCEnum {
2969
- // The speed accuracy is unknown.
2970
- MAV_ODID_SPEED_ACC_UNKNOWN = 0,
2971
- // The speed accuracy is smaller than 10 meters per second.
2972
- MAV_ODID_SPEED_ACC_10_METERS_PER_SECOND = 1,
2973
- // The speed accuracy is smaller than 3 meters per second.
2974
- MAV_ODID_SPEED_ACC_3_METERS_PER_SECOND = 2,
2975
- // The speed accuracy is smaller than 1 meters per second.
2976
- MAV_ODID_SPEED_ACC_1_METERS_PER_SECOND = 3,
2977
- // The speed accuracy is smaller than 0.3 meters per second.
2978
- MAV_ODID_SPEED_ACC_0_3_METERS_PER_SECOND = 4,
2979
- }
2980
-
2981
- export enum MAV_ODID_TIME_ACCEnum {
2982
- // The timestamp accuracy is unknown.
2983
- MAV_ODID_TIME_ACC_UNKNOWN = 0,
2984
- // The timestamp accuracy is smaller than or equal to 0.1 second.
2985
- MAV_ODID_TIME_ACC_0_1_SECOND = 1,
2986
- // The timestamp accuracy is smaller than or equal to 0.2 second.
2987
- MAV_ODID_TIME_ACC_0_2_SECOND = 2,
2988
- // The timestamp accuracy is smaller than or equal to 0.3 second.
2989
- MAV_ODID_TIME_ACC_0_3_SECOND = 3,
2990
- // The timestamp accuracy is smaller than or equal to 0.4 second.
2991
- MAV_ODID_TIME_ACC_0_4_SECOND = 4,
2992
- // The timestamp accuracy is smaller than or equal to 0.5 second.
2993
- MAV_ODID_TIME_ACC_0_5_SECOND = 5,
2994
- // The timestamp accuracy is smaller than or equal to 0.6 second.
2995
- MAV_ODID_TIME_ACC_0_6_SECOND = 6,
2996
- // The timestamp accuracy is smaller than or equal to 0.7 second.
2997
- MAV_ODID_TIME_ACC_0_7_SECOND = 7,
2998
- // The timestamp accuracy is smaller than or equal to 0.8 second.
2999
- MAV_ODID_TIME_ACC_0_8_SECOND = 8,
3000
- // The timestamp accuracy is smaller than or equal to 0.9 second.
3001
- MAV_ODID_TIME_ACC_0_9_SECOND = 9,
3002
- // The timestamp accuracy is smaller than or equal to 1.0 second.
3003
- MAV_ODID_TIME_ACC_1_0_SECOND = 10,
3004
- // The timestamp accuracy is smaller than or equal to 1.1 second.
3005
- MAV_ODID_TIME_ACC_1_1_SECOND = 11,
3006
- // The timestamp accuracy is smaller than or equal to 1.2 second.
3007
- MAV_ODID_TIME_ACC_1_2_SECOND = 12,
3008
- // The timestamp accuracy is smaller than or equal to 1.3 second.
3009
- MAV_ODID_TIME_ACC_1_3_SECOND = 13,
3010
- // The timestamp accuracy is smaller than or equal to 1.4 second.
3011
- MAV_ODID_TIME_ACC_1_4_SECOND = 14,
3012
- // The timestamp accuracy is smaller than or equal to 1.5 second.
3013
- MAV_ODID_TIME_ACC_1_5_SECOND = 15,
3014
- }
3015
-
3016
- export enum MAV_ODID_AUTH_TYPEEnum {
3017
- // No authentication type is specified.
3018
- MAV_ODID_AUTH_TYPE_NONE = 0,
3019
- // Signature for the UAS (Unmanned Aircraft System) ID.
3020
- MAV_ODID_AUTH_TYPE_UAS_ID_SIGNATURE = 1,
3021
- // Signature for the Operator ID.
3022
- MAV_ODID_AUTH_TYPE_OPERATOR_ID_SIGNATURE = 2,
3023
- // Signature for the entire message set.
3024
- MAV_ODID_AUTH_TYPE_MESSAGE_SET_SIGNATURE = 3,
3025
- // Authentication is provided by Network Remote ID.
3026
- MAV_ODID_AUTH_TYPE_NETWORK_REMOTE_ID = 4,
3027
- // The exact authentication type is indicated by the first byte of authentication_data and these type values are managed by ICAO.
3028
- MAV_ODID_AUTH_TYPE_SPECIFIC_AUTHENTICATION = 5,
3029
- }
3030
-
3031
- export enum MAV_ODID_DESC_TYPEEnum {
3032
- // Optional free-form text description of the purpose of the flight.
3033
- MAV_ODID_DESC_TYPE_TEXT = 0,
3034
- // Optional additional clarification when status == MAV_ODID_STATUS_EMERGENCY.
3035
- MAV_ODID_DESC_TYPE_EMERGENCY = 1,
3036
- // Optional additional clarification when status != MAV_ODID_STATUS_EMERGENCY.
3037
- MAV_ODID_DESC_TYPE_EXTENDED_STATUS = 2,
3038
- }
3039
-
3040
- export enum MAV_ODID_OPERATOR_LOCATION_TYPEEnum {
3041
- // The location/altitude of the operator is the same as the take-off location.
3042
- MAV_ODID_OPERATOR_LOCATION_TYPE_TAKEOFF = 0,
3043
- // The location/altitude of the operator is dynamic. E.g. based on live GNSS data.
3044
- MAV_ODID_OPERATOR_LOCATION_TYPE_LIVE_GNSS = 1,
3045
- // The location/altitude of the operator are fixed values.
3046
- MAV_ODID_OPERATOR_LOCATION_TYPE_FIXED = 2,
3047
- }
3048
-
3049
- export enum MAV_ODID_CLASSIFICATION_TYPEEnum {
3050
- // The classification type for the UA is undeclared.
3051
- MAV_ODID_CLASSIFICATION_TYPE_UNDECLARED = 0,
3052
- // The classification type for the UA follows EU (European Union) specifications.
3053
- MAV_ODID_CLASSIFICATION_TYPE_EU = 1,
3054
- }
3055
-
3056
- export enum MAV_ODID_CATEGORY_EUEnum {
3057
- // The category for the UA, according to the EU specification, is undeclared.
3058
- MAV_ODID_CATEGORY_EU_UNDECLARED = 0,
3059
- // The category for the UA, according to the EU specification, is the Open category.
3060
- MAV_ODID_CATEGORY_EU_OPEN = 1,
3061
- // The category for the UA, according to the EU specification, is the Specific category.
3062
- MAV_ODID_CATEGORY_EU_SPECIFIC = 2,
3063
- // The category for the UA, according to the EU specification, is the Certified category.
3064
- MAV_ODID_CATEGORY_EU_CERTIFIED = 3,
3065
- }
3066
-
3067
- export enum MAV_ODID_CLASS_EUEnum {
3068
- // The class for the UA, according to the EU specification, is undeclared.
3069
- MAV_ODID_CLASS_EU_UNDECLARED = 0,
3070
- // The class for the UA, according to the EU specification, is Class 0.
3071
- MAV_ODID_CLASS_EU_CLASS_0 = 1,
3072
- // The class for the UA, according to the EU specification, is Class 1.
3073
- MAV_ODID_CLASS_EU_CLASS_1 = 2,
3074
- // The class for the UA, according to the EU specification, is Class 2.
3075
- MAV_ODID_CLASS_EU_CLASS_2 = 3,
3076
- // The class for the UA, according to the EU specification, is Class 3.
3077
- MAV_ODID_CLASS_EU_CLASS_3 = 4,
3078
- // The class for the UA, according to the EU specification, is Class 4.
3079
- MAV_ODID_CLASS_EU_CLASS_4 = 5,
3080
- // The class for the UA, according to the EU specification, is Class 5.
3081
- MAV_ODID_CLASS_EU_CLASS_5 = 6,
3082
- // The class for the UA, according to the EU specification, is Class 6.
3083
- MAV_ODID_CLASS_EU_CLASS_6 = 7,
3084
- }
3085
-
3086
- export enum MAV_ODID_OPERATOR_ID_TYPEEnum {
3087
- // CAA (Civil Aviation Authority) registered operator ID.
3088
- MAV_ODID_OPERATOR_ID_TYPE_CAA = 0,
3089
- }
3090
-
3091
- export enum MAV_ODID_ARM_STATUSEnum {
3092
- // Passing arming checks.
3093
- MAV_ODID_ARM_STATUS_GOOD_TO_ARM = 0,
3094
- // Generic arming failure, see error string for details.
3095
- MAV_ODID_ARM_STATUS_PRE_ARM_FAIL_GENERIC = 1,
3096
- }
3097
-
3098
- // Tune formats (used for vehicle buzzer/tone generation).
3099
- export enum TUNE_FORMATEnum {
3100
- // Format is QBasic 1.1 Play: https://www.qbasic.net/en/reference/qb11/Statement/PLAY-006.htm.
3101
- TUNE_FORMAT_QBASIC1_1 = 1,
3102
- // Format is Modern Music Markup Language (MML): https://en.wikipedia.org/wiki/Music_Macro_Language#Modern_MML.
3103
- TUNE_FORMAT_MML_MODERN = 2,
3104
- }
3105
-
3106
- // Type of AIS vessel, enum duplicated from AIS standard, https://gpsd.gitlab.io/gpsd/AIVDM.html
3107
- export enum AIS_TYPEEnum {
3108
- // Not available (default).
3109
- AIS_TYPE_UNKNOWN = 0,
3110
- AIS_TYPE_RESERVED_1 = 1,
3111
- AIS_TYPE_RESERVED_2 = 2,
3112
- AIS_TYPE_RESERVED_3 = 3,
3113
- AIS_TYPE_RESERVED_4 = 4,
3114
- AIS_TYPE_RESERVED_5 = 5,
3115
- AIS_TYPE_RESERVED_6 = 6,
3116
- AIS_TYPE_RESERVED_7 = 7,
3117
- AIS_TYPE_RESERVED_8 = 8,
3118
- AIS_TYPE_RESERVED_9 = 9,
3119
- AIS_TYPE_RESERVED_10 = 10,
3120
- AIS_TYPE_RESERVED_11 = 11,
3121
- AIS_TYPE_RESERVED_12 = 12,
3122
- AIS_TYPE_RESERVED_13 = 13,
3123
- AIS_TYPE_RESERVED_14 = 14,
3124
- AIS_TYPE_RESERVED_15 = 15,
3125
- AIS_TYPE_RESERVED_16 = 16,
3126
- AIS_TYPE_RESERVED_17 = 17,
3127
- AIS_TYPE_RESERVED_18 = 18,
3128
- AIS_TYPE_RESERVED_19 = 19,
3129
- // Wing In Ground effect.
3130
- AIS_TYPE_WIG = 20,
3131
- AIS_TYPE_WIG_HAZARDOUS_A = 21,
3132
- AIS_TYPE_WIG_HAZARDOUS_B = 22,
3133
- AIS_TYPE_WIG_HAZARDOUS_C = 23,
3134
- AIS_TYPE_WIG_HAZARDOUS_D = 24,
3135
- AIS_TYPE_WIG_RESERVED_1 = 25,
3136
- AIS_TYPE_WIG_RESERVED_2 = 26,
3137
- AIS_TYPE_WIG_RESERVED_3 = 27,
3138
- AIS_TYPE_WIG_RESERVED_4 = 28,
3139
- AIS_TYPE_WIG_RESERVED_5 = 29,
3140
- AIS_TYPE_FISHING = 30,
3141
- AIS_TYPE_TOWING = 31,
3142
- // Towing: length exceeds 200m or breadth exceeds 25m.
3143
- AIS_TYPE_TOWING_LARGE = 32,
3144
- // Dredging or other underwater ops.
3145
- AIS_TYPE_DREDGING = 33,
3146
- AIS_TYPE_DIVING = 34,
3147
- AIS_TYPE_MILITARY = 35,
3148
- AIS_TYPE_SAILING = 36,
3149
- AIS_TYPE_PLEASURE = 37,
3150
- AIS_TYPE_RESERVED_20 = 38,
3151
- AIS_TYPE_RESERVED_21 = 39,
3152
- // High Speed Craft.
3153
- AIS_TYPE_HSC = 40,
3154
- AIS_TYPE_HSC_HAZARDOUS_A = 41,
3155
- AIS_TYPE_HSC_HAZARDOUS_B = 42,
3156
- AIS_TYPE_HSC_HAZARDOUS_C = 43,
3157
- AIS_TYPE_HSC_HAZARDOUS_D = 44,
3158
- AIS_TYPE_HSC_RESERVED_1 = 45,
3159
- AIS_TYPE_HSC_RESERVED_2 = 46,
3160
- AIS_TYPE_HSC_RESERVED_3 = 47,
3161
- AIS_TYPE_HSC_RESERVED_4 = 48,
3162
- AIS_TYPE_HSC_UNKNOWN = 49,
3163
- AIS_TYPE_PILOT = 50,
3164
- // Search And Rescue vessel.
3165
- AIS_TYPE_SAR = 51,
3166
- AIS_TYPE_TUG = 52,
3167
- AIS_TYPE_PORT_TENDER = 53,
3168
- // Anti-pollution equipment.
3169
- AIS_TYPE_ANTI_POLLUTION = 54,
3170
- AIS_TYPE_LAW_ENFORCEMENT = 55,
3171
- AIS_TYPE_SPARE_LOCAL_1 = 56,
3172
- AIS_TYPE_SPARE_LOCAL_2 = 57,
3173
- AIS_TYPE_MEDICAL_TRANSPORT = 58,
3174
- // Noncombatant ship according to RR Resolution No. 18.
3175
- AIS_TYPE_NONECOMBATANT = 59,
3176
- AIS_TYPE_PASSENGER = 60,
3177
- AIS_TYPE_PASSENGER_HAZARDOUS_A = 61,
3178
- AIS_TYPE_PASSENGER_HAZARDOUS_B = 62,
3179
- AIS_TYPE_PASSENGER_HAZARDOUS_C = 63,
3180
- AIS_TYPE_PASSENGER_HAZARDOUS_D = 64,
3181
- AIS_TYPE_PASSENGER_RESERVED_1 = 65,
3182
- AIS_TYPE_PASSENGER_RESERVED_2 = 66,
3183
- AIS_TYPE_PASSENGER_RESERVED_3 = 67,
3184
- AIS_TYPE_PASSENGER_RESERVED_4 = 68,
3185
- AIS_TYPE_PASSENGER_UNKNOWN = 69,
3186
- AIS_TYPE_CARGO = 70,
3187
- AIS_TYPE_CARGO_HAZARDOUS_A = 71,
3188
- AIS_TYPE_CARGO_HAZARDOUS_B = 72,
3189
- AIS_TYPE_CARGO_HAZARDOUS_C = 73,
3190
- AIS_TYPE_CARGO_HAZARDOUS_D = 74,
3191
- AIS_TYPE_CARGO_RESERVED_1 = 75,
3192
- AIS_TYPE_CARGO_RESERVED_2 = 76,
3193
- AIS_TYPE_CARGO_RESERVED_3 = 77,
3194
- AIS_TYPE_CARGO_RESERVED_4 = 78,
3195
- AIS_TYPE_CARGO_UNKNOWN = 79,
3196
- AIS_TYPE_TANKER = 80,
3197
- AIS_TYPE_TANKER_HAZARDOUS_A = 81,
3198
- AIS_TYPE_TANKER_HAZARDOUS_B = 82,
3199
- AIS_TYPE_TANKER_HAZARDOUS_C = 83,
3200
- AIS_TYPE_TANKER_HAZARDOUS_D = 84,
3201
- AIS_TYPE_TANKER_RESERVED_1 = 85,
3202
- AIS_TYPE_TANKER_RESERVED_2 = 86,
3203
- AIS_TYPE_TANKER_RESERVED_3 = 87,
3204
- AIS_TYPE_TANKER_RESERVED_4 = 88,
3205
- AIS_TYPE_TANKER_UNKNOWN = 89,
3206
- AIS_TYPE_OTHER = 90,
3207
- AIS_TYPE_OTHER_HAZARDOUS_A = 91,
3208
- AIS_TYPE_OTHER_HAZARDOUS_B = 92,
3209
- AIS_TYPE_OTHER_HAZARDOUS_C = 93,
3210
- AIS_TYPE_OTHER_HAZARDOUS_D = 94,
3211
- AIS_TYPE_OTHER_RESERVED_1 = 95,
3212
- AIS_TYPE_OTHER_RESERVED_2 = 96,
3213
- AIS_TYPE_OTHER_RESERVED_3 = 97,
3214
- AIS_TYPE_OTHER_RESERVED_4 = 98,
3215
- AIS_TYPE_OTHER_UNKNOWN = 99,
3216
- }
3217
-
3218
- // Navigational status of AIS vessel, enum duplicated from AIS standard, https://gpsd.gitlab.io/gpsd/AIVDM.html
3219
- export enum AIS_NAV_STATUSEnum {
3220
- // Under way using engine.
3221
- UNDER_WAY = 0,
3222
- AIS_NAV_ANCHORED = 1,
3223
- AIS_NAV_UN_COMMANDED = 2,
3224
- AIS_NAV_RESTRICTED_MANOEUVERABILITY = 3,
3225
- AIS_NAV_DRAUGHT_CONSTRAINED = 4,
3226
- AIS_NAV_MOORED = 5,
3227
- AIS_NAV_AGROUND = 6,
3228
- AIS_NAV_FISHING = 7,
3229
- AIS_NAV_SAILING = 8,
3230
- AIS_NAV_RESERVED_HSC = 9,
3231
- AIS_NAV_RESERVED_WIG = 10,
3232
- AIS_NAV_RESERVED_1 = 11,
3233
- AIS_NAV_RESERVED_2 = 12,
3234
- AIS_NAV_RESERVED_3 = 13,
3235
- // Search And Rescue Transponder.
3236
- AIS_NAV_AIS_SART = 14,
3237
- // Not available (default).
3238
- AIS_NAV_UNKNOWN = 15,
3239
- }
3240
-
3241
- // These flags are used in the AIS_VESSEL.fields bitmask to indicate validity of data in the other message fields. When set, the data is valid.
3242
- export enum AIS_FLAGSEnum {
3243
- // 1 = Position accuracy less than 10m, 0 = position accuracy greater than 10m.
3244
- AIS_FLAGS_POSITION_ACCURACY = 1,
3245
- AIS_FLAGS_VALID_COG = 2,
3246
- AIS_FLAGS_VALID_VELOCITY = 4,
3247
- // 1 = Velocity over 52.5765m/s (102.2 knots)
3248
- AIS_FLAGS_HIGH_VELOCITY = 8,
3249
- AIS_FLAGS_VALID_TURN_RATE = 16,
3250
- // Only the sign of the returned turn rate value is valid, either greater than 5deg/30s or less than -5deg/30s
3251
- AIS_FLAGS_TURN_RATE_SIGN_ONLY = 32,
3252
- AIS_FLAGS_VALID_DIMENSIONS = 64,
3253
- // Distance to bow is larger than 511m
3254
- AIS_FLAGS_LARGE_BOW_DIMENSION = 128,
3255
- // Distance to stern is larger than 511m
3256
- AIS_FLAGS_LARGE_STERN_DIMENSION = 256,
3257
- // Distance to port side is larger than 63m
3258
- AIS_FLAGS_LARGE_PORT_DIMENSION = 512,
3259
- // Distance to starboard side is larger than 63m
3260
- AIS_FLAGS_LARGE_STARBOARD_DIMENSION = 1024,
3261
- AIS_FLAGS_VALID_CALLSIGN = 2048,
3262
- AIS_FLAGS_VALID_NAME = 4096,
3263
- }
3264
-
3265
- // List of possible units where failures can be injected.
3266
- export enum FAILURE_UNITEnum {
3267
- FAILURE_UNIT_SENSOR_GYRO = 0,
3268
- FAILURE_UNIT_SENSOR_ACCEL = 1,
3269
- FAILURE_UNIT_SENSOR_MAG = 2,
3270
- FAILURE_UNIT_SENSOR_BARO = 3,
3271
- FAILURE_UNIT_SENSOR_GPS = 4,
3272
- FAILURE_UNIT_SENSOR_OPTICAL_FLOW = 5,
3273
- FAILURE_UNIT_SENSOR_VIO = 6,
3274
- FAILURE_UNIT_SENSOR_DISTANCE_SENSOR = 7,
3275
- FAILURE_UNIT_SENSOR_AIRSPEED = 8,
3276
- FAILURE_UNIT_SYSTEM_BATTERY = 100,
3277
- FAILURE_UNIT_SYSTEM_MOTOR = 101,
3278
- FAILURE_UNIT_SYSTEM_SERVO = 102,
3279
- FAILURE_UNIT_SYSTEM_AVOIDANCE = 103,
3280
- FAILURE_UNIT_SYSTEM_RC_SIGNAL = 104,
3281
- FAILURE_UNIT_SYSTEM_MAVLINK_SIGNAL = 105,
3282
- }
3283
-
3284
- // List of possible failure type to inject.
3285
- export enum FAILURE_TYPEEnum {
3286
- // No failure injected, used to reset a previous failure.
3287
- FAILURE_TYPE_OK = 0,
3288
- // Sets unit off, so completely non-responsive.
3289
- FAILURE_TYPE_OFF = 1,
3290
- // Unit is stuck e.g. keeps reporting the same value.
3291
- FAILURE_TYPE_STUCK = 2,
3292
- // Unit is reporting complete garbage.
3293
- FAILURE_TYPE_GARBAGE = 3,
3294
- // Unit is consistently wrong.
3295
- FAILURE_TYPE_WRONG = 4,
3296
- // Unit is slow, so e.g. reporting at slower than expected rate.
3297
- FAILURE_TYPE_SLOW = 5,
3298
- // Data of unit is delayed in time.
3299
- FAILURE_TYPE_DELAYED = 6,
3300
- // Unit is sometimes working, sometimes not.
3301
- FAILURE_TYPE_INTERMITTENT = 7,
3302
- }
3303
-
3304
- export enum NAV_VTOL_LAND_OPTIONSEnum {
3305
- // Default autopilot landing behaviour.
3306
- NAV_VTOL_LAND_OPTIONS_DEFAULT = 0,
3307
- // Descend in fixed wing mode, transitioning to multicopter mode for vertical landing when close to the ground.
3308
- // The fixed wing descent pattern is at the discretion of the vehicle (e.g. transition altitude, loiter direction, radius, and speed, etc.).
3309
- NAV_VTOL_LAND_OPTIONS_FW_DESCENT = 1,
3310
- // Land in multicopter mode on reaching the landing coordinates (the whole landing is by "hover descent").
3311
- NAV_VTOL_LAND_OPTIONS_HOVER_DESCENT = 2,
3312
- }
3313
-
3314
- // Winch status flags used in WINCH_STATUS
3315
- export enum MAV_WINCH_STATUS_FLAGEnum {
3316
- // Winch is healthy
3317
- MAV_WINCH_STATUS_HEALTHY = 1,
3318
- // Winch line is fully retracted
3319
- MAV_WINCH_STATUS_FULLY_RETRACTED = 2,
3320
- // Winch motor is moving
3321
- MAV_WINCH_STATUS_MOVING = 4,
3322
- // Winch clutch is engaged allowing motor to move freely.
3323
- MAV_WINCH_STATUS_CLUTCH_ENGAGED = 8,
3324
- // Winch is locked by locking mechanism.
3325
- MAV_WINCH_STATUS_LOCKED = 16,
3326
- // Winch is gravity dropping payload.
3327
- MAV_WINCH_STATUS_DROPPING = 32,
3328
- // Winch is arresting payload descent.
3329
- MAV_WINCH_STATUS_ARRESTING = 64,
3330
- // Winch is using torque measurements to sense the ground.
3331
- MAV_WINCH_STATUS_GROUND_SENSE = 128,
3332
- // Winch is returning to the fully retracted position.
3333
- MAV_WINCH_STATUS_RETRACTING = 256,
3334
- // Winch is redelivering the payload. This is a failover state if the line tension goes above a threshold during RETRACTING.
3335
- MAV_WINCH_STATUS_REDELIVER = 512,
3336
- // Winch is abandoning the line and possibly payload. Winch unspools the entire calculated line length. This is a failover state from REDELIVER if the number of attempts exceeds a threshold.
3337
- MAV_WINCH_STATUS_ABANDON_LINE = 1024,
3338
- // Winch is engaging the locking mechanism.
3339
- MAV_WINCH_STATUS_LOCKING = 2048,
3340
- // Winch is spooling on line.
3341
- MAV_WINCH_STATUS_LOAD_LINE = 4096,
3342
- // Winch is loading a payload.
3343
- MAV_WINCH_STATUS_LOAD_PAYLOAD = 8192,
3344
- }
3345
-
3346
- export enum MAG_CAL_STATUSEnum {
3347
- MAG_CAL_NOT_STARTED = 0,
3348
- MAG_CAL_WAITING_TO_START = 1,
3349
- MAG_CAL_RUNNING_STEP_ONE = 2,
3350
- MAG_CAL_RUNNING_STEP_TWO = 3,
3351
- MAG_CAL_SUCCESS = 4,
3352
- MAG_CAL_FAILED = 5,
3353
- MAG_CAL_BAD_ORIENTATION = 6,
3354
- MAG_CAL_BAD_RADIUS = 7,
3355
- }
3356
-
3357
- // Reason for an event error response.
3358
- export enum MAV_EVENT_ERROR_REASONEnum {
3359
- // The requested event is not available (anymore).
3360
- MAV_EVENT_ERROR_REASON_UNAVAILABLE = 0,
3361
- }
3362
-
3363
- // Flags for CURRENT_EVENT_SEQUENCE.
3364
- export enum MAV_EVENT_CURRENT_SEQUENCE_FLAGSEnum {
3365
- // A sequence reset has happened (e.g. vehicle reboot).
3366
- MAV_EVENT_CURRENT_SEQUENCE_FLAGS_RESET = 1,
3367
- }
3368
-
3369
- // Flags in the HIL_SENSOR message indicate which fields have updated since the last message
3370
- export enum HIL_SENSOR_UPDATED_FLAGSEnum {
3371
- // The value in the xacc field has been updated
3372
- HIL_SENSOR_UPDATED_XACC = 1,
3373
- // The value in the yacc field has been updated
3374
- HIL_SENSOR_UPDATED_YACC = 2,
3375
- // The value in the zacc field has been updated
3376
- HIL_SENSOR_UPDATED_ZACC = 4,
3377
- // The value in the xgyro field has been updated
3378
- HIL_SENSOR_UPDATED_XGYRO = 8,
3379
- // The value in the ygyro field has been updated
3380
- HIL_SENSOR_UPDATED_YGYRO = 16,
3381
- // The value in the zgyro field has been updated
3382
- HIL_SENSOR_UPDATED_ZGYRO = 32,
3383
- // The value in the xmag field has been updated
3384
- HIL_SENSOR_UPDATED_XMAG = 64,
3385
- // The value in the ymag field has been updated
3386
- HIL_SENSOR_UPDATED_YMAG = 128,
3387
- // The value in the zmag field has been updated
3388
- HIL_SENSOR_UPDATED_ZMAG = 256,
3389
- // The value in the abs_pressure field has been updated
3390
- HIL_SENSOR_UPDATED_ABS_PRESSURE = 512,
3391
- // The value in the diff_pressure field has been updated
3392
- HIL_SENSOR_UPDATED_DIFF_PRESSURE = 1024,
3393
- // The value in the pressure_alt field has been updated
3394
- HIL_SENSOR_UPDATED_PRESSURE_ALT = 2048,
3395
- // The value in the temperature field has been updated
3396
- HIL_SENSOR_UPDATED_TEMPERATURE = 4096,
3397
- // Full reset of attitude/position/velocities/etc was performed in sim (Bit 31).
3398
- HIL_SENSOR_UPDATED_RESET = 2147483648,
3399
- }
3400
-
3401
- // Flags in the HIGHRES_IMU message indicate which fields have updated since the last message
3402
- export enum HIGHRES_IMU_UPDATED_FLAGSEnum {
3403
- // The value in the xacc field has been updated
3404
- HIGHRES_IMU_UPDATED_XACC = 1,
3405
- // The value in the yacc field has been updated
3406
- HIGHRES_IMU_UPDATED_YACC = 2,
3407
- // The value in the zacc field has been updated since
3408
- HIGHRES_IMU_UPDATED_ZACC = 4,
3409
- // The value in the xgyro field has been updated
3410
- HIGHRES_IMU_UPDATED_XGYRO = 8,
3411
- // The value in the ygyro field has been updated
3412
- HIGHRES_IMU_UPDATED_YGYRO = 16,
3413
- // The value in the zgyro field has been updated
3414
- HIGHRES_IMU_UPDATED_ZGYRO = 32,
3415
- // The value in the xmag field has been updated
3416
- HIGHRES_IMU_UPDATED_XMAG = 64,
3417
- // The value in the ymag field has been updated
3418
- HIGHRES_IMU_UPDATED_YMAG = 128,
3419
- // The value in the zmag field has been updated
3420
- HIGHRES_IMU_UPDATED_ZMAG = 256,
3421
- // The value in the abs_pressure field has been updated
3422
- HIGHRES_IMU_UPDATED_ABS_PRESSURE = 512,
3423
- // The value in the diff_pressure field has been updated
3424
- HIGHRES_IMU_UPDATED_DIFF_PRESSURE = 1024,
3425
- // The value in the pressure_alt field has been updated
3426
- HIGHRES_IMU_UPDATED_PRESSURE_ALT = 2048,
3427
- // The value in the temperature field has been updated
3428
- HIGHRES_IMU_UPDATED_TEMPERATURE = 4096,
3429
- }
3430
-
3431
- export enum CAN_FILTER_OPEnum {
3432
- CAN_FILTER_REPLACE = 0,
3433
- CAN_FILTER_ADD = 1,
3434
- CAN_FILTER_REMOVE = 2,
3435
- }
3436
-
3437
- // MAV FTP error codes (https://mavlink.io/en/services/ftp.html)
3438
- export enum MAV_FTP_ERREnum {
3439
- // None: No error
3440
- MAV_FTP_ERR_NONE = 0,
3441
- // Fail: Unknown failure
3442
- MAV_FTP_ERR_FAIL = 1,
3443
- // FailErrno: Command failed, Err number sent back in PayloadHeader.data[1].
3444
- // This is a file-system error number understood by the server operating system.
3445
- MAV_FTP_ERR_FAILERRNO = 2,
3446
- // InvalidDataSize: Payload size is invalid
3447
- MAV_FTP_ERR_INVALIDDATASIZE = 3,
3448
- // InvalidSession: Session is not currently open
3449
- MAV_FTP_ERR_INVALIDSESSION = 4,
3450
- // NoSessionsAvailable: All available sessions are already in use
3451
- MAV_FTP_ERR_NOSESSIONSAVAILABLE = 5,
3452
- // EOF: Offset past end of file for ListDirectory and ReadFile commands
3453
- MAV_FTP_ERR_EOF = 6,
3454
- // UnknownCommand: Unknown command / opcode
3455
- MAV_FTP_ERR_UNKNOWNCOMMAND = 7,
3456
- // FileExists: File/directory already exists
3457
- MAV_FTP_ERR_FILEEXISTS = 8,
3458
- // FileProtected: File/directory is write protected
3459
- MAV_FTP_ERR_FILEPROTECTED = 9,
3460
- // FileNotFound: File/directory not found
3461
- MAV_FTP_ERR_FILENOTFOUND = 10,
3462
- }
3463
-
3464
- // MAV FTP opcodes: https://mavlink.io/en/services/ftp.html
3465
- export enum MAV_FTP_OPCODEEnum {
3466
- // None. Ignored, always ACKed
3467
- MAV_FTP_OPCODE_NONE = 0,
3468
- // TerminateSession: Terminates open Read session
3469
- MAV_FTP_OPCODE_TERMINATESESSION = 1,
3470
- // ResetSessions: Terminates all open read sessions
3471
- MAV_FTP_OPCODE_RESETSESSION = 2,
3472
- // ListDirectory. List files and directories in path from offset
3473
- MAV_FTP_OPCODE_LISTDIRECTORY = 3,
3474
- // OpenFileRO: Opens file at path for reading, returns session
3475
- MAV_FTP_OPCODE_OPENFILERO = 4,
3476
- // ReadFile: Reads size bytes from offset in session
3477
- MAV_FTP_OPCODE_READFILE = 5,
3478
- // CreateFile: Creates file at path for writing, returns session
3479
- MAV_FTP_OPCODE_CREATEFILE = 6,
3480
- // WriteFile: Writes size bytes to offset in session
3481
- MAV_FTP_OPCODE_WRITEFILE = 7,
3482
- // RemoveFile: Remove file at path
3483
- MAV_FTP_OPCODE_REMOVEFILE = 8,
3484
- // CreateDirectory: Creates directory at path
3485
- MAV_FTP_OPCODE_CREATEDIRECTORY = 9,
3486
- // RemoveDirectory: Removes directory at path. The directory must be empty.
3487
- MAV_FTP_OPCODE_REMOVEDIRECTORY = 10,
3488
- // OpenFileWO: Opens file at path for writing, returns session
3489
- MAV_FTP_OPCODE_OPENFILEWO = 11,
3490
- // TruncateFile: Truncate file at path to offset length
3491
- MAV_FTP_OPCODE_TRUNCATEFILE = 12,
3492
- // Rename: Rename path1 to path2
3493
- MAV_FTP_OPCODE_RENAME = 13,
3494
- // CalcFileCRC32: Calculate CRC32 for file at path
3495
- MAV_FTP_OPCODE_CALCFILECRC = 14,
3496
- // BurstReadFile: Burst download session file
3497
- MAV_FTP_OPCODE_BURSTREADFILE = 15,
3498
- // ACK: ACK response
3499
- MAV_FTP_OPCODE_ACK = 128,
3500
- // NAK: NAK response
3501
- MAV_FTP_OPCODE_NAK = 129,
3502
- }
3503
-
3504
- // States of the mission state machine.
3505
- // Note that these states are independent of whether the mission is in a mode that can execute mission items or not (is suspended).
3506
- // They may not all be relevant on all vehicles.
3507
- export enum MISSION_STATEEnum {
3508
- // The mission status reporting is not supported.
3509
- MISSION_STATE_UNKNOWN = 0,
3510
- // No mission on the vehicle.
3511
- MISSION_STATE_NO_MISSION = 1,
3512
- // Mission has not started. This is the case after a mission has uploaded but not yet started executing.
3513
- MISSION_STATE_NOT_STARTED = 2,
3514
- // Mission is active, and will execute mission items when in auto mode.
3515
- MISSION_STATE_ACTIVE = 3,
3516
- // Mission is paused when in auto mode.
3517
- MISSION_STATE_PAUSED = 4,
3518
- // Mission has executed all mission items.
3519
- MISSION_STATE_COMPLETE = 5,
3520
- }
3521
-
3522
- // Possible safety switch states.
3523
- export enum SAFETY_SWITCH_STATEEnum {
3524
- // Safety switch is engaged and vehicle should be safe to approach.
3525
- SAFETY_SWITCH_STATE_SAFE = 0,
3526
- // Safety switch is NOT engaged and motors, propellers and other actuators should be considered active.
3527
- SAFETY_SWITCH_STATE_DANGEROUS = 1,
3528
- }
3529
-
3530
- // Modes of illuminator
3531
- export enum ILLUMINATOR_MODEEnum {
3532
- // Illuminator mode is not specified/unknown
3533
- ILLUMINATOR_MODE_UNKNOWN = 0,
3534
- // Illuminator behavior is controlled by MAV_CMD_DO_ILLUMINATOR_CONFIGURE settings
3535
- ILLUMINATOR_MODE_INTERNAL_CONTROL = 1,
3536
- // Illuminator behavior is controlled by external factors: e.g. an external hardware signal
3537
- ILLUMINATOR_MODE_EXTERNAL_SYNC = 2,
3538
- }
3539
-
3540
- // Illuminator module error flags (bitmap, 0 means no error)
3541
- export enum ILLUMINATOR_ERROR_FLAGSEnum {
3542
- // Illuminator thermal throttling error.
3543
- ILLUMINATOR_ERROR_FLAGS_THERMAL_THROTTLING = 1,
3544
- // Illuminator over temperature shutdown error.
3545
- ILLUMINATOR_ERROR_FLAGS_OVER_TEMPERATURE_SHUTDOWN = 2,
3546
- // Illuminator thermistor failure.
3547
- ILLUMINATOR_ERROR_FLAGS_THERMISTOR_FAILURE = 4,
3548
- }
3549
-
3550
- // Standard modes with a well understood meaning across flight stacks and vehicle types.
3551
- // For example, most flight stack have the concept of a "return" or "RTL" mode that takes a vehicle to safety, even though the precise mechanics of this mode may differ.
3552
- // The modes supported by a flight stack can be queried using AVAILABLE_MODES and set using MAV_CMD_DO_SET_STANDARD_MODE.
3553
- // The current mode is streamed in CURRENT_MODE.
3554
- // See https://mavlink.io/en/services/standard_modes.html
3555
- export enum MAV_STANDARD_MODEEnum {
3556
- // Non standard mode.
3557
- // This may be used when reporting the mode if the current flight mode is not a standard mode.
3558
- MAV_STANDARD_MODE_NON_STANDARD = 0,
3559
- // Position mode (manual).
3560
- // Position-controlled and stabilized manual mode.
3561
- // When sticks are released vehicles return to their level-flight orientation and hold both position and altitude against wind and external forces.
3562
- // This mode can only be set by vehicles that can hold a fixed position.
3563
- // Multicopter (MC) vehicles actively brake and hold both position and altitude against wind and external forces.
3564
- // Hybrid MC/FW ("VTOL") vehicles first transition to multicopter mode (if needed) but otherwise behave in the same way as MC vehicles.
3565
- // Fixed-wing (FW) vehicles must not support this mode.
3566
- // Other vehicle types must not support this mode (this may be revisited through the PR process).
3567
- MAV_STANDARD_MODE_POSITION_HOLD = 1,
3568
- // Orbit (manual).
3569
- // Position-controlled and stabilized manual mode.
3570
- // The vehicle circles around a fixed setpoint in the horizontal plane at a particular radius, altitude, and direction.
3571
- // Flight stacks may further allow manual control over the setpoint position, radius, direction, speed, and/or altitude of the circle, but this is not mandated.
3572
- // Flight stacks may support the [MAV_CMD_DO_ORBIT](https://mavlink.io/en/messages/common.html#MAV_CMD_DO_ORBIT) for changing the orbit parameters.
3573
- // MC and FW vehicles may support this mode.
3574
- // Hybrid MC/FW ("VTOL") vehicles may support this mode in MC/FW or both modes; if the mode is not supported by the current configuration the vehicle should transition to the supported configuration.
3575
- // Other vehicle types must not support this mode (this may be revisited through the PR process).
3576
- MAV_STANDARD_MODE_ORBIT = 2,
3577
- // Cruise mode (manual).
3578
- // Position-controlled and stabilized manual mode.
3579
- // When sticks are released vehicles return to their level-flight orientation and hold their original track against wind and external forces.
3580
- // Fixed-wing (FW) vehicles level orientation and maintain current track and altitude against wind and external forces.
3581
- // Hybrid MC/FW ("VTOL") vehicles first transition to FW mode (if needed) but otherwise behave in the same way as MC vehicles.
3582
- // Multicopter (MC) vehicles must not support this mode.
3583
- // Other vehicle types must not support this mode (this may be revisited through the PR process).
3584
- MAV_STANDARD_MODE_CRUISE = 3,
3585
- // Altitude hold (manual).
3586
- // Altitude-controlled and stabilized manual mode.
3587
- // When sticks are released vehicles return to their level-flight orientation and hold their altitude.
3588
- // MC vehicles continue with existing momentum and may move with wind (or other external forces).
3589
- // FW vehicles continue with current heading, but may be moved off-track by wind.
3590
- // Hybrid MC/FW ("VTOL") vehicles behave according to their current configuration/mode (FW or MC).
3591
- // Other vehicle types must not support this mode (this may be revisited through the PR process).
3592
- MAV_STANDARD_MODE_ALTITUDE_HOLD = 4,
3593
- // Safe recovery mode (auto).
3594
- // Automatic mode that takes vehicle to a predefined safe location via a safe flight path, and may also automatically land the vehicle.
3595
- // This mode is more commonly referred to as RTL and/or or Smart RTL.
3596
- // The precise return location, flight path, and landing behaviour depend on vehicle configuration and type.
3597
- // For example, the vehicle might return to the home/launch location, a rally point, or the start of a mission landing, it might follow a direct path, mission path, or breadcrumb path, and land using a mission landing pattern or some other kind of descent.
3598
- MAV_STANDARD_MODE_SAFE_RECOVERY = 5,
3599
- // Mission mode (automatic).
3600
- // Automatic mode that executes MAVLink missions.
3601
- // Missions are executed from the current waypoint as soon as the mode is enabled.
3602
- MAV_STANDARD_MODE_MISSION = 6,
3603
- // Land mode (auto).
3604
- // Automatic mode that lands the vehicle at the current location.
3605
- // The precise landing behaviour depends on vehicle configuration and type.
3606
- MAV_STANDARD_MODE_LAND = 7,
3607
- // Takeoff mode (auto).
3608
- // Automatic takeoff mode.
3609
- // The precise takeoff behaviour depends on vehicle configuration and type.
3610
- MAV_STANDARD_MODE_TAKEOFF = 8,
3611
- }
3612
-
3613
- // Mode properties.
3614
- export enum MAV_MODE_PROPERTYEnum {
3615
- // If set, this mode is an advanced mode.
3616
- // For example a rate-controlled manual mode might be advanced, whereas a position-controlled manual mode is not.
3617
- // A GCS can optionally use this flag to configure the UI for its intended users.
3618
- MAV_MODE_PROPERTY_ADVANCED = 1,
3619
- // If set, this mode should not be added to the list of selectable modes.
3620
- // The mode might still be selected by the FC directly (for example as part of a failsafe).
3621
- MAV_MODE_PROPERTY_NOT_USER_SELECTABLE = 2,
3622
- // If set, this mode is automatically controlled (it may use but does not require a manual controller).
3623
- // If unset the mode is a assumed to require user input (be a manual mode).
3624
- MAV_MODE_PROPERTY_AUTO_MODE = 4,
3625
- }
3626
-
3627
- // Flags used in HIL_ACTUATOR_CONTROLS message.
3628
- export enum HIL_ACTUATOR_CONTROLS_FLAGSEnum {
3629
- // Simulation is using lockstep
3630
- HIL_ACTUATOR_CONTROLS_FLAGS_LOCKSTEP = 1,
3631
- }
3632
-
3633
- // State flags for ADS-B transponder dynamic report
3634
- export enum UAVIONIX_ADSB_OUT_DYNAMIC_STATEEnum {
3635
- UAVIONIX_ADSB_OUT_DYNAMIC_STATE_INTENT_CHANGE = 1,
3636
- UAVIONIX_ADSB_OUT_DYNAMIC_STATE_AUTOPILOT_ENABLED = 2,
3637
- UAVIONIX_ADSB_OUT_DYNAMIC_STATE_NICBARO_CROSSCHECKED = 4,
3638
- UAVIONIX_ADSB_OUT_DYNAMIC_STATE_ON_GROUND = 8,
3639
- UAVIONIX_ADSB_OUT_DYNAMIC_STATE_IDENT = 16,
3640
- }
3641
-
3642
- // Transceiver RF control flags for ADS-B transponder dynamic reports
3643
- export enum UAVIONIX_ADSB_OUT_RF_SELECTEnum {
3644
- UAVIONIX_ADSB_OUT_RF_SELECT_RX_ENABLED = 1,
3645
- UAVIONIX_ADSB_OUT_RF_SELECT_TX_ENABLED = 2,
3646
- }
3647
-
3648
- // Status for ADS-B transponder dynamic input
3649
- export enum UAVIONIX_ADSB_OUT_DYNAMIC_GPS_FIXEnum {
3650
- UAVIONIX_ADSB_OUT_DYNAMIC_GPS_FIX_NONE_0 = 0,
3651
- UAVIONIX_ADSB_OUT_DYNAMIC_GPS_FIX_NONE_1 = 1,
3652
- UAVIONIX_ADSB_OUT_DYNAMIC_GPS_FIX_2D = 2,
3653
- UAVIONIX_ADSB_OUT_DYNAMIC_GPS_FIX_3D = 3,
3654
- UAVIONIX_ADSB_OUT_DYNAMIC_GPS_FIX_DGPS = 4,
3655
- UAVIONIX_ADSB_OUT_DYNAMIC_GPS_FIX_RTK = 5,
3656
- }
3657
-
3658
- // Status flags for ADS-B transponder dynamic output
3659
- export enum UAVIONIX_ADSB_RF_HEALTHEnum {
3660
- UAVIONIX_ADSB_RF_HEALTH_OK = 1,
3661
- UAVIONIX_ADSB_RF_HEALTH_FAIL_TX = 2,
3662
- UAVIONIX_ADSB_RF_HEALTH_FAIL_RX = 16,
3663
- }
3664
-
3665
- // Definitions for aircraft size
3666
- export enum UAVIONIX_ADSB_OUT_CFG_AIRCRAFT_SIZEEnum {
3667
- UAVIONIX_ADSB_OUT_CFG_AIRCRAFT_SIZE_NO_DATA = 0,
3668
- UAVIONIX_ADSB_OUT_CFG_AIRCRAFT_SIZE_L15M_W23M = 1,
3669
- UAVIONIX_ADSB_OUT_CFG_AIRCRAFT_SIZE_L25M_W28P5M = 2,
3670
- UAVIONIX_ADSB_OUT_CFG_AIRCRAFT_SIZE_L25_34M = 3,
3671
- UAVIONIX_ADSB_OUT_CFG_AIRCRAFT_SIZE_L35_33M = 4,
3672
- UAVIONIX_ADSB_OUT_CFG_AIRCRAFT_SIZE_L35_38M = 5,
3673
- UAVIONIX_ADSB_OUT_CFG_AIRCRAFT_SIZE_L45_39P5M = 6,
3674
- UAVIONIX_ADSB_OUT_CFG_AIRCRAFT_SIZE_L45_45M = 7,
3675
- UAVIONIX_ADSB_OUT_CFG_AIRCRAFT_SIZE_L55_45M = 8,
3676
- UAVIONIX_ADSB_OUT_CFG_AIRCRAFT_SIZE_L55_52M = 9,
3677
- UAVIONIX_ADSB_OUT_CFG_AIRCRAFT_SIZE_L65_59P5M = 10,
3678
- UAVIONIX_ADSB_OUT_CFG_AIRCRAFT_SIZE_L65_67M = 11,
3679
- UAVIONIX_ADSB_OUT_CFG_AIRCRAFT_SIZE_L75_W72P5M = 12,
3680
- UAVIONIX_ADSB_OUT_CFG_AIRCRAFT_SIZE_L75_W80M = 13,
3681
- UAVIONIX_ADSB_OUT_CFG_AIRCRAFT_SIZE_L85_W80M = 14,
3682
- UAVIONIX_ADSB_OUT_CFG_AIRCRAFT_SIZE_L85_W90M = 15,
3683
- }
3684
-
3685
- // GPS lataral offset encoding
3686
- export enum UAVIONIX_ADSB_OUT_CFG_GPS_OFFSET_LATEnum {
3687
- UAVIONIX_ADSB_OUT_CFG_GPS_OFFSET_LAT_NO_DATA = 0,
3688
- UAVIONIX_ADSB_OUT_CFG_GPS_OFFSET_LAT_LEFT_2M = 1,
3689
- UAVIONIX_ADSB_OUT_CFG_GPS_OFFSET_LAT_LEFT_4M = 2,
3690
- UAVIONIX_ADSB_OUT_CFG_GPS_OFFSET_LAT_LEFT_6M = 3,
3691
- UAVIONIX_ADSB_OUT_CFG_GPS_OFFSET_LAT_RIGHT_0M = 4,
3692
- UAVIONIX_ADSB_OUT_CFG_GPS_OFFSET_LAT_RIGHT_2M = 5,
3693
- UAVIONIX_ADSB_OUT_CFG_GPS_OFFSET_LAT_RIGHT_4M = 6,
3694
- UAVIONIX_ADSB_OUT_CFG_GPS_OFFSET_LAT_RIGHT_6M = 7,
3695
- }
3696
-
3697
- // GPS longitudinal offset encoding
3698
- export enum UAVIONIX_ADSB_OUT_CFG_GPS_OFFSET_LONEnum {
3699
- UAVIONIX_ADSB_OUT_CFG_GPS_OFFSET_LON_NO_DATA = 0,
3700
- UAVIONIX_ADSB_OUT_CFG_GPS_OFFSET_LON_APPLIED_BY_SENSOR = 1,
3701
- }
3702
-
3703
- // Emergency status encoding
3704
- export enum UAVIONIX_ADSB_EMERGENCY_STATUSEnum {
3705
- UAVIONIX_ADSB_OUT_NO_EMERGENCY = 0,
3706
- UAVIONIX_ADSB_OUT_GENERAL_EMERGENCY = 1,
3707
- UAVIONIX_ADSB_OUT_LIFEGUARD_EMERGENCY = 2,
3708
- UAVIONIX_ADSB_OUT_MINIMUM_FUEL_EMERGENCY = 3,
3709
- UAVIONIX_ADSB_OUT_NO_COMM_EMERGENCY = 4,
3710
- UAVIONIX_ADSB_OUT_UNLAWFUL_INTERFERANCE_EMERGENCY = 5,
3711
- UAVIONIX_ADSB_OUT_DOWNED_AIRCRAFT_EMERGENCY = 6,
3712
- UAVIONIX_ADSB_OUT_RESERVED = 7,
3713
- }
3714
-
3715
- // State flags for ADS-B transponder dynamic report
3716
- export enum UAVIONIX_ADSB_OUT_CONTROL_STATEEnum {
3717
- UAVIONIX_ADSB_OUT_CONTROL_STATE_EXTERNAL_BARO_CROSSCHECKED = 1,
3718
- UAVIONIX_ADSB_OUT_CONTROL_STATE_ON_GROUND = 4,
3719
- UAVIONIX_ADSB_OUT_CONTROL_STATE_IDENT_BUTTON_ACTIVE = 8,
3720
- UAVIONIX_ADSB_OUT_CONTROL_STATE_MODE_A_ENABLED = 16,
3721
- UAVIONIX_ADSB_OUT_CONTROL_STATE_MODE_C_ENABLED = 32,
3722
- UAVIONIX_ADSB_OUT_CONTROL_STATE_MODE_S_ENABLED = 64,
3723
- UAVIONIX_ADSB_OUT_CONTROL_STATE_1090ES_TX_ENABLED = 128,
3724
- }
3725
-
3726
- // State flags for X-Bit and reserved fields.
3727
- export enum UAVIONIX_ADSB_XBITEnum {
3728
- UAVIONIX_ADSB_XBIT_ENABLED = 128,
3729
- }
3730
-
3731
- // State flags for ADS-B transponder status report
3732
- export enum UAVIONIX_ADSB_OUT_STATUS_STATEEnum {
3733
- UAVIONIX_ADSB_OUT_STATUS_STATE_ON_GROUND = 1,
3734
- UAVIONIX_ADSB_OUT_STATUS_STATE_INTERROGATED_SINCE_LAST = 2,
3735
- UAVIONIX_ADSB_OUT_STATUS_STATE_XBIT_ENABLED = 4,
3736
- UAVIONIX_ADSB_OUT_STATUS_STATE_IDENT_ACTIVE = 8,
3737
- UAVIONIX_ADSB_OUT_STATUS_STATE_MODE_A_ENABLED = 16,
3738
- UAVIONIX_ADSB_OUT_STATUS_STATE_MODE_C_ENABLED = 32,
3739
- UAVIONIX_ADSB_OUT_STATUS_STATE_MODE_S_ENABLED = 64,
3740
- UAVIONIX_ADSB_OUT_STATUS_STATE_1090ES_TX_ENABLED = 128,
3741
- }
3742
-
3743
- // State flags for ADS-B transponder status report
3744
- export enum UAVIONIX_ADSB_OUT_STATUS_NIC_NACPEnum {
3745
- UAVIONIX_ADSB_NIC_CR_20_NM = 1,
3746
- UAVIONIX_ADSB_NIC_CR_8_NM = 2,
3747
- UAVIONIX_ADSB_NIC_CR_4_NM = 3,
3748
- UAVIONIX_ADSB_NIC_CR_2_NM = 4,
3749
- UAVIONIX_ADSB_NIC_CR_1_NM = 5,
3750
- UAVIONIX_ADSB_NIC_CR_0_3_NM = 6,
3751
- UAVIONIX_ADSB_NIC_CR_0_2_NM = 7,
3752
- UAVIONIX_ADSB_NIC_CR_0_1_NM = 8,
3753
- UAVIONIX_ADSB_NIC_CR_75_M = 9,
3754
- UAVIONIX_ADSB_NIC_CR_25_M = 10,
3755
- UAVIONIX_ADSB_NIC_CR_7_5_M = 11,
3756
- UAVIONIX_ADSB_NACP_EPU_10_NM = 16,
3757
- UAVIONIX_ADSB_NACP_EPU_4_NM = 32,
3758
- UAVIONIX_ADSB_NACP_EPU_2_NM = 48,
3759
- UAVIONIX_ADSB_NACP_EPU_1_NM = 64,
3760
- UAVIONIX_ADSB_NACP_EPU_0_5_NM = 80,
3761
- UAVIONIX_ADSB_NACP_EPU_0_3_NM = 96,
3762
- UAVIONIX_ADSB_NACP_EPU_0_1_NM = 112,
3763
- UAVIONIX_ADSB_NACP_EPU_0_05_NM = 128,
3764
- UAVIONIX_ADSB_NACP_EPU_30_M = 144,
3765
- UAVIONIX_ADSB_NACP_EPU_10_M = 160,
3766
- UAVIONIX_ADSB_NACP_EPU_3_M = 176,
3767
- }
3768
-
3769
- // State flags for ADS-B transponder fault report
3770
- export enum UAVIONIX_ADSB_OUT_STATUS_FAULTEnum {
3771
- UAVIONIX_ADSB_OUT_STATUS_FAULT_STATUS_MESSAGE_UNAVAIL = 8,
3772
- UAVIONIX_ADSB_OUT_STATUS_FAULT_GPS_NO_POS = 16,
3773
- UAVIONIX_ADSB_OUT_STATUS_FAULT_GPS_UNAVAIL = 32,
3774
- UAVIONIX_ADSB_OUT_STATUS_FAULT_TX_SYSTEM_FAIL = 64,
3775
- UAVIONIX_ADSB_OUT_STATUS_FAULT_MAINT_REQ = 128,
3776
- }
3777
-
3778
- export enum ICAROUS_TRACK_BAND_TYPESEnum {
3779
- ICAROUS_TRACK_BAND_TYPE_NONE = 0,
3780
- ICAROUS_TRACK_BAND_TYPE_NEAR = 1,
3781
- ICAROUS_TRACK_BAND_TYPE_RECOVERY = 2,
3782
- }
3783
-
3784
- export enum ICAROUS_FMS_STATEEnum {
3785
- ICAROUS_FMS_STATE_IDLE = 0,
3786
- ICAROUS_FMS_STATE_TAKEOFF = 1,
3787
- ICAROUS_FMS_STATE_CLIMB = 2,
3788
- ICAROUS_FMS_STATE_CRUISE = 3,
3789
- ICAROUS_FMS_STATE_APPROACH = 4,
3790
- ICAROUS_FMS_STATE_LAND = 5,
3791
- }
3792
-
3793
- export enum MAV_CMDEnum {
3794
- // Set Loweheiser desired states
3795
- MAV_CMD_LOWEHEISER_SET_STATE = 10151,
3796
- }
3797
-
3798
- export enum AIRLINK_AUTH_RESPONSE_TYPEEnum {
3799
- // Login or password error
3800
- AIRLINK_ERROR_LOGIN_OR_PASS = 0,
3801
- // Auth successful
3802
- AIRLINK_AUTH_OK = 1,
3803
- }
3804
-
3805
- export enum ACCELCAL_VEHICLE_POSEnum {
3806
- ACCELCAL_VEHICLE_POS_LEVEL = 1,
3807
- ACCELCAL_VEHICLE_POS_LEFT = 2,
3808
- ACCELCAL_VEHICLE_POS_RIGHT = 3,
3809
- ACCELCAL_VEHICLE_POS_NOSEDOWN = 4,
3810
- ACCELCAL_VEHICLE_POS_NOSEUP = 5,
3811
- ACCELCAL_VEHICLE_POS_BACK = 6,
3812
- ACCELCAL_VEHICLE_POS_SUCCESS = 16777215,
3813
- ACCELCAL_VEHICLE_POS_FAILED = 16777216,
3814
- }
3815
-
3816
- export enum HEADING_TYPEEnum {
3817
- HEADING_TYPE_COURSE_OVER_GROUND = 0,
3818
- HEADING_TYPE_HEADING = 1,
3819
- HEADING_TYPE_DEFAULT = 2,
3820
- }
3821
-
3822
- export enum MAV_CMDEnum {
3823
- // Set the distance to be repeated on mission resume
3824
- MAV_CMD_DO_SET_RESUME_REPEAT_DIST = 215,
3825
- // Control attached liquid sprayer
3826
- MAV_CMD_DO_SPRAYER = 216,
3827
- // Pass instructions onto scripting, a script should be checking for a new command
3828
- MAV_CMD_DO_SEND_SCRIPT_MESSAGE = 217,
3829
- // Execute auxiliary function
3830
- MAV_CMD_DO_AUX_FUNCTION = 218,
3831
- // Mission command to wait for an altitude or downwards vertical speed. This is meant for high altitude balloon launches, allowing the aircraft to be idle until either an altitude is reached or a negative vertical speed is reached (indicating early balloon burst). The wiggle time is how often to wiggle the control surfaces to prevent them seizing up.
3832
- MAV_CMD_NAV_ALTITUDE_WAIT = 83,
3833
- // A system wide power-off event has been initiated.
3834
- MAV_CMD_POWER_OFF_INITIATED = 42000,
3835
- // FLY button has been clicked.
3836
- MAV_CMD_SOLO_BTN_FLY_CLICK = 42001,
3837
- // FLY button has been held for 1.5 seconds.
3838
- MAV_CMD_SOLO_BTN_FLY_HOLD = 42002,
3839
- // PAUSE button has been clicked.
3840
- MAV_CMD_SOLO_BTN_PAUSE_CLICK = 42003,
3841
- // Magnetometer calibration based on fixed position
3842
- // in earth field given by inclination, declination and intensity.
3843
- MAV_CMD_FIXED_MAG_CAL = 42004,
3844
- // Magnetometer calibration based on fixed expected field values.
3845
- MAV_CMD_FIXED_MAG_CAL_FIELD = 42005,
3846
- // Set EKF sensor source set.
3847
- MAV_CMD_SET_EKF_SOURCE_SET = 42007,
3848
- // Initiate a magnetometer calibration.
3849
- MAV_CMD_DO_START_MAG_CAL = 42424,
3850
- // Accept a magnetometer calibration.
3851
- MAV_CMD_DO_ACCEPT_MAG_CAL = 42425,
3852
- // Cancel a running magnetometer calibration.
3853
- MAV_CMD_DO_CANCEL_MAG_CAL = 42426,
3854
- // Used when doing accelerometer calibration. When sent to the GCS tells it what position to put the vehicle in. When sent to the vehicle says what position the vehicle is in.
3855
- MAV_CMD_ACCELCAL_VEHICLE_POS = 42429,
3856
- // Reply with the version banner.
3857
- MAV_CMD_DO_SEND_BANNER = 42428,
3858
- // Command autopilot to get into factory test/diagnostic mode.
3859
- MAV_CMD_SET_FACTORY_TEST_MODE = 42427,
3860
- // Causes the gimbal to reset and boot as if it was just powered on.
3861
- MAV_CMD_GIMBAL_RESET = 42501,
3862
- // Reports progress and success or failure of gimbal axis calibration procedure.
3863
- MAV_CMD_GIMBAL_AXIS_CALIBRATION_STATUS = 42502,
3864
- // Starts commutation calibration on the gimbal.
3865
- MAV_CMD_GIMBAL_REQUEST_AXIS_CALIBRATION = 42503,
3866
- // Erases gimbal application and parameters.
3867
- MAV_CMD_GIMBAL_FULL_RESET = 42505,
3868
- // Update the bootloader
3869
- MAV_CMD_FLASH_BOOTLOADER = 42650,
3870
- // Reset battery capacity for batteries that accumulate consumed battery via integration.
3871
- MAV_CMD_BATTERY_RESET = 42651,
3872
- // Issue a trap signal to the autopilot process, presumably to enter the debugger.
3873
- MAV_CMD_DEBUG_TRAP = 42700,
3874
- // Control onboard scripting.
3875
- MAV_CMD_SCRIPTING = 42701,
3876
- // Scripting command as NAV command with wait for completion.
3877
- MAV_CMD_NAV_SCRIPT_TIME = 42702,
3878
- // Maintain an attitude for a specified time.
3879
- MAV_CMD_NAV_ATTITUDE_TIME = 42703,
3880
- // Change flight speed at a given rate. This slews the vehicle at a controllable rate between it's previous speed and the new one. (affects GUIDED only. Outside GUIDED, aircraft ignores these commands. Designed for onboard companion-computer command-and-control, not normally operator/GCS control.)
3881
- MAV_CMD_GUIDED_CHANGE_SPEED = 43000,
3882
- // Change target altitude at a given rate. This slews the vehicle at a controllable rate between it's previous altitude and the new one. (affects GUIDED only. Outside GUIDED, aircraft ignores these commands. Designed for onboard companion-computer command-and-control, not normally operator/GCS control.)
3883
- MAV_CMD_GUIDED_CHANGE_ALTITUDE = 43001,
3884
- // Change to target heading at a given rate, overriding previous heading/s. This slews the vehicle at a controllable rate between it's previous heading and the new one. (affects GUIDED only. Exiting GUIDED returns aircraft to normal behaviour defined elsewhere. Designed for onboard companion-computer command-and-control, not normally operator/GCS control.)
3885
- MAV_CMD_GUIDED_CHANGE_HEADING = 43002,
3886
- // Provide a value for height above ground level. This can be used for things like fixed wing and VTOL landing.
3887
- MAV_CMD_SET_HAGL = 43005,
3888
- }
3889
-
3890
- export enum SCRIPTING_CMDEnum {
3891
- // Start a REPL session.
3892
- SCRIPTING_CMD_REPL_START = 0,
3893
- // End a REPL session.
3894
- SCRIPTING_CMD_REPL_STOP = 1,
3895
- // Stop execution of scripts.
3896
- SCRIPTING_CMD_STOP = 2,
3897
- // Stop execution of scripts and restart.
3898
- SCRIPTING_CMD_STOP_AND_RESTART = 3,
3899
- }
3900
-
3901
- export enum SECURE_COMMAND_OPEnum {
3902
- // Get an 8 byte session key which is used for remote secure updates which operate on flight controller data such as bootloader public keys. Return data will be 8 bytes on success. The session key remains valid until either the flight controller reboots or another SECURE_COMMAND_GET_SESSION_KEY is run.
3903
- SECURE_COMMAND_GET_SESSION_KEY = 0,
3904
- // Get an 8 byte session key which is used for remote secure updates which operate on RemoteID module data. Return data will be 8 bytes on success. The session key remains valid until either the remote ID module reboots or another SECURE_COMMAND_GET_REMOTEID_SESSION_KEY is run.
3905
- SECURE_COMMAND_GET_REMOTEID_SESSION_KEY = 1,
3906
- // Remove range of public keys from the bootloader. Command data consists of two bytes, first byte if index of first public key to remove. Second byte is the number of keys to remove. If all keys are removed then secure boot is disabled and insecure firmware can be loaded.
3907
- SECURE_COMMAND_REMOVE_PUBLIC_KEYS = 2,
3908
- // Get current public keys from the bootloader. Command data consists of two bytes, first byte is index of first public key to fetch, 2nd byte is number of keys to fetch. Total data needs to fit in data portion of reply (max 6 keys for 32 byte keys). Reply data has the index of the first key in the first byte, followed by the keys. Returned keys may be less than the number of keys requested if there are less keys installed than requested.
3909
- SECURE_COMMAND_GET_PUBLIC_KEYS = 3,
3910
- // Set current public keys in the bootloader. Data consists of a one byte public key index followed by the public keys. With 32 byte keys this allows for up to 6 keys to be set in one request. Keys outside of the range that is being set will remain unchanged.
3911
- SECURE_COMMAND_SET_PUBLIC_KEYS = 4,
3912
- // Get config data for remote ID module. This command should be sent to the component ID of the flight controller which will forward it to the RemoteID module either over mavlink or DroneCAN. Data format is specific to the RemoteID implementation, see RemoteID firmware documentation for details.
3913
- SECURE_COMMAND_GET_REMOTEID_CONFIG = 5,
3914
- // Set config data for remote ID module. This command should be sent to the component ID of the flight controller which will forward it to the RemoteID module either over mavlink or DroneCAN. Data format is specific to the RemoteID implementation, see RemoteID firmware documentation for details.
3915
- SECURE_COMMAND_SET_REMOTEID_CONFIG = 6,
3916
- // Flash bootloader from local storage. Data is the filename to use for the bootloader. This is intended to be used with MAVFtp to upload a new bootloader to a microSD before flashing.
3917
- SECURE_COMMAND_FLASH_BOOTLOADER = 7,
3918
- }
3919
-
3920
- export enum LIMITS_STATEEnum {
3921
- // Pre-initialization.
3922
- LIMITS_INIT = 0,
3923
- // Disabled.
3924
- LIMITS_DISABLED = 1,
3925
- // Checking limits.
3926
- LIMITS_ENABLED = 2,
3927
- // A limit has been breached.
3928
- LIMITS_TRIGGERED = 3,
3929
- // Taking action e.g. Return/RTL.
3930
- LIMITS_RECOVERING = 4,
3931
- // We're no longer in breach of a limit.
3932
- LIMITS_RECOVERED = 5,
3933
- }
3934
-
3935
- export enum LIMIT_MODULEEnum {
3936
- // Pre-initialization.
3937
- LIMIT_GPSLOCK = 1,
3938
- // Disabled.
3939
- LIMIT_GEOFENCE = 2,
3940
- // Checking limits.
3941
- LIMIT_ALTITUDE = 4,
3942
- }
3943
-
3944
- // Flags in RALLY_POINT message.
3945
- export enum RALLY_FLAGSEnum {
3946
- // Flag set when requiring favorable winds for landing.
3947
- FAVORABLE_WIND = 1,
3948
- // Flag set when plane is to immediately descend to break altitude and land without GCS intervention. Flag not set when plane is to loiter at Rally point until commanded to land.
3949
- LAND_IMMEDIATELY = 2,
3950
- // True if the following altitude frame value is valid.
3951
- ALT_FRAME_VALID = 4,
3952
- // 2 bit value representing altitude frame. 0: absolute, 1: relative home, 2: relative origin, 3: relative terrain
3953
- ALT_FRAME = 24,
3954
- }
3955
-
3956
- export enum CAMERA_STATUS_TYPESEnum {
3957
- // Camera heartbeat, announce camera component ID at 1Hz.
3958
- CAMERA_STATUS_TYPE_HEARTBEAT = 0,
3959
- // Camera image triggered.
3960
- CAMERA_STATUS_TYPE_TRIGGER = 1,
3961
- // Camera connection lost.
3962
- CAMERA_STATUS_TYPE_DISCONNECT = 2,
3963
- // Camera unknown error.
3964
- CAMERA_STATUS_TYPE_ERROR = 3,
3965
- // Camera battery low. Parameter p1 shows reported voltage.
3966
- CAMERA_STATUS_TYPE_LOWBATT = 4,
3967
- // Camera storage low. Parameter p1 shows reported shots remaining.
3968
- CAMERA_STATUS_TYPE_LOWSTORE = 5,
3969
- // Camera storage low. Parameter p1 shows reported video minutes remaining.
3970
- CAMERA_STATUS_TYPE_LOWSTOREV = 6,
3971
- }
3972
-
3973
- export enum CAMERA_FEEDBACK_FLAGSEnum {
3974
- // Shooting photos, not video.
3975
- CAMERA_FEEDBACK_PHOTO = 0,
3976
- // Shooting video, not stills.
3977
- CAMERA_FEEDBACK_VIDEO = 1,
3978
- // Unable to achieve requested exposure (e.g. shutter speed too low).
3979
- CAMERA_FEEDBACK_BADEXPOSURE = 2,
3980
- // Closed loop feedback from camera, we know for sure it has successfully taken a picture.
3981
- CAMERA_FEEDBACK_CLOSEDLOOP = 3,
3982
- // Open loop camera, an image trigger has been requested but we can't know for sure it has successfully taken a picture.
3983
- CAMERA_FEEDBACK_OPENLOOP = 4,
3984
- }
3985
-
3986
- export enum MAV_MODE_GIMBALEnum {
3987
- // Gimbal is powered on but has not started initializing yet.
3988
- MAV_MODE_GIMBAL_UNINITIALIZED = 0,
3989
- // Gimbal is currently running calibration on the pitch axis.
3990
- MAV_MODE_GIMBAL_CALIBRATING_PITCH = 1,
3991
- // Gimbal is currently running calibration on the roll axis.
3992
- MAV_MODE_GIMBAL_CALIBRATING_ROLL = 2,
3993
- // Gimbal is currently running calibration on the yaw axis.
3994
- MAV_MODE_GIMBAL_CALIBRATING_YAW = 3,
3995
- // Gimbal has finished calibrating and initializing, but is relaxed pending reception of first rate command from copter.
3996
- MAV_MODE_GIMBAL_INITIALIZED = 4,
3997
- // Gimbal is actively stabilizing.
3998
- MAV_MODE_GIMBAL_ACTIVE = 5,
3999
- // Gimbal is relaxed because it missed more than 10 expected rate command messages in a row. Gimbal will move back to active mode when it receives a new rate command.
4000
- MAV_MODE_GIMBAL_RATE_CMD_TIMEOUT = 6,
4001
- }
4002
-
4003
- export enum GIMBAL_AXISEnum {
4004
- // Gimbal yaw axis.
4005
- GIMBAL_AXIS_YAW = 0,
4006
- // Gimbal pitch axis.
4007
- GIMBAL_AXIS_PITCH = 1,
4008
- // Gimbal roll axis.
4009
- GIMBAL_AXIS_ROLL = 2,
4010
- }
4011
-
4012
- export enum GIMBAL_AXIS_CALIBRATION_STATUSEnum {
4013
- // Axis calibration is in progress.
4014
- GIMBAL_AXIS_CALIBRATION_STATUS_IN_PROGRESS = 0,
4015
- // Axis calibration succeeded.
4016
- GIMBAL_AXIS_CALIBRATION_STATUS_SUCCEEDED = 1,
4017
- // Axis calibration failed.
4018
- GIMBAL_AXIS_CALIBRATION_STATUS_FAILED = 2,
4019
- }
4020
-
4021
- export enum GIMBAL_AXIS_CALIBRATION_REQUIREDEnum {
4022
- // Whether or not this axis requires calibration is unknown at this time.
4023
- GIMBAL_AXIS_CALIBRATION_REQUIRED_UNKNOWN = 0,
4024
- // This axis requires calibration.
4025
- GIMBAL_AXIS_CALIBRATION_REQUIRED_TRUE = 1,
4026
- // This axis does not require calibration.
4027
- GIMBAL_AXIS_CALIBRATION_REQUIRED_FALSE = 2,
4028
- }
4029
-
4030
- export enum GOPRO_HEARTBEAT_STATUSEnum {
4031
- // No GoPro connected.
4032
- GOPRO_HEARTBEAT_STATUS_DISCONNECTED = 0,
4033
- // The detected GoPro is not HeroBus compatible.
4034
- GOPRO_HEARTBEAT_STATUS_INCOMPATIBLE = 1,
4035
- // A HeroBus compatible GoPro is connected.
4036
- GOPRO_HEARTBEAT_STATUS_CONNECTED = 2,
4037
- // An unrecoverable error was encountered with the connected GoPro, it may require a power cycle.
4038
- GOPRO_HEARTBEAT_STATUS_ERROR = 3,
4039
- }
4040
-
4041
- export enum GOPRO_HEARTBEAT_FLAGSEnum {
4042
- // GoPro is currently recording.
4043
- GOPRO_FLAG_RECORDING = 1,
4044
- }
4045
-
4046
- export enum GOPRO_REQUEST_STATUSEnum {
4047
- // The write message with ID indicated succeeded.
4048
- GOPRO_REQUEST_SUCCESS = 0,
4049
- // The write message with ID indicated failed.
4050
- GOPRO_REQUEST_FAILED = 1,
4051
- }
4052
-
4053
- export enum GOPRO_COMMANDEnum {
4054
- // (Get/Set).
4055
- GOPRO_COMMAND_POWER = 0,
4056
- // (Get/Set).
4057
- GOPRO_COMMAND_CAPTURE_MODE = 1,
4058
- // (___/Set).
4059
- GOPRO_COMMAND_SHUTTER = 2,
4060
- // (Get/___).
4061
- GOPRO_COMMAND_BATTERY = 3,
4062
- // (Get/___).
4063
- GOPRO_COMMAND_MODEL = 4,
4064
- // (Get/Set).
4065
- GOPRO_COMMAND_VIDEO_SETTINGS = 5,
4066
- // (Get/Set).
4067
- GOPRO_COMMAND_LOW_LIGHT = 6,
4068
- // (Get/Set).
4069
- GOPRO_COMMAND_PHOTO_RESOLUTION = 7,
4070
- // (Get/Set).
4071
- GOPRO_COMMAND_PHOTO_BURST_RATE = 8,
4072
- // (Get/Set).
4073
- GOPRO_COMMAND_PROTUNE = 9,
4074
- // (Get/Set) Hero 3+ Only.
4075
- GOPRO_COMMAND_PROTUNE_WHITE_BALANCE = 10,
4076
- // (Get/Set) Hero 3+ Only.
4077
- GOPRO_COMMAND_PROTUNE_COLOUR = 11,
4078
- // (Get/Set) Hero 3+ Only.
4079
- GOPRO_COMMAND_PROTUNE_GAIN = 12,
4080
- // (Get/Set) Hero 3+ Only.
4081
- GOPRO_COMMAND_PROTUNE_SHARPNESS = 13,
4082
- // (Get/Set) Hero 3+ Only.
4083
- GOPRO_COMMAND_PROTUNE_EXPOSURE = 14,
4084
- // (Get/Set).
4085
- GOPRO_COMMAND_TIME = 15,
4086
- // (Get/Set).
4087
- GOPRO_COMMAND_CHARGING = 16,
4088
- }
4089
-
4090
- export enum GOPRO_CAPTURE_MODEEnum {
4091
- // Video mode.
4092
- GOPRO_CAPTURE_MODE_VIDEO = 0,
4093
- // Photo mode.
4094
- GOPRO_CAPTURE_MODE_PHOTO = 1,
4095
- // Burst mode, Hero 3+ only.
4096
- GOPRO_CAPTURE_MODE_BURST = 2,
4097
- // Time lapse mode, Hero 3+ only.
4098
- GOPRO_CAPTURE_MODE_TIME_LAPSE = 3,
4099
- // Multi shot mode, Hero 4 only.
4100
- GOPRO_CAPTURE_MODE_MULTI_SHOT = 4,
4101
- // Playback mode, Hero 4 only, silver only except when LCD or HDMI is connected to black.
4102
- GOPRO_CAPTURE_MODE_PLAYBACK = 5,
4103
- // Playback mode, Hero 4 only.
4104
- GOPRO_CAPTURE_MODE_SETUP = 6,
4105
- // Mode not yet known.
4106
- GOPRO_CAPTURE_MODE_UNKNOWN = 255,
4107
- }
4108
-
4109
- export enum GOPRO_RESOLUTIONEnum {
4110
- // 848 x 480 (480p).
4111
- GOPRO_RESOLUTION_480p = 0,
4112
- // 1280 x 720 (720p).
4113
- GOPRO_RESOLUTION_720p = 1,
4114
- // 1280 x 960 (960p).
4115
- GOPRO_RESOLUTION_960p = 2,
4116
- // 1920 x 1080 (1080p).
4117
- GOPRO_RESOLUTION_1080p = 3,
4118
- // 1920 x 1440 (1440p).
4119
- GOPRO_RESOLUTION_1440p = 4,
4120
- // 2704 x 1440 (2.7k-17:9).
4121
- GOPRO_RESOLUTION_2_7k_17_9 = 5,
4122
- // 2704 x 1524 (2.7k-16:9).
4123
- GOPRO_RESOLUTION_2_7k_16_9 = 6,
4124
- // 2704 x 2028 (2.7k-4:3).
4125
- GOPRO_RESOLUTION_2_7k_4_3 = 7,
4126
- // 3840 x 2160 (4k-16:9).
4127
- GOPRO_RESOLUTION_4k_16_9 = 8,
4128
- // 4096 x 2160 (4k-17:9).
4129
- GOPRO_RESOLUTION_4k_17_9 = 9,
4130
- // 1280 x 720 (720p-SuperView).
4131
- GOPRO_RESOLUTION_720p_SUPERVIEW = 10,
4132
- // 1920 x 1080 (1080p-SuperView).
4133
- GOPRO_RESOLUTION_1080p_SUPERVIEW = 11,
4134
- // 2704 x 1520 (2.7k-SuperView).
4135
- GOPRO_RESOLUTION_2_7k_SUPERVIEW = 12,
4136
- // 3840 x 2160 (4k-SuperView).
4137
- GOPRO_RESOLUTION_4k_SUPERVIEW = 13,
4138
- }
4139
-
4140
- export enum GOPRO_FRAME_RATEEnum {
4141
- // 12 FPS.
4142
- GOPRO_FRAME_RATE_12 = 0,
4143
- // 15 FPS.
4144
- GOPRO_FRAME_RATE_15 = 1,
4145
- // 24 FPS.
4146
- GOPRO_FRAME_RATE_24 = 2,
4147
- // 25 FPS.
4148
- GOPRO_FRAME_RATE_25 = 3,
4149
- // 30 FPS.
4150
- GOPRO_FRAME_RATE_30 = 4,
4151
- // 48 FPS.
4152
- GOPRO_FRAME_RATE_48 = 5,
4153
- // 50 FPS.
4154
- GOPRO_FRAME_RATE_50 = 6,
4155
- // 60 FPS.
4156
- GOPRO_FRAME_RATE_60 = 7,
4157
- // 80 FPS.
4158
- GOPRO_FRAME_RATE_80 = 8,
4159
- // 90 FPS.
4160
- GOPRO_FRAME_RATE_90 = 9,
4161
- // 100 FPS.
4162
- GOPRO_FRAME_RATE_100 = 10,
4163
- // 120 FPS.
4164
- GOPRO_FRAME_RATE_120 = 11,
4165
- // 240 FPS.
4166
- GOPRO_FRAME_RATE_240 = 12,
4167
- // 12.5 FPS.
4168
- GOPRO_FRAME_RATE_12_5 = 13,
4169
- }
4170
-
4171
- export enum GOPRO_FIELD_OF_VIEWEnum {
4172
- // 0x00: Wide.
4173
- GOPRO_FIELD_OF_VIEW_WIDE = 0,
4174
- // 0x01: Medium.
4175
- GOPRO_FIELD_OF_VIEW_MEDIUM = 1,
4176
- // 0x02: Narrow.
4177
- GOPRO_FIELD_OF_VIEW_NARROW = 2,
4178
- }
4179
-
4180
- export enum GOPRO_VIDEO_SETTINGS_FLAGSEnum {
4181
- // 0=NTSC, 1=PAL.
4182
- GOPRO_VIDEO_SETTINGS_TV_MODE = 1,
4183
- }
4184
-
4185
- export enum GOPRO_PHOTO_RESOLUTIONEnum {
4186
- // 5MP Medium.
4187
- GOPRO_PHOTO_RESOLUTION_5MP_MEDIUM = 0,
4188
- // 7MP Medium.
4189
- GOPRO_PHOTO_RESOLUTION_7MP_MEDIUM = 1,
4190
- // 7MP Wide.
4191
- GOPRO_PHOTO_RESOLUTION_7MP_WIDE = 2,
4192
- // 10MP Wide.
4193
- GOPRO_PHOTO_RESOLUTION_10MP_WIDE = 3,
4194
- // 12MP Wide.
4195
- GOPRO_PHOTO_RESOLUTION_12MP_WIDE = 4,
4196
- }
4197
-
4198
- export enum GOPRO_PROTUNE_WHITE_BALANCEEnum {
4199
- // Auto.
4200
- GOPRO_PROTUNE_WHITE_BALANCE_AUTO = 0,
4201
- // 3000K.
4202
- GOPRO_PROTUNE_WHITE_BALANCE_3000K = 1,
4203
- // 5500K.
4204
- GOPRO_PROTUNE_WHITE_BALANCE_5500K = 2,
4205
- // 6500K.
4206
- GOPRO_PROTUNE_WHITE_BALANCE_6500K = 3,
4207
- // Camera Raw.
4208
- GOPRO_PROTUNE_WHITE_BALANCE_RAW = 4,
4209
- }
4210
-
4211
- export enum GOPRO_PROTUNE_COLOUREnum {
4212
- // Auto.
4213
- GOPRO_PROTUNE_COLOUR_STANDARD = 0,
4214
- // Neutral.
4215
- GOPRO_PROTUNE_COLOUR_NEUTRAL = 1,
4216
- }
4217
-
4218
- export enum GOPRO_PROTUNE_GAINEnum {
4219
- // ISO 400.
4220
- GOPRO_PROTUNE_GAIN_400 = 0,
4221
- // ISO 800 (Only Hero 4).
4222
- GOPRO_PROTUNE_GAIN_800 = 1,
4223
- // ISO 1600.
4224
- GOPRO_PROTUNE_GAIN_1600 = 2,
4225
- // ISO 3200 (Only Hero 4).
4226
- GOPRO_PROTUNE_GAIN_3200 = 3,
4227
- // ISO 6400.
4228
- GOPRO_PROTUNE_GAIN_6400 = 4,
4229
- }
4230
-
4231
- export enum GOPRO_PROTUNE_SHARPNESSEnum {
4232
- // Low Sharpness.
4233
- GOPRO_PROTUNE_SHARPNESS_LOW = 0,
4234
- // Medium Sharpness.
4235
- GOPRO_PROTUNE_SHARPNESS_MEDIUM = 1,
4236
- // High Sharpness.
4237
- GOPRO_PROTUNE_SHARPNESS_HIGH = 2,
4238
- }
4239
-
4240
- export enum GOPRO_PROTUNE_EXPOSUREEnum {
4241
- // -5.0 EV (Hero 3+ Only).
4242
- GOPRO_PROTUNE_EXPOSURE_NEG_5_0 = 0,
4243
- // -4.5 EV (Hero 3+ Only).
4244
- GOPRO_PROTUNE_EXPOSURE_NEG_4_5 = 1,
4245
- // -4.0 EV (Hero 3+ Only).
4246
- GOPRO_PROTUNE_EXPOSURE_NEG_4_0 = 2,
4247
- // -3.5 EV (Hero 3+ Only).
4248
- GOPRO_PROTUNE_EXPOSURE_NEG_3_5 = 3,
4249
- // -3.0 EV (Hero 3+ Only).
4250
- GOPRO_PROTUNE_EXPOSURE_NEG_3_0 = 4,
4251
- // -2.5 EV (Hero 3+ Only).
4252
- GOPRO_PROTUNE_EXPOSURE_NEG_2_5 = 5,
4253
- // -2.0 EV.
4254
- GOPRO_PROTUNE_EXPOSURE_NEG_2_0 = 6,
4255
- // -1.5 EV.
4256
- GOPRO_PROTUNE_EXPOSURE_NEG_1_5 = 7,
4257
- // -1.0 EV.
4258
- GOPRO_PROTUNE_EXPOSURE_NEG_1_0 = 8,
4259
- // -0.5 EV.
4260
- GOPRO_PROTUNE_EXPOSURE_NEG_0_5 = 9,
4261
- // 0.0 EV.
4262
- GOPRO_PROTUNE_EXPOSURE_ZERO = 10,
4263
- // +0.5 EV.
4264
- GOPRO_PROTUNE_EXPOSURE_POS_0_5 = 11,
4265
- // +1.0 EV.
4266
- GOPRO_PROTUNE_EXPOSURE_POS_1_0 = 12,
4267
- // +1.5 EV.
4268
- GOPRO_PROTUNE_EXPOSURE_POS_1_5 = 13,
4269
- // +2.0 EV.
4270
- GOPRO_PROTUNE_EXPOSURE_POS_2_0 = 14,
4271
- // +2.5 EV (Hero 3+ Only).
4272
- GOPRO_PROTUNE_EXPOSURE_POS_2_5 = 15,
4273
- // +3.0 EV (Hero 3+ Only).
4274
- GOPRO_PROTUNE_EXPOSURE_POS_3_0 = 16,
4275
- // +3.5 EV (Hero 3+ Only).
4276
- GOPRO_PROTUNE_EXPOSURE_POS_3_5 = 17,
4277
- // +4.0 EV (Hero 3+ Only).
4278
- GOPRO_PROTUNE_EXPOSURE_POS_4_0 = 18,
4279
- // +4.5 EV (Hero 3+ Only).
4280
- GOPRO_PROTUNE_EXPOSURE_POS_4_5 = 19,
4281
- // +5.0 EV (Hero 3+ Only).
4282
- GOPRO_PROTUNE_EXPOSURE_POS_5_0 = 20,
4283
- }
4284
-
4285
- export enum GOPRO_CHARGINGEnum {
4286
- // Charging disabled.
4287
- GOPRO_CHARGING_DISABLED = 0,
4288
- // Charging enabled.
4289
- GOPRO_CHARGING_ENABLED = 1,
4290
- }
4291
-
4292
- export enum GOPRO_MODELEnum {
4293
- // Unknown gopro model.
4294
- GOPRO_MODEL_UNKNOWN = 0,
4295
- // Hero 3+ Silver (HeroBus not supported by GoPro).
4296
- GOPRO_MODEL_HERO_3_PLUS_SILVER = 1,
4297
- // Hero 3+ Black.
4298
- GOPRO_MODEL_HERO_3_PLUS_BLACK = 2,
4299
- // Hero 4 Silver.
4300
- GOPRO_MODEL_HERO_4_SILVER = 3,
4301
- // Hero 4 Black.
4302
- GOPRO_MODEL_HERO_4_BLACK = 4,
4303
- }
4304
-
4305
- export enum GOPRO_BURST_RATEEnum {
4306
- // 3 Shots / 1 Second.
4307
- GOPRO_BURST_RATE_3_IN_1_SECOND = 0,
4308
- // 5 Shots / 1 Second.
4309
- GOPRO_BURST_RATE_5_IN_1_SECOND = 1,
4310
- // 10 Shots / 1 Second.
4311
- GOPRO_BURST_RATE_10_IN_1_SECOND = 2,
4312
- // 10 Shots / 2 Second.
4313
- GOPRO_BURST_RATE_10_IN_2_SECOND = 3,
4314
- // 10 Shots / 3 Second (Hero 4 Only).
4315
- GOPRO_BURST_RATE_10_IN_3_SECOND = 4,
4316
- // 30 Shots / 1 Second.
4317
- GOPRO_BURST_RATE_30_IN_1_SECOND = 5,
4318
- // 30 Shots / 2 Second.
4319
- GOPRO_BURST_RATE_30_IN_2_SECOND = 6,
4320
- // 30 Shots / 3 Second.
4321
- GOPRO_BURST_RATE_30_IN_3_SECOND = 7,
4322
- // 30 Shots / 6 Second.
4323
- GOPRO_BURST_RATE_30_IN_6_SECOND = 8,
4324
- }
4325
-
4326
- export enum MAV_CMD_DO_AUX_FUNCTION_SWITCH_LEVELEnum {
4327
- // Switch Low.
4328
- MAV_CMD_DO_AUX_FUNCTION_SWITCH_LEVEL_LOW = 0,
4329
- // Switch Middle.
4330
- MAV_CMD_DO_AUX_FUNCTION_SWITCH_LEVEL_MIDDLE = 1,
4331
- // Switch High.
4332
- MAV_CMD_DO_AUX_FUNCTION_SWITCH_LEVEL_HIGH = 2,
4333
- }
4334
-
4335
- export enum LED_CONTROL_PATTERNEnum {
4336
- // LED patterns off (return control to regular vehicle control).
4337
- LED_CONTROL_PATTERN_OFF = 0,
4338
- // LEDs show pattern during firmware update.
4339
- LED_CONTROL_PATTERN_FIRMWAREUPDATE = 1,
4340
- // Custom Pattern using custom bytes fields.
4341
- LED_CONTROL_PATTERN_CUSTOM = 255,
4342
- }
4343
-
4344
- // Flags in EKF_STATUS message.
4345
- export enum EKF_STATUS_FLAGSEnum {
4346
- // Set if EKF's attitude estimate is good.
4347
- EKF_ATTITUDE = 1,
4348
- // Set if EKF's horizontal velocity estimate is good.
4349
- EKF_VELOCITY_HORIZ = 2,
4350
- // Set if EKF's vertical velocity estimate is good.
4351
- EKF_VELOCITY_VERT = 4,
4352
- // Set if EKF's horizontal position (relative) estimate is good.
4353
- EKF_POS_HORIZ_REL = 8,
4354
- // Set if EKF's horizontal position (absolute) estimate is good.
4355
- EKF_POS_HORIZ_ABS = 16,
4356
- // Set if EKF's vertical position (absolute) estimate is good.
4357
- EKF_POS_VERT_ABS = 32,
4358
- // Set if EKF's vertical position (above ground) estimate is good.
4359
- EKF_POS_VERT_AGL = 64,
4360
- // EKF is in constant position mode and does not know it's absolute or relative position.
4361
- EKF_CONST_POS_MODE = 128,
4362
- // Set if EKF's predicted horizontal position (relative) estimate is good.
4363
- EKF_PRED_POS_HORIZ_REL = 256,
4364
- // Set if EKF's predicted horizontal position (absolute) estimate is good.
4365
- EKF_PRED_POS_HORIZ_ABS = 512,
4366
- // Set if EKF believes the GPS input data is faulty.
4367
- EKF_GPS_GLITCHING = 32768,
4368
- // Set if EKF has never been healthy.
4369
- EKF_UNINITIALIZED = 1024,
4370
- }
4371
-
4372
- export enum PID_TUNING_AXISEnum {
4373
- PID_TUNING_ROLL = 1,
4374
- PID_TUNING_PITCH = 2,
4375
- PID_TUNING_YAW = 3,
4376
- PID_TUNING_ACCZ = 4,
4377
- PID_TUNING_STEER = 5,
4378
- PID_TUNING_LANDING = 6,
4379
- }
4380
-
4381
- // Special ACK block numbers control activation of dataflash log streaming.
4382
- export enum MAV_REMOTE_LOG_DATA_BLOCK_COMMANDSEnum {
4383
- // UAV to stop sending DataFlash blocks.
4384
- MAV_REMOTE_LOG_DATA_BLOCK_STOP = 2147483645,
4385
- // UAV to start sending DataFlash blocks.
4386
- MAV_REMOTE_LOG_DATA_BLOCK_START = 2147483646,
4387
- }
4388
-
4389
- // Possible remote log data block statuses.
4390
- export enum MAV_REMOTE_LOG_DATA_BLOCK_STATUSESEnum {
4391
- // This block has NOT been received.
4392
- MAV_REMOTE_LOG_DATA_BLOCK_NACK = 0,
4393
- // This block has been received.
4394
- MAV_REMOTE_LOG_DATA_BLOCK_ACK = 1,
4395
- }
4396
-
4397
- // Bus types for device operations.
4398
- export enum DEVICE_OP_BUSTYPEEnum {
4399
- // I2C Device operation.
4400
- DEVICE_OP_BUSTYPE_I2C = 0,
4401
- // SPI Device operation.
4402
- DEVICE_OP_BUSTYPE_SPI = 1,
4403
- }
4404
-
4405
- // Deepstall flight stage.
4406
- export enum DEEPSTALL_STAGEEnum {
4407
- // Flying to the landing point.
4408
- DEEPSTALL_STAGE_FLY_TO_LANDING = 0,
4409
- // Building an estimate of the wind.
4410
- DEEPSTALL_STAGE_ESTIMATE_WIND = 1,
4411
- // Waiting to breakout of the loiter to fly the approach.
4412
- DEEPSTALL_STAGE_WAIT_FOR_BREAKOUT = 2,
4413
- // Flying to the first arc point to turn around to the landing point.
4414
- DEEPSTALL_STAGE_FLY_TO_ARC = 3,
4415
- // Turning around back to the deepstall landing point.
4416
- DEEPSTALL_STAGE_ARC = 4,
4417
- // Approaching the landing point.
4418
- DEEPSTALL_STAGE_APPROACH = 5,
4419
- // Stalling and steering towards the land point.
4420
- DEEPSTALL_STAGE_LAND = 6,
4421
- }
4422
-
4423
- // A mapping of plane flight modes for custom_mode field of heartbeat.
4424
- export enum PLANE_MODEEnum {
4425
- // MANUAL
4426
- PLANE_MODE_MANUAL = 0,
4427
- // CIRCLE
4428
- PLANE_MODE_CIRCLE = 1,
4429
- // STABILIZE
4430
- PLANE_MODE_STABILIZE = 2,
4431
- // TRAINING
4432
- PLANE_MODE_TRAINING = 3,
4433
- // ACRO
4434
- PLANE_MODE_ACRO = 4,
4435
- // FBWA
4436
- PLANE_MODE_FLY_BY_WIRE_A = 5,
4437
- // FBWB
4438
- PLANE_MODE_FLY_BY_WIRE_B = 6,
4439
- // CRUISE
4440
- PLANE_MODE_CRUISE = 7,
4441
- // AUTOTUNE
4442
- PLANE_MODE_AUTOTUNE = 8,
4443
- // AUTO
4444
- PLANE_MODE_AUTO = 10,
4445
- // RTL
4446
- PLANE_MODE_RTL = 11,
4447
- // LOITER
4448
- PLANE_MODE_LOITER = 12,
4449
- // TAKEOFF
4450
- PLANE_MODE_TAKEOFF = 13,
4451
- // AVOID ADSB
4452
- PLANE_MODE_AVOID_ADSB = 14,
4453
- // GUIDED
4454
- PLANE_MODE_GUIDED = 15,
4455
- // INITIALISING
4456
- PLANE_MODE_INITIALIZING = 16,
4457
- // QSTABILIZE
4458
- PLANE_MODE_QSTABILIZE = 17,
4459
- // QHOVER
4460
- PLANE_MODE_QHOVER = 18,
4461
- // QLOITER
4462
- PLANE_MODE_QLOITER = 19,
4463
- // QLAND
4464
- PLANE_MODE_QLAND = 20,
4465
- // QRTL
4466
- PLANE_MODE_QRTL = 21,
4467
- // QAUTOTUNE
4468
- PLANE_MODE_QAUTOTUNE = 22,
4469
- // QACRO
4470
- PLANE_MODE_QACRO = 23,
4471
- // THERMAL
4472
- PLANE_MODE_THERMAL = 24,
4473
- // LOITER2QLAND
4474
- PLANE_MODE_LOITER_ALT_QLAND = 25,
4475
- // AUTOLAND
4476
- PLANE_MODE_AUTOLAND = 26,
4477
- }
4478
-
4479
- // A mapping of copter flight modes for custom_mode field of heartbeat.
4480
- export enum COPTER_MODEEnum {
4481
- // STABILIZE
4482
- COPTER_MODE_STABILIZE = 0,
4483
- // ACRO
4484
- COPTER_MODE_ACRO = 1,
4485
- // ALT HOLD
4486
- COPTER_MODE_ALT_HOLD = 2,
4487
- // AUTO
4488
- COPTER_MODE_AUTO = 3,
4489
- // GUIDED
4490
- COPTER_MODE_GUIDED = 4,
4491
- // LOITER
4492
- COPTER_MODE_LOITER = 5,
4493
- // RTL
4494
- COPTER_MODE_RTL = 6,
4495
- // CIRCLE
4496
- COPTER_MODE_CIRCLE = 7,
4497
- // LAND
4498
- COPTER_MODE_LAND = 9,
4499
- // DRIFT
4500
- COPTER_MODE_DRIFT = 11,
4501
- // SPORT
4502
- COPTER_MODE_SPORT = 13,
4503
- // FLIP
4504
- COPTER_MODE_FLIP = 14,
4505
- // AUTOTUNE
4506
- COPTER_MODE_AUTOTUNE = 15,
4507
- // POSHOLD
4508
- COPTER_MODE_POSHOLD = 16,
4509
- // BRAKE
4510
- COPTER_MODE_BRAKE = 17,
4511
- // THROW
4512
- COPTER_MODE_THROW = 18,
4513
- // AVOID ADSB
4514
- COPTER_MODE_AVOID_ADSB = 19,
4515
- // GUIDED NOGPS
4516
- COPTER_MODE_GUIDED_NOGPS = 20,
4517
- // SMARTRTL
4518
- COPTER_MODE_SMART_RTL = 21,
4519
- // FLOWHOLD
4520
- COPTER_MODE_FLOWHOLD = 22,
4521
- // FOLLOW
4522
- COPTER_MODE_FOLLOW = 23,
4523
- // ZIGZAG
4524
- COPTER_MODE_ZIGZAG = 24,
4525
- // SYSTEMID
4526
- COPTER_MODE_SYSTEMID = 25,
4527
- // AUTOROTATE
4528
- COPTER_MODE_AUTOROTATE = 26,
4529
- // AUTO RTL
4530
- COPTER_MODE_AUTO_RTL = 27,
4531
- // TURTLE
4532
- COPTER_MODE_TURTLE = 28,
4533
- }
4534
-
4535
- // A mapping of sub flight modes for custom_mode field of heartbeat.
4536
- export enum SUB_MODEEnum {
4537
- // STABILIZE
4538
- SUB_MODE_STABILIZE = 0,
4539
- // ACRO
4540
- SUB_MODE_ACRO = 1,
4541
- // ALT HOLD
4542
- SUB_MODE_ALT_HOLD = 2,
4543
- // AUTO
4544
- SUB_MODE_AUTO = 3,
4545
- // GUIDED
4546
- SUB_MODE_GUIDED = 4,
4547
- // CIRCLE
4548
- SUB_MODE_CIRCLE = 7,
4549
- // SURFACE
4550
- SUB_MODE_SURFACE = 9,
4551
- // POSHOLD
4552
- SUB_MODE_POSHOLD = 16,
4553
- // MANUAL
4554
- SUB_MODE_MANUAL = 19,
4555
- // MOTORDETECT
4556
- SUB_MODE_MOTORDETECT = 20,
4557
- // SURFTRAK
4558
- SUB_MODE_SURFTRAK = 21,
4559
- }
4560
-
4561
- // A mapping of rover flight modes for custom_mode field of heartbeat.
4562
- export enum ROVER_MODEEnum {
4563
- // MANUAL
4564
- ROVER_MODE_MANUAL = 0,
4565
- // ACRO
4566
- ROVER_MODE_ACRO = 1,
4567
- // STEERING
4568
- ROVER_MODE_STEERING = 3,
4569
- // HOLD
4570
- ROVER_MODE_HOLD = 4,
4571
- // LOITER
4572
- ROVER_MODE_LOITER = 5,
4573
- // FOLLOW
4574
- ROVER_MODE_FOLLOW = 6,
4575
- // SIMPLE
4576
- ROVER_MODE_SIMPLE = 7,
4577
- // DOCK
4578
- ROVER_MODE_DOCK = 8,
4579
- // CIRCLE
4580
- ROVER_MODE_CIRCLE = 9,
4581
- // AUTO
4582
- ROVER_MODE_AUTO = 10,
4583
- // RTL
4584
- ROVER_MODE_RTL = 11,
4585
- // SMART RTL
4586
- ROVER_MODE_SMART_RTL = 12,
4587
- // GUIDED
4588
- ROVER_MODE_GUIDED = 15,
4589
- // INITIALISING
4590
- ROVER_MODE_INITIALIZING = 16,
4591
- }
4592
-
4593
- // A mapping of antenna tracker flight modes for custom_mode field of heartbeat.
4594
- export enum TRACKER_MODEEnum {
4595
- // MANUAL
4596
- TRACKER_MODE_MANUAL = 0,
4597
- // STOP
4598
- TRACKER_MODE_STOP = 1,
4599
- // SCAN
4600
- TRACKER_MODE_SCAN = 2,
4601
- // SERVO TEST
4602
- TRACKER_MODE_SERVO_TEST = 3,
4603
- // GUIDED
4604
- TRACKER_MODE_GUIDED = 4,
4605
- // AUTO
4606
- TRACKER_MODE_AUTO = 10,
4607
- // INITIALISING
4608
- TRACKER_MODE_INITIALIZING = 16,
4609
- }
4610
-
4611
- // The type of parameter for the OSD parameter editor.
4612
- export enum OSD_PARAM_CONFIG_TYPEEnum {
4613
- OSD_PARAM_NONE = 0,
4614
- OSD_PARAM_SERIAL_PROTOCOL = 1,
4615
- OSD_PARAM_SERVO_FUNCTION = 2,
4616
- OSD_PARAM_AUX_FUNCTION = 3,
4617
- OSD_PARAM_FLIGHT_MODE = 4,
4618
- OSD_PARAM_FAILSAFE_ACTION = 5,
4619
- OSD_PARAM_FAILSAFE_ACTION_1 = 6,
4620
- OSD_PARAM_FAILSAFE_ACTION_2 = 7,
4621
- OSD_PARAM_NUM_TYPES = 8,
4622
- }
4623
-
4624
- // The error type for the OSD parameter editor.
4625
- export enum OSD_PARAM_CONFIG_ERROREnum {
4626
- OSD_PARAM_SUCCESS = 0,
4627
- OSD_PARAM_INVALID_SCREEN = 1,
4628
- OSD_PARAM_INVALID_PARAMETER_INDEX = 2,
4629
- OSD_PARAM_INVALID_PARAMETER = 3,
4630
- }
4631
-