-
Notifications
You must be signed in to change notification settings - Fork 11
/
mavheader.js
601 lines (601 loc) · 23 KB
/
mavheader.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
// Auto generated by trans.py
// Used to declear mavlink headers
///Users/kvenux/Workplace/apm/ardupilot/libraries/GCS_MAVLink/include/mavlink/v1.0/common/common.h
exports.MAV_AUTOPILOT_GENERIC = 0
exports.MAV_AUTOPILOT_RESERVED = 1
exports.MAV_AUTOPILOT_SLUGS = 2
exports.MAV_AUTOPILOT_ARDUPILOTMEGA = 3
exports.MAV_AUTOPILOT_OPENPILOT = 4
exports.MAV_AUTOPILOT_GENERIC_WAYPOINTS_ONLY = 5
exports.MAV_AUTOPILOT_GENERIC_WAYPOINTS_AND_SIMPLE_NAVIGATION_ONLY = 6
exports.MAV_AUTOPILOT_GENERIC_MISSION_FULL = 7
exports.MAV_AUTOPILOT_INVALID = 8
exports.MAV_AUTOPILOT_PPZ = 9
exports.MAV_AUTOPILOT_UDB = 10
exports.MAV_AUTOPILOT_FP = 11
exports.MAV_AUTOPILOT_PX4 = 12
exports.MAV_AUTOPILOT_SMACCMPILOT = 13
exports.MAV_AUTOPILOT_AUTOQUAD = 14
exports.MAV_AUTOPILOT_ARMAZILA = 15
exports.MAV_AUTOPILOT_AEROB = 16
exports.MAV_AUTOPILOT_ASLUAV = 17
exports.MAV_AUTOPILOT_ENUM_END = 18
exports.MAV_TYPE_GENERIC = 0
exports.MAV_TYPE_FIXED_WING = 1
exports.MAV_TYPE_QUADROTOR = 2
exports.MAV_TYPE_COAXIAL = 3
exports.MAV_TYPE_HELICOPTER = 4
exports.MAV_TYPE_ANTENNA_TRACKER = 5
exports.MAV_TYPE_GCS = 6
exports.MAV_TYPE_AIRSHIP = 7
exports.MAV_TYPE_FREE_BALLOON = 8
exports.MAV_TYPE_ROCKET = 9
exports.MAV_TYPE_GROUND_ROVER = 10
exports.MAV_TYPE_SURFACE_BOAT = 11
exports.MAV_TYPE_SUBMARINE = 12
exports.MAV_TYPE_HEXAROTOR = 13
exports.MAV_TYPE_OCTOROTOR = 14
exports.MAV_TYPE_TRICOPTER = 15
exports.MAV_TYPE_FLAPPING_WING = 16
exports.MAV_TYPE_KITE = 17
exports.MAV_TYPE_ONBOARD_CONTROLLER = 18
exports.MAV_TYPE_VTOL_DUOROTOR = 19
exports.MAV_TYPE_VTOL_QUADROTOR = 20
exports.MAV_TYPE_VTOL_TILTROTOR = 21
exports.MAV_TYPE_VTOL_RESERVED2 = 22
exports.MAV_TYPE_VTOL_RESERVED3 = 23
exports.MAV_TYPE_VTOL_RESERVED4 = 24
exports.MAV_TYPE_VTOL_RESERVED5 = 25
exports.MAV_TYPE_GIMBAL = 26
exports.MAV_TYPE_ENUM_END = 27
exports.FIRMWARE_VERSION_TYPE_DEV = 0
exports.FIRMWARE_VERSION_TYPE_ALPHA = 64
exports.FIRMWARE_VERSION_TYPE_BETA = 128
exports.FIRMWARE_VERSION_TYPE_RC = 192
exports.FIRMWARE_VERSION_TYPE_OFFICIAL = 255
exports.FIRMWARE_VERSION_TYPE_ENUM_END = 256
exports.MAV_MODE_FLAG_CUSTOM_MODE_ENABLED = 1
exports.MAV_MODE_FLAG_TEST_ENABLED = 2
exports.MAV_MODE_FLAG_AUTO_ENABLED = 4
exports.MAV_MODE_FLAG_GUIDED_ENABLED = 8
exports.MAV_MODE_FLAG_STABILIZE_ENABLED = 16
exports.MAV_MODE_FLAG_HIL_ENABLED = 32
exports.MAV_MODE_FLAG_MANUAL_INPUT_ENABLED = 64
exports.MAV_MODE_FLAG_SAFETY_ARMED = 128
exports.MAV_MODE_FLAG_ENUM_END = 129
exports.MAV_MODE_FLAG_DECODE_POSITION_CUSTOM_MODE = 1
exports.MAV_MODE_FLAG_DECODE_POSITION_TEST = 2
exports.MAV_MODE_FLAG_DECODE_POSITION_AUTO = 4
exports.MAV_MODE_FLAG_DECODE_POSITION_GUIDED = 8
exports.MAV_MODE_FLAG_DECODE_POSITION_STABILIZE = 16
exports.MAV_MODE_FLAG_DECODE_POSITION_HIL = 32
exports.MAV_MODE_FLAG_DECODE_POSITION_MANUAL = 64
exports.MAV_MODE_FLAG_DECODE_POSITION_SAFETY = 128
exports.MAV_MODE_FLAG_DECODE_POSITION_ENUM_END = 129
exports.MAV_GOTO_DO_HOLD = 0
exports.MAV_GOTO_DO_CONTINUE = 1
exports.MAV_GOTO_HOLD_AT_CURRENT_POSITION = 2
exports.MAV_GOTO_HOLD_AT_SPECIFIED_POSITION = 3
exports.MAV_GOTO_ENUM_END = 4
exports.MAV_MODE_PREFLIGHT = 0
exports.MAV_MODE_MANUAL_DISARMED = 64
exports.MAV_MODE_TEST_DISARMED = 66
exports.MAV_MODE_STABILIZE_DISARMED = 80
exports.MAV_MODE_GUIDED_DISARMED = 88
exports.MAV_MODE_AUTO_DISARMED = 92
exports.MAV_MODE_MANUAL_ARMED = 192
exports.MAV_MODE_TEST_ARMED = 194
exports.MAV_MODE_STABILIZE_ARMED = 208
exports.MAV_MODE_GUIDED_ARMED = 216
exports.MAV_MODE_AUTO_ARMED = 220
exports.MAV_MODE_ENUM_END = 221
exports.MAV_STATE_UNINIT = 0
exports.MAV_STATE_BOOT = 1
exports.MAV_STATE_CALIBRATING = 2
exports.MAV_STATE_STANDBY = 3
exports.MAV_STATE_ACTIVE = 4
exports.MAV_STATE_CRITICAL = 5
exports.MAV_STATE_EMERGENCY = 6
exports.MAV_STATE_POWEROFF = 7
exports.MAV_STATE_ENUM_END = 8
exports.MAV_COMP_ID_ALL = 0
exports.MAV_COMP_ID_CAMERA = 100
exports.MAV_COMP_ID_SERVO1 = 140
exports.MAV_COMP_ID_SERVO2 = 141
exports.MAV_COMP_ID_SERVO3 = 142
exports.MAV_COMP_ID_SERVO4 = 143
exports.MAV_COMP_ID_SERVO5 = 144
exports.MAV_COMP_ID_SERVO6 = 145
exports.MAV_COMP_ID_SERVO7 = 146
exports.MAV_COMP_ID_SERVO8 = 147
exports.MAV_COMP_ID_SERVO9 = 148
exports.MAV_COMP_ID_SERVO10 = 149
exports.MAV_COMP_ID_SERVO11 = 150
exports.MAV_COMP_ID_SERVO12 = 151
exports.MAV_COMP_ID_SERVO13 = 152
exports.MAV_COMP_ID_SERVO14 = 153
exports.MAV_COMP_ID_GIMBAL = 154
exports.MAV_COMP_ID_MAPPER = 180
exports.MAV_COMP_ID_MISSIONPLANNER = 190
exports.MAV_COMP_ID_PATHPLANNER = 195
exports.MAV_COMP_ID_IMU = 200
exports.MAV_COMP_ID_IMU_2 = 201
exports.MAV_COMP_ID_IMU_3 = 202
exports.MAV_COMP_ID_GPS = 220
exports.MAV_COMP_ID_UDP_BRIDGE = 240
exports.MAV_COMP_ID_UART_BRIDGE = 241
exports.MAV_COMP_ID_SYSTEM_CONTROL = 250
exports.MAV_COMPONENT_ENUM_END = 251
exports.MAV_SYS_STATUS_SENSOR_3D_GYRO = 1
exports.MAV_SYS_STATUS_SENSOR_3D_ACCEL = 2
exports.MAV_SYS_STATUS_SENSOR_3D_MAG = 4
exports.MAV_SYS_STATUS_SENSOR_ABSOLUTE_PRESSURE = 8
exports.MAV_SYS_STATUS_SENSOR_DIFFERENTIAL_PRESSURE = 16
exports.MAV_SYS_STATUS_SENSOR_GPS = 32
exports.MAV_SYS_STATUS_SENSOR_OPTICAL_FLOW = 64
exports.MAV_SYS_STATUS_SENSOR_VISION_POSITION = 128
exports.MAV_SYS_STATUS_SENSOR_LASER_POSITION = 256
exports.MAV_SYS_STATUS_SENSOR_EXTERNAL_GROUND_TRUTH = 512
exports.MAV_SYS_STATUS_SENSOR_ANGULAR_RATE_CONTROL = 1024
exports.MAV_SYS_STATUS_SENSOR_ATTITUDE_STABILIZATION = 2048
exports.MAV_SYS_STATUS_SENSOR_YAW_POSITION = 4096
exports.MAV_SYS_STATUS_SENSOR_Z_ALTITUDE_CONTROL = 8192
exports.MAV_SYS_STATUS_SENSOR_XY_POSITION_CONTROL = 16384
exports.MAV_SYS_STATUS_SENSOR_MOTOR_OUTPUTS = 32768
exports.MAV_SYS_STATUS_SENSOR_RC_RECEIVER = 65536
exports.MAV_SYS_STATUS_SENSOR_3D_GYRO2 = 131072
exports.MAV_SYS_STATUS_SENSOR_3D_ACCEL2 = 262144
exports.MAV_SYS_STATUS_SENSOR_3D_MAG2 = 524288
exports.MAV_SYS_STATUS_GEOFENCE = 1048576
exports.MAV_SYS_STATUS_AHRS = 2097152
exports.MAV_SYS_STATUS_TERRAIN = 4194304
exports.MAV_SYS_STATUS_SENSOR_ENUM_END = 4194305
exports.MAV_FRAME_GLOBAL = 0
exports.MAV_FRAME_LOCAL_NED = 1
exports.MAV_FRAME_MISSION = 2
exports.MAV_FRAME_GLOBAL_RELATIVE_ALT = 3
exports.MAV_FRAME_LOCAL_ENU = 4
exports.MAV_FRAME_GLOBAL_INT = 5
exports.MAV_FRAME_GLOBAL_RELATIVE_ALT_INT = 6
exports.MAV_FRAME_LOCAL_OFFSET_NED = 7
exports.MAV_FRAME_BODY_NED = 8
exports.MAV_FRAME_BODY_OFFSET_NED = 9
exports.MAV_FRAME_GLOBAL_TERRAIN_ALT = 10
exports.MAV_FRAME_GLOBAL_TERRAIN_ALT_INT = 11
exports.MAV_FRAME_ENUM_END = 12
exports.MAVLINK_DATA_STREAM_IMG_JPEG = 1
exports.MAVLINK_DATA_STREAM_IMG_BMP = 2
exports.MAVLINK_DATA_STREAM_IMG_RAW8U = 3
exports.MAVLINK_DATA_STREAM_IMG_RAW32U = 4
exports.MAVLINK_DATA_STREAM_IMG_PGM = 5
exports.MAVLINK_DATA_STREAM_IMG_PNG = 6
exports.MAVLINK_DATA_STREAM_TYPE_ENUM_END = 7
exports.FENCE_ACTION_NONE = 0
exports.FENCE_ACTION_GUIDED = 1
exports.FENCE_ACTION_REPORT = 2
exports.FENCE_ACTION_GUIDED_THR_PASS = 3
exports.FENCE_ACTION_ENUM_END = 4
exports.FENCE_BREACH_NONE = 0
exports.FENCE_BREACH_MINALT = 1
exports.FENCE_BREACH_MAXALT = 2
exports.FENCE_BREACH_BOUNDARY = 3
exports.FENCE_BREACH_ENUM_END = 4
exports.MAV_MOUNT_MODE_RETRACT = 0
exports.MAV_MOUNT_MODE_NEUTRAL = 1
exports.MAV_MOUNT_MODE_MAVLINK_TARGETING = 2
exports.MAV_MOUNT_MODE_RC_TARGETING = 3
exports.MAV_MOUNT_MODE_GPS_POINT = 4
exports.MAV_MOUNT_MODE_ENUM_END = 5
exports.MAV_CMD_NAV_WAYPOINT = 16
exports.MAV_CMD_NAV_LOITER_UNLIM = 17
exports.MAV_CMD_NAV_LOITER_TURNS = 18
exports.MAV_CMD_NAV_LOITER_TIME = 19
exports.MAV_CMD_NAV_RETURN_TO_LAUNCH = 20
exports.MAV_CMD_NAV_LAND = 21
exports.MAV_CMD_NAV_TAKEOFF = 22
exports.MAV_CMD_NAV_LAND_LOCAL = 23
exports.MAV_CMD_NAV_TAKEOFF_LOCAL = 24
exports.MAV_CMD_NAV_FOLLOW = 25
exports.MAV_CMD_NAV_CONTINUE_AND_CHANGE_ALT = 30
exports.MAV_CMD_NAV_LOITER_TO_ALT = 31
exports.MAV_CMD_NAV_ROI = 80
exports.MAV_CMD_NAV_PATHPLANNING = 81
exports.MAV_CMD_NAV_SPLINE_WAYPOINT = 82
exports.MAV_CMD_NAV_GUIDED_ENABLE = 92
exports.MAV_CMD_NAV_LAST = 95
exports.MAV_CMD_CONDITION_DELAY = 112
exports.MAV_CMD_CONDITION_CHANGE_ALT = 113
exports.MAV_CMD_CONDITION_DISTANCE = 114
exports.MAV_CMD_CONDITION_YAW = 115
exports.MAV_CMD_CONDITION_LAST = 159
exports.MAV_CMD_DO_SET_MODE = 176
exports.MAV_CMD_DO_JUMP = 177
exports.MAV_CMD_DO_CHANGE_SPEED = 178
exports.MAV_CMD_DO_SET_HOME = 179
exports.MAV_CMD_DO_SET_PARAMETER = 180
exports.MAV_CMD_DO_SET_RELAY = 181
exports.MAV_CMD_DO_REPEAT_RELAY = 182
exports.MAV_CMD_DO_SET_SERVO = 183
exports.MAV_CMD_DO_REPEAT_SERVO = 184
exports.MAV_CMD_DO_FLIGHTTERMINATION = 185
exports.MAV_CMD_DO_LAND_START = 189
exports.MAV_CMD_DO_RALLY_LAND = 190
exports.MAV_CMD_DO_GO_AROUND = 191
exports.MAV_CMD_DO_CONTROL_VIDEO = 200
exports.MAV_CMD_DO_SET_ROI = 201
exports.MAV_CMD_DO_DIGICAM_CONFIGURE = 202
exports.MAV_CMD_DO_DIGICAM_CONTROL = 203
exports.MAV_CMD_DO_MOUNT_CONFIGURE = 204
exports.MAV_CMD_DO_MOUNT_CONTROL = 205
exports.MAV_CMD_DO_SET_CAM_TRIGG_DIST = 206
exports.MAV_CMD_DO_FENCE_ENABLE = 207
exports.MAV_CMD_DO_PARACHUTE = 208
exports.MAV_CMD_DO_INVERTED_FLIGHT = 210
exports.MAV_CMD_DO_GUIDED_MASTER = 221
exports.MAV_CMD_DO_GUIDED_LIMITS = 222
exports.MAV_CMD_DO_LAST = 240
exports.MAV_CMD_PREFLIGHT_CALIBRATION = 241
exports.MAV_CMD_PREFLIGHT_SET_SENSOR_OFFSETS = 242
exports.MAV_CMD_PREFLIGHT_UAVCAN = 243
exports.MAV_CMD_PREFLIGHT_STORAGE = 245
exports.MAV_CMD_PREFLIGHT_REBOOT_SHUTDOWN = 246
exports.MAV_CMD_OVERRIDE_GOTO = 252
exports.MAV_CMD_MISSION_START = 300
exports.MAV_CMD_COMPONENT_ARM_DISARM = 400
exports.MAV_CMD_GET_HOME_POSITION = 410
exports.MAV_CMD_START_RX_PAIR = 500
exports.MAV_CMD_GET_MESSAGE_INTERVAL = 510
exports.MAV_CMD_SET_MESSAGE_INTERVAL = 511
exports.MAV_CMD_REQUEST_AUTOPILOT_CAPABILITIES = 520
exports.MAV_CMD_IMAGE_START_CAPTURE = 2000
exports.MAV_CMD_IMAGE_STOP_CAPTURE = 2001
exports.MAV_CMD_DO_TRIGGER_CONTROL = 2003
exports.MAV_CMD_VIDEO_START_CAPTURE = 2500
exports.MAV_CMD_VIDEO_STOP_CAPTURE = 2501
exports.MAV_CMD_PANORAMA_CREATE = 2800
exports.MAV_CMD_DO_VTOL_TRANSITION = 3000
exports.MAV_CMD_PAYLOAD_PREPARE_DEPLOY = 30001
exports.MAV_CMD_PAYLOAD_CONTROL_DEPLOY = 30002
exports.MAV_CMD_ENUM_END = 30003
exports.MAV_DATA_STREAM_ALL = 0
exports.MAV_DATA_STREAM_RAW_SENSORS = 1
exports.MAV_DATA_STREAM_EXTENDED_STATUS = 2
exports.MAV_DATA_STREAM_RC_CHANNELS = 3
exports.MAV_DATA_STREAM_RAW_CONTROLLER = 4
exports.MAV_DATA_STREAM_POSITION = 6
exports.MAV_DATA_STREAM_EXTRA1 = 10
exports.MAV_DATA_STREAM_EXTRA2 = 11
exports.MAV_DATA_STREAM_EXTRA3 = 12
exports.MAV_DATA_STREAM_ENUM_END = 13
exports.MAV_ROI_NONE = 0
exports.MAV_ROI_WPNEXT = 1
exports.MAV_ROI_WPINDEX = 2
exports.MAV_ROI_LOCATION = 3
exports.MAV_ROI_TARGET = 4
exports.MAV_ROI_ENUM_END = 5
exports.MAV_CMD_ACK_OK = 1
exports.MAV_CMD_ACK_ERR_FAIL = 2
exports.MAV_CMD_ACK_ERR_ACCESS_DENIED = 3
exports.MAV_CMD_ACK_ERR_NOT_SUPPORTED = 4
exports.MAV_CMD_ACK_ERR_COORDINATE_FRAME_NOT_SUPPORTED = 5
exports.MAV_CMD_ACK_ERR_COORDINATES_OUT_OF_RANGE = 6
exports.MAV_CMD_ACK_ERR_X_LAT_OUT_OF_RANGE = 7
exports.MAV_CMD_ACK_ERR_Y_LON_OUT_OF_RANGE = 8
exports.MAV_CMD_ACK_ERR_Z_ALT_OUT_OF_RANGE = 9
exports.MAV_CMD_ACK_ENUM_END = 10
exports.MAV_PARAM_TYPE_UINT8 = 1
exports.MAV_PARAM_TYPE_INT8 = 2
exports.MAV_PARAM_TYPE_UINT16 = 3
exports.MAV_PARAM_TYPE_INT16 = 4
exports.MAV_PARAM_TYPE_UINT32 = 5
exports.MAV_PARAM_TYPE_INT32 = 6
exports.MAV_PARAM_TYPE_UINT64 = 7
exports.MAV_PARAM_TYPE_INT64 = 8
exports.MAV_PARAM_TYPE_REAL32 = 9
exports.MAV_PARAM_TYPE_REAL64 = 10
exports.MAV_PARAM_TYPE_ENUM_END = 11
exports.MAV_RESULT_ACCEPTED = 0
exports.MAV_RESULT_TEMPORARILY_REJECTED = 1
exports.MAV_RESULT_DENIED = 2
exports.MAV_RESULT_UNSUPPORTED = 3
exports.MAV_RESULT_FAILED = 4
exports.MAV_RESULT_ENUM_END = 5
exports.MAV_MISSION_ACCEPTED = 0
exports.MAV_MISSION_ERROR = 1
exports.MAV_MISSION_UNSUPPORTED_FRAME = 2
exports.MAV_MISSION_UNSUPPORTED = 3
exports.MAV_MISSION_NO_SPACE = 4
exports.MAV_MISSION_INVALID = 5
exports.MAV_MISSION_INVALID_PARAM1 = 6
exports.MAV_MISSION_INVALID_PARAM2 = 7
exports.MAV_MISSION_INVALID_PARAM3 = 8
exports.MAV_MISSION_INVALID_PARAM4 = 9
exports.MAV_MISSION_INVALID_PARAM5_X = 10
exports.MAV_MISSION_INVALID_PARAM6_Y = 11
exports.MAV_MISSION_INVALID_PARAM7 = 12
exports.MAV_MISSION_INVALID_SEQUENCE = 13
exports.MAV_MISSION_DENIED = 14
exports.MAV_MISSION_RESULT_ENUM_END = 15
exports.MAV_SEVERITY_EMERGENCY = 0
exports.MAV_SEVERITY_ALERT = 1
exports.MAV_SEVERITY_CRITICAL = 2
exports.MAV_SEVERITY_ERROR = 3
exports.MAV_SEVERITY_WARNING = 4
exports.MAV_SEVERITY_NOTICE = 5
exports.MAV_SEVERITY_INFO = 6
exports.MAV_SEVERITY_DEBUG = 7
exports.MAV_SEVERITY_ENUM_END = 8
exports.MAV_POWER_STATUS_BRICK_VALID = 1
exports.MAV_POWER_STATUS_SERVO_VALID = 2
exports.MAV_POWER_STATUS_USB_CONNECTED = 4
exports.MAV_POWER_STATUS_PERIPH_OVERCURRENT = 8
exports.MAV_POWER_STATUS_PERIPH_HIPOWER_OVERCURRENT = 16
exports.MAV_POWER_STATUS_CHANGED = 32
exports.MAV_POWER_STATUS_ENUM_END = 33
exports.SERIAL_CONTROL_DEV_TELEM1 = 0
exports.SERIAL_CONTROL_DEV_TELEM2 = 1
exports.SERIAL_CONTROL_DEV_GPS1 = 2
exports.SERIAL_CONTROL_DEV_GPS2 = 3
exports.SERIAL_CONTROL_DEV_SHELL = 10
exports.SERIAL_CONTROL_DEV_ENUM_END = 11
exports.SERIAL_CONTROL_FLAG_REPLY = 1
exports.SERIAL_CONTROL_FLAG_RESPOND = 2
exports.SERIAL_CONTROL_FLAG_EXCLUSIVE = 4
exports.SERIAL_CONTROL_FLAG_BLOCKING = 8
exports.SERIAL_CONTROL_FLAG_MULTI = 16
exports.SERIAL_CONTROL_FLAG_ENUM_END = 17
exports.MAV_DISTANCE_SENSOR_LASER = 0
exports.MAV_DISTANCE_SENSOR_ULTRASOUND = 1
exports.MAV_DISTANCE_SENSOR_INFRARED = 2
exports.MAV_DISTANCE_SENSOR_ENUM_END = 3
exports.MAV_SENSOR_ROTATION_NONE = 0
exports.MAV_SENSOR_ROTATION_YAW_45 = 1
exports.MAV_SENSOR_ROTATION_YAW_90 = 2
exports.MAV_SENSOR_ROTATION_YAW_135 = 3
exports.MAV_SENSOR_ROTATION_YAW_180 = 4
exports.MAV_SENSOR_ROTATION_YAW_225 = 5
exports.MAV_SENSOR_ROTATION_YAW_270 = 6
exports.MAV_SENSOR_ROTATION_YAW_315 = 7
exports.MAV_SENSOR_ROTATION_ROLL_180 = 8
exports.MAV_SENSOR_ROTATION_ROLL_180_YAW_45 = 9
exports.MAV_SENSOR_ROTATION_ROLL_180_YAW_90 = 10
exports.MAV_SENSOR_ROTATION_ROLL_180_YAW_135 = 11
exports.MAV_SENSOR_ROTATION_PITCH_180 = 12
exports.MAV_SENSOR_ROTATION_ROLL_180_YAW_225 = 13
exports.MAV_SENSOR_ROTATION_ROLL_180_YAW_270 = 14
exports.MAV_SENSOR_ROTATION_ROLL_180_YAW_315 = 15
exports.MAV_SENSOR_ROTATION_ROLL_90 = 16
exports.MAV_SENSOR_ROTATION_ROLL_90_YAW_45 = 17
exports.MAV_SENSOR_ROTATION_ROLL_90_YAW_90 = 18
exports.MAV_SENSOR_ROTATION_ROLL_90_YAW_135 = 19
exports.MAV_SENSOR_ROTATION_ROLL_270 = 20
exports.MAV_SENSOR_ROTATION_ROLL_270_YAW_45 = 21
exports.MAV_SENSOR_ROTATION_ROLL_270_YAW_90 = 22
exports.MAV_SENSOR_ROTATION_ROLL_270_YAW_135 = 23
exports.MAV_SENSOR_ROTATION_PITCH_90 = 24
exports.MAV_SENSOR_ROTATION_PITCH_270 = 25
exports.MAV_SENSOR_ROTATION_PITCH_180_YAW_90 = 26
exports.MAV_SENSOR_ROTATION_PITCH_180_YAW_270 = 27
exports.MAV_SENSOR_ROTATION_ROLL_90_PITCH_90 = 28
exports.MAV_SENSOR_ROTATION_ROLL_180_PITCH_90 = 29
exports.MAV_SENSOR_ROTATION_ROLL_270_PITCH_90 = 30
exports.MAV_SENSOR_ROTATION_ROLL_90_PITCH_180 = 31
exports.MAV_SENSOR_ROTATION_ROLL_270_PITCH_180 = 32
exports.MAV_SENSOR_ROTATION_ROLL_90_PITCH_270 = 33
exports.MAV_SENSOR_ROTATION_ROLL_180_PITCH_270 = 34
exports.MAV_SENSOR_ROTATION_ROLL_270_PITCH_270 = 35
exports.MAV_SENSOR_ROTATION_ROLL_90_PITCH_180_YAW_90 = 36
exports.MAV_SENSOR_ROTATION_ROLL_90_YAW_270 = 37
exports.MAV_SENSOR_ROTATION_ROLL_315_PITCH_315_YAW_315 = 38
exports.MAV_SENSOR_ORIENTATION_ENUM_END = 39
exports.MAV_PROTOCOL_CAPABILITY_MISSION_FLOAT = 1
exports.MAV_PROTOCOL_CAPABILITY_PARAM_FLOAT = 2
exports.MAV_PROTOCOL_CAPABILITY_MISSION_INT = 4
exports.MAV_PROTOCOL_CAPABILITY_COMMAND_INT = 8
exports.MAV_PROTOCOL_CAPABILITY_PARAM_UNION = 16
exports.MAV_PROTOCOL_CAPABILITY_FTP = 32
exports.MAV_PROTOCOL_CAPABILITY_SET_ATTITUDE_TARGET = 64
exports.MAV_PROTOCOL_CAPABILITY_SET_POSITION_TARGET_LOCAL_NED = 128
exports.MAV_PROTOCOL_CAPABILITY_SET_POSITION_TARGET_GLOBAL_INT = 256
exports.MAV_PROTOCOL_CAPABILITY_TERRAIN = 512
exports.MAV_PROTOCOL_CAPABILITY_SET_ACTUATOR_TARGET = 1024
exports.MAV_PROTOCOL_CAPABILITY_FLIGHT_TERMINATION = 2048
exports.MAV_PROTOCOL_CAPABILITY_COMPASS_CALIBRATION = 4096
exports.MAV_PROTOCOL_CAPABILITY_ENUM_END = 4097
exports.MAV_ESTIMATOR_TYPE_NAIVE = 1
exports.MAV_ESTIMATOR_TYPE_VISION = 2
exports.MAV_ESTIMATOR_TYPE_VIO = 3
exports.MAV_ESTIMATOR_TYPE_GPS = 4
exports.MAV_ESTIMATOR_TYPE_GPS_INS = 5
exports.MAV_ESTIMATOR_TYPE_ENUM_END = 6
exports.MAV_BATTERY_TYPE_UNKNOWN = 0
exports.MAV_BATTERY_TYPE_LIPO = 1
exports.MAV_BATTERY_TYPE_LIFE = 2
exports.MAV_BATTERY_TYPE_LION = 3
exports.MAV_BATTERY_TYPE_NIMH = 4
exports.MAV_BATTERY_TYPE_ENUM_END = 5
exports.MAV_BATTERY_FUNCTION_UNKNOWN = 0
exports.MAV_BATTERY_FUNCTION_ALL = 1
exports.MAV_BATTERY_FUNCTION_PROPULSION = 2
exports.MAV_BATTERY_FUNCTION_AVIONICS = 3
exports.MAV_BATTERY_TYPE_PAYLOAD = 4
exports.MAV_BATTERY_FUNCTION_ENUM_END = 5
exports.MAV_VTOL_STATE_UNDEFINED = 0
exports.MAV_VTOL_STATE_TRANSITION_TO_FW = 1
exports.MAV_VTOL_STATE_TRANSITION_TO_MC = 2
exports.MAV_VTOL_STATE_MC = 3
exports.MAV_VTOL_STATE_FW = 4
exports.MAV_VTOL_STATE_ENUM_END = 5
// Auto generated by trans.py
// Used to declear mavlink headers
// /Users/kvenux/Workplace/apm/ardupilot/libraries/GCS_MAVLink/include/mavlink/v1.0/ardupilotmega/ardupilotmega.h
exports.MAV_CMD_NAV_WAYPOINT = 16
exports.MAV_CMD_NAV_LOITER_UNLIM = 17
exports.MAV_CMD_NAV_LOITER_TURNS = 18
exports.MAV_CMD_NAV_LOITER_TIME = 19
exports.MAV_CMD_NAV_RETURN_TO_LAUNCH = 20
exports.MAV_CMD_NAV_LAND = 21
exports.MAV_CMD_NAV_TAKEOFF = 22
exports.MAV_CMD_NAV_LAND_LOCAL = 23
exports.MAV_CMD_NAV_TAKEOFF_LOCAL = 24
exports.MAV_CMD_NAV_FOLLOW = 25
exports.MAV_CMD_NAV_CONTINUE_AND_CHANGE_ALT = 30
exports.MAV_CMD_NAV_LOITER_TO_ALT = 31
exports.MAV_CMD_NAV_ROI = 80
exports.MAV_CMD_NAV_PATHPLANNING = 81
exports.MAV_CMD_NAV_SPLINE_WAYPOINT = 82
exports.MAV_CMD_NAV_ALTITUDE_WAIT = 83
exports.MAV_CMD_NAV_GUIDED_ENABLE = 92
exports.MAV_CMD_NAV_LAST = 95
exports.MAV_CMD_CONDITION_DELAY = 112
exports.MAV_CMD_CONDITION_CHANGE_ALT = 113
exports.MAV_CMD_CONDITION_DISTANCE = 114
exports.MAV_CMD_CONDITION_YAW = 115
exports.MAV_CMD_CONDITION_LAST = 159
exports.MAV_CMD_DO_SET_MODE = 176
exports.MAV_CMD_DO_JUMP = 177
exports.MAV_CMD_DO_CHANGE_SPEED = 178
exports.MAV_CMD_DO_SET_HOME = 179
exports.MAV_CMD_DO_SET_PARAMETER = 180
exports.MAV_CMD_DO_SET_RELAY = 181
exports.MAV_CMD_DO_REPEAT_RELAY = 182
exports.MAV_CMD_DO_SET_SERVO = 183
exports.MAV_CMD_DO_REPEAT_SERVO = 184
exports.MAV_CMD_DO_FLIGHTTERMINATION = 185
exports.MAV_CMD_DO_LAND_START = 189
exports.MAV_CMD_DO_RALLY_LAND = 190
exports.MAV_CMD_DO_GO_AROUND = 191
exports.MAV_CMD_DO_CONTROL_VIDEO = 200
exports.MAV_CMD_DO_SET_ROI = 201
exports.MAV_CMD_DO_DIGICAM_CONFIGURE = 202
exports.MAV_CMD_DO_DIGICAM_CONTROL = 203
exports.MAV_CMD_DO_MOUNT_CONFIGURE = 204
exports.MAV_CMD_DO_MOUNT_CONTROL = 205
exports.MAV_CMD_DO_SET_CAM_TRIGG_DIST = 206
exports.MAV_CMD_DO_FENCE_ENABLE = 207
exports.MAV_CMD_DO_PARACHUTE = 208
exports.MAV_CMD_DO_MOTOR_TEST = 209
exports.MAV_CMD_DO_INVERTED_FLIGHT = 210
exports.MAV_CMD_DO_GRIPPER = 211
exports.MAV_CMD_DO_AUTOTUNE_ENABLE = 212
exports.MAV_CMD_DO_GUIDED_MASTER = 221
exports.MAV_CMD_DO_GUIDED_LIMITS = 222
exports.MAV_CMD_DO_LAST = 240
exports.MAV_CMD_PREFLIGHT_CALIBRATION = 241
exports.MAV_CMD_PREFLIGHT_SET_SENSOR_OFFSETS = 242
exports.MAV_CMD_PREFLIGHT_UAVCAN = 243
exports.MAV_CMD_PREFLIGHT_STORAGE = 245
exports.MAV_CMD_PREFLIGHT_REBOOT_SHUTDOWN = 246
exports.MAV_CMD_OVERRIDE_GOTO = 252
exports.MAV_CMD_MISSION_START = 300
exports.MAV_CMD_COMPONENT_ARM_DISARM = 400
exports.MAV_CMD_GET_HOME_POSITION = 410
exports.MAV_CMD_START_RX_PAIR = 500
exports.MAV_CMD_GET_MESSAGE_INTERVAL = 510
exports.MAV_CMD_SET_MESSAGE_INTERVAL = 511
exports.MAV_CMD_REQUEST_AUTOPILOT_CAPABILITIES = 520
exports.MAV_CMD_IMAGE_START_CAPTURE = 2000
exports.MAV_CMD_IMAGE_STOP_CAPTURE = 2001
exports.MAV_CMD_DO_TRIGGER_CONTROL = 2003
exports.MAV_CMD_VIDEO_START_CAPTURE = 2500
exports.MAV_CMD_VIDEO_STOP_CAPTURE = 2501
exports.MAV_CMD_PANORAMA_CREATE = 2800
exports.MAV_CMD_DO_VTOL_TRANSITION = 3000
exports.MAV_CMD_PAYLOAD_PREPARE_DEPLOY = 30001
exports.MAV_CMD_PAYLOAD_CONTROL_DEPLOY = 30002
exports.MAV_CMD_DO_START_MAG_CAL = 42424
exports.MAV_CMD_DO_ACCEPT_MAG_CAL = 42425
exports.MAV_CMD_DO_CANCEL_MAG_CAL = 42426
exports.MAV_CMD_ENUM_END = 42427
exports.LIMITS_INIT = 0
exports.LIMITS_DISABLED = 1
exports.LIMITS_ENABLED = 2
exports.LIMITS_TRIGGERED = 3
exports.LIMITS_RECOVERING = 4
exports.LIMITS_RECOVERED = 5
exports.LIMITS_STATE_ENUM_END = 6
exports.LIMIT_GPSLOCK = 1
exports.LIMIT_GEOFENCE = 2
exports.LIMIT_ALTITUDE = 4
exports.LIMIT_MODULE_ENUM_END = 5
exports.FAVORABLE_WIND = 1
exports.LAND_IMMEDIATELY = 2
exports.RALLY_FLAGS_ENUM_END = 3
exports.PARACHUTE_DISABLE = 0
exports.PARACHUTE_ENABLE = 1
exports.PARACHUTE_RELEASE = 2
exports.PARACHUTE_ACTION_ENUM_END = 3
exports.MOTOR_TEST_THROTTLE_PERCENT = 0
exports.MOTOR_TEST_THROTTLE_PWM = 1
exports.MOTOR_TEST_THROTTLE_PILOT = 2
exports.MOTOR_TEST_THROTTLE_TYPE_ENUM_END = 3
exports.GRIPPER_ACTION_RELEASE = 0
exports.GRIPPER_ACTION_GRAB = 1
exports.GRIPPER_ACTIONS_ENUM_END = 2
exports.CAMERA_STATUS_TYPE_HEARTBEAT = 0
exports.CAMERA_STATUS_TYPE_TRIGGER = 1
exports.CAMERA_STATUS_TYPE_DISCONNECT = 2
exports.CAMERA_STATUS_TYPE_ERROR = 3
exports.CAMERA_STATUS_TYPE_LOWBATT = 4
exports.CAMERA_STATUS_TYPE_LOWSTORE = 5
exports.CAMERA_STATUS_TYPE_LOWSTOREV = 6
exports.CAMERA_STATUS_TYPES_ENUM_END = 7
exports.CAMERA_FEEDBACK_PHOTO = 0
exports.CAMERA_FEEDBACK_VIDEO = 1
exports.CAMERA_FEEDBACK_BADEXPOSURE = 2
exports.CAMERA_FEEDBACK_CLOSEDLOOP = 3
exports.CAMERA_FEEDBACK_OPENLOOP = 4
exports.CAMERA_FEEDBACK_FLAGS_ENUM_END = 5
exports.MAV_MODE_GIMBAL_UNINITIALIZED = 0
exports.MAV_MODE_GIMBAL_CALIBRATING_PITCH = 1
exports.MAV_MODE_GIMBAL_CALIBRATING_ROLL = 2
exports.MAV_MODE_GIMBAL_CALIBRATING_YAW = 3
exports.MAV_MODE_GIMBAL_INITIALIZED = 4
exports.MAV_MODE_GIMBAL_ACTIVE = 5
exports.MAV_MODE_GIMBAL_RATE_CMD_TIMEOUT = 6
exports.MAV_MODE_GIMBAL_ENUM_END = 7
exports.GIMBAL_AXIS_YAW = 0
exports.GIMBAL_AXIS_PITCH = 1
exports.GIMBAL_AXIS_ROLL = 2
exports.GIMBAL_AXIS_ENUM_END = 3
exports.GIMBAL_AXIS_CALIBRATION_STATUS_IN_PROGRESS = 0
exports.GIMBAL_AXIS_CALIBRATION_STATUS_SUCCEEDED = 1
exports.GIMBAL_AXIS_CALIBRATION_STATUS_FAILED = 2
exports.GIMBAL_AXIS_CALIBRATION_STATUS_ENUM_END = 3
exports.FACTORY_TEST_AXIS_RANGE_LIMITS = 0
exports.FACTORY_TEST_ENUM_END = 1
exports.GOPRO_CMD_RESULT_UNKNOWN = 0
exports.GOPRO_CMD_RESULT_SUCCESSFUL = 1
exports.GOPRO_CMD_RESULT_SEND_CMD_START_TIMEOUT = 2
exports.GOPRO_CMD_RESULT_SEND_CMD_COMPLETE_TIMEOUT = 3
exports.GOPRO_CMD_RESULT_GET_RESPONSE_START_TIMEOUT = 4
exports.GOPRO_CMD_RESULT_GET_RESPONSE_COMPLETE_TIMEOUT = 5
exports.GOPRO_CMD_RESULT_GET_CMD_COMPLETE_TIMEOUT = 6
exports.GOPRO_CMD_RESULT_SEND_RESPONSE_START_TIMEOUT = 7
exports.GOPRO_CMD_RESULT_SEND_RESPONSE_COMPLETE_TIMEOUT = 8
exports.GOPRO_CMD_RESULT_PREEMPTED = 9
exports.GOPRO_CMD_RECEIVED_DATA_OVERFLOW = 10
exports.GOPRO_CMD_RECEIVED_DATA_UNDERFLOW = 11
exports.GOPRO_CMD_RESULT_ENUM_END = 12
exports.LED_CONTROL_PATTERN_OFF = 0
exports.LED_CONTROL_PATTERN_FIRMWAREUPDATE = 1
exports.LED_CONTROL_PATTERN_CUSTOM = 255
exports.LED_CONTROL_PATTERN_ENUM_END = 256
exports.EKF_ATTITUDE = 1
exports.EKF_VELOCITY_HORIZ = 2
exports.EKF_VELOCITY_VERT = 4
exports.EKF_POS_HORIZ_REL = 8
exports.EKF_POS_HORIZ_ABS = 16
exports.EKF_POS_VERT_ABS = 32
exports.EKF_POS_VERT_AGL = 64
exports.EKF_CONST_POS_MODE = 128
exports.EKF_PRED_POS_HORIZ_REL = 256
exports.EKF_PRED_POS_HORIZ_ABS = 512
exports.EKF_STATUS_FLAGS_ENUM_END = 513
exports.MAG_CAL_NOT_STARTED = 0
exports.MAG_CAL_WAITING_TO_START = 1
exports.MAG_CAL_RUNNING_STEP_ONE = 2
exports.MAG_CAL_RUNNING_STEP_TWO = 3
exports.MAG_CAL_SUCCESS = 4
exports.MAG_CAL_FAILED = 5
exports.MAG_CAL_STATUS_ENUM_END = 6