forked from bluenviron/gomavlib
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmessage_test.go
More file actions
8034 lines (7259 loc) · 315 KB
/
message_test.go
File metadata and controls
8034 lines (7259 loc) · 315 KB
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
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
package gomavlib
import "reflect"
// this file contains a test dialect used in other tests.
// it's better not to import real dialects, but to use a separate one
var testDialect = MustDialectCT(3, []Message{
&MessageTest5{},
&MessageTest6{},
&MessageTest8{},
&MessageHeartbeat{},
&MessageOpticalFlow{},
})
type MessageTest5 struct {
TestByte byte
TestUint uint32
}
func (m *MessageTest5) GetId() uint32 {
return 5
}
func (m *MessageTest5) SetField(field string, value interface{}) error {
reflect.ValueOf(m).Elem().FieldByName(field).Set(reflect.ValueOf(value))
return nil
}
type MessageTest6 struct {
TestByte byte
TestUint uint32
}
func (m *MessageTest6) GetId() uint32 {
return 0x0607
}
func (m *MessageTest6) SetField(field string, value interface{}) error {
reflect.ValueOf(m).Elem().FieldByName(field).Set(reflect.ValueOf(value))
return nil
}
type MessageTest8 struct {
TestByte byte
TestUint uint32
}
func (m *MessageTest8) GetId() uint32 {
return 8
}
func (m *MessageTest8) SetField(field string, value interface{}) error {
reflect.ValueOf(m).Elem().FieldByName(field).Set(reflect.ValueOf(value))
return nil
}
type MessageAhrs struct {
OmegaIx float32 `mavname:"omegaIx"`
OmegaIy float32 `mavname:"omegaIy"`
OmegaIz float32 `mavname:"omegaIz"`
AccelWeight float32
RenormVal float32
ErrorRp float32
ErrorYaw float32
}
func (*MessageAhrs) GetId() uint32 {
return 163
}
func (m *MessageAhrs) SetField(field string, value interface{}) error {
return SetMessageField(m, field, value)
}
// Enumeration of the ADSB altimeter types
type ADSB_ALTITUDE_TYPE int
const (
// Altitude reported from a Baro source using QNH reference
ADSB_ALTITUDE_TYPE_PRESSURE_QNH ADSB_ALTITUDE_TYPE = 0
// Altitude reported from a GNSS source
ADSB_ALTITUDE_TYPE_GEOMETRIC ADSB_ALTITUDE_TYPE = 1
)
// ADSB classification for the type of vehicle emitting the transponder signal
type ADSB_EMITTER_TYPE int
const (
//
ADSB_EMITTER_TYPE_NO_INFO ADSB_EMITTER_TYPE = 0
//
ADSB_EMITTER_TYPE_LIGHT ADSB_EMITTER_TYPE = 1
//
ADSB_EMITTER_TYPE_SMALL ADSB_EMITTER_TYPE = 2
//
ADSB_EMITTER_TYPE_LARGE ADSB_EMITTER_TYPE = 3
//
ADSB_EMITTER_TYPE_HIGH_VORTEX_LARGE ADSB_EMITTER_TYPE = 4
//
ADSB_EMITTER_TYPE_HEAVY ADSB_EMITTER_TYPE = 5
//
ADSB_EMITTER_TYPE_HIGHLY_MANUV ADSB_EMITTER_TYPE = 6
//
ADSB_EMITTER_TYPE_ROTOCRAFT ADSB_EMITTER_TYPE = 7
//
ADSB_EMITTER_TYPE_UNASSIGNED ADSB_EMITTER_TYPE = 8
//
ADSB_EMITTER_TYPE_GLIDER ADSB_EMITTER_TYPE = 9
//
ADSB_EMITTER_TYPE_LIGHTER_AIR ADSB_EMITTER_TYPE = 10
//
ADSB_EMITTER_TYPE_PARACHUTE ADSB_EMITTER_TYPE = 11
//
ADSB_EMITTER_TYPE_ULTRA_LIGHT ADSB_EMITTER_TYPE = 12
//
ADSB_EMITTER_TYPE_UNASSIGNED2 ADSB_EMITTER_TYPE = 13
//
ADSB_EMITTER_TYPE_UAV ADSB_EMITTER_TYPE = 14
//
ADSB_EMITTER_TYPE_SPACE ADSB_EMITTER_TYPE = 15
//
ADSB_EMITTER_TYPE_UNASSGINED3 ADSB_EMITTER_TYPE = 16
//
ADSB_EMITTER_TYPE_EMERGENCY_SURFACE ADSB_EMITTER_TYPE = 17
//
ADSB_EMITTER_TYPE_SERVICE_SURFACE ADSB_EMITTER_TYPE = 18
//
ADSB_EMITTER_TYPE_POINT_OBSTACLE ADSB_EMITTER_TYPE = 19
)
// These flags indicate status such as data validity of each data source. Set = data valid
type ADSB_FLAGS int
const (
//
ADSB_FLAGS_VALID_COORDS ADSB_FLAGS = 1
//
ADSB_FLAGS_VALID_ALTITUDE ADSB_FLAGS = 2
//
ADSB_FLAGS_VALID_HEADING ADSB_FLAGS = 4
//
ADSB_FLAGS_VALID_VELOCITY ADSB_FLAGS = 8
//
ADSB_FLAGS_VALID_CALLSIGN ADSB_FLAGS = 16
//
ADSB_FLAGS_VALID_SQUAWK ADSB_FLAGS = 32
//
ADSB_FLAGS_SIMULATED ADSB_FLAGS = 64
//
ADSB_FLAGS_VERTICAL_VELOCITY_VALID ADSB_FLAGS = 128
//
ADSB_FLAGS_BARO_VALID ADSB_FLAGS = 256
//
ADSB_FLAGS_SOURCE_UAT ADSB_FLAGS = 32768
)
// 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.
type AIS_FLAGS int
const (
// 1 = Position accuracy less than 10m, 0 = position accuracy greater than 10m.
AIS_FLAGS_POSITION_ACCURACY AIS_FLAGS = 1
//
AIS_FLAGS_VALID_COG AIS_FLAGS = 2
//
AIS_FLAGS_VALID_VELOCITY AIS_FLAGS = 4
// 1 = Velocity over 52.5765m/s (102.2 knots)
AIS_FLAGS_HIGH_VELOCITY AIS_FLAGS = 8
//
AIS_FLAGS_VALID_TURN_RATE AIS_FLAGS = 16
// Only the sign of the returned turn rate value is valid, either greater than 5deg/30s or less than -5deg/30s
AIS_FLAGS_TURN_RATE_SIGN_ONLY AIS_FLAGS = 32
//
AIS_FLAGS_VALID_DIMENSIONS AIS_FLAGS = 64
// Distance to bow is larger than 511m
AIS_FLAGS_LARGE_BOW_DIMENSION AIS_FLAGS = 128
// Distance to stern is larger than 511m
AIS_FLAGS_LARGE_STERN_DIMENSION AIS_FLAGS = 256
// Distance to port side is larger than 63m
AIS_FLAGS_LARGE_PORT_DIMENSION AIS_FLAGS = 512
// Distance to starboard side is larger than 63m
AIS_FLAGS_LARGE_STARBOARD_DIMENSION AIS_FLAGS = 1024
//
AIS_FLAGS_VALID_CALLSIGN AIS_FLAGS = 2048
//
AIS_FLAGS_VALID_NAME AIS_FLAGS = 4096
)
// Navigational status of AIS vessel, enum duplicated from AIS standard, https://gpsd.gitlab.io/gpsd/AIVDM.html
type AIS_NAV_STATUS int
const (
// Under way using engine.
UNDER_WAY AIS_NAV_STATUS = 0
//
AIS_NAV_ANCHORED AIS_NAV_STATUS = 1
//
AIS_NAV_UN_COMMANDED AIS_NAV_STATUS = 2
//
AIS_NAV_RESTRICTED_MANOEUVERABILITY AIS_NAV_STATUS = 3
//
AIS_NAV_DRAUGHT_CONSTRAINED AIS_NAV_STATUS = 4
//
AIS_NAV_MOORED AIS_NAV_STATUS = 5
//
AIS_NAV_AGROUND AIS_NAV_STATUS = 6
//
AIS_NAV_FISHING AIS_NAV_STATUS = 7
//
AIS_NAV_SAILING AIS_NAV_STATUS = 8
//
AIS_NAV_RESERVED_HSC AIS_NAV_STATUS = 9
//
AIS_NAV_RESERVED_WIG AIS_NAV_STATUS = 10
//
AIS_NAV_RESERVED_1 AIS_NAV_STATUS = 11
//
AIS_NAV_RESERVED_2 AIS_NAV_STATUS = 12
//
AIS_NAV_RESERVED_3 AIS_NAV_STATUS = 13
// Search And Rescue Transponder.
AIS_NAV_AIS_SART AIS_NAV_STATUS = 14
// Not available (default).
AIS_NAV_UNKNOWN AIS_NAV_STATUS = 15
)
// Type of AIS vessel, enum duplicated from AIS standard, https://gpsd.gitlab.io/gpsd/AIVDM.html
type AIS_TYPE int
const (
// Not available (default).
AIS_TYPE_UNKNOWN AIS_TYPE = 0
//
AIS_TYPE_RESERVED_1 AIS_TYPE = 1
//
AIS_TYPE_RESERVED_2 AIS_TYPE = 2
//
AIS_TYPE_RESERVED_3 AIS_TYPE = 3
//
AIS_TYPE_RESERVED_4 AIS_TYPE = 4
//
AIS_TYPE_RESERVED_5 AIS_TYPE = 5
//
AIS_TYPE_RESERVED_6 AIS_TYPE = 6
//
AIS_TYPE_RESERVED_7 AIS_TYPE = 7
//
AIS_TYPE_RESERVED_8 AIS_TYPE = 8
//
AIS_TYPE_RESERVED_9 AIS_TYPE = 9
//
AIS_TYPE_RESERVED_10 AIS_TYPE = 10
//
AIS_TYPE_RESERVED_11 AIS_TYPE = 11
//
AIS_TYPE_RESERVED_12 AIS_TYPE = 12
//
AIS_TYPE_RESERVED_13 AIS_TYPE = 13
//
AIS_TYPE_RESERVED_14 AIS_TYPE = 14
//
AIS_TYPE_RESERVED_15 AIS_TYPE = 15
//
AIS_TYPE_RESERVED_16 AIS_TYPE = 16
//
AIS_TYPE_RESERVED_17 AIS_TYPE = 17
//
AIS_TYPE_RESERVED_18 AIS_TYPE = 18
//
AIS_TYPE_RESERVED_19 AIS_TYPE = 19
// Wing In Ground effect.
AIS_TYPE_WIG AIS_TYPE = 20
//
AIS_TYPE_WIG_HAZARDOUS_A AIS_TYPE = 21
//
AIS_TYPE_WIG_HAZARDOUS_B AIS_TYPE = 22
//
AIS_TYPE_WIG_HAZARDOUS_C AIS_TYPE = 23
//
AIS_TYPE_WIG_HAZARDOUS_D AIS_TYPE = 24
//
AIS_TYPE_WIG_RESERVED_1 AIS_TYPE = 25
//
AIS_TYPE_WIG_RESERVED_2 AIS_TYPE = 26
//
AIS_TYPE_WIG_RESERVED_3 AIS_TYPE = 27
//
AIS_TYPE_WIG_RESERVED_4 AIS_TYPE = 28
//
AIS_TYPE_WIG_RESERVED_5 AIS_TYPE = 29
//
AIS_TYPE_FISHING AIS_TYPE = 30
//
AIS_TYPE_TOWING AIS_TYPE = 31
// Towing: length exceeds 200m or breadth exceeds 25m.
AIS_TYPE_TOWING_LARGE AIS_TYPE = 32
// Dredging or other underwater ops.
AIS_TYPE_DREDGING AIS_TYPE = 33
//
AIS_TYPE_DIVING AIS_TYPE = 34
//
AIS_TYPE_MILITARY AIS_TYPE = 35
//
AIS_TYPE_SAILING AIS_TYPE = 36
//
AIS_TYPE_PLEASURE AIS_TYPE = 37
//
AIS_TYPE_RESERVED_20 AIS_TYPE = 38
//
AIS_TYPE_RESERVED_21 AIS_TYPE = 39
// High Speed Craft.
AIS_TYPE_HSC AIS_TYPE = 40
//
AIS_TYPE_HSC_HAZARDOUS_A AIS_TYPE = 41
//
AIS_TYPE_HSC_HAZARDOUS_B AIS_TYPE = 42
//
AIS_TYPE_HSC_HAZARDOUS_C AIS_TYPE = 43
//
AIS_TYPE_HSC_HAZARDOUS_D AIS_TYPE = 44
//
AIS_TYPE_HSC_RESERVED_1 AIS_TYPE = 45
//
AIS_TYPE_HSC_RESERVED_2 AIS_TYPE = 46
//
AIS_TYPE_HSC_RESERVED_3 AIS_TYPE = 47
//
AIS_TYPE_HSC_RESERVED_4 AIS_TYPE = 48
//
AIS_TYPE_HSC_UNKNOWN AIS_TYPE = 49
//
AIS_TYPE_PILOT AIS_TYPE = 50
// Search And Rescue vessel.
AIS_TYPE_SAR AIS_TYPE = 51
//
AIS_TYPE_TUG AIS_TYPE = 52
//
AIS_TYPE_PORT_TENDER AIS_TYPE = 53
// Anti-pollution equipment.
AIS_TYPE_ANTI_POLLUTION AIS_TYPE = 54
//
AIS_TYPE_LAW_ENFORCEMENT AIS_TYPE = 55
//
AIS_TYPE_SPARE_LOCAL_1 AIS_TYPE = 56
//
AIS_TYPE_SPARE_LOCAL_2 AIS_TYPE = 57
//
AIS_TYPE_MEDICAL_TRANSPORT AIS_TYPE = 58
// Noncombatant ship according to RR Resolution No. 18.
AIS_TYPE_NONECOMBATANT AIS_TYPE = 59
//
AIS_TYPE_PASSENGER AIS_TYPE = 60
//
AIS_TYPE_PASSENGER_HAZARDOUS_A AIS_TYPE = 61
//
AIS_TYPE_PASSENGER_HAZARDOUS_B AIS_TYPE = 62
//
AIS_TYPE_AIS_TYPE_PASSENGER_HAZARDOUS_C AIS_TYPE = 63
//
AIS_TYPE_PASSENGER_HAZARDOUS_D AIS_TYPE = 64
//
AIS_TYPE_PASSENGER_RESERVED_1 AIS_TYPE = 65
//
AIS_TYPE_PASSENGER_RESERVED_2 AIS_TYPE = 66
//
AIS_TYPE_PASSENGER_RESERVED_3 AIS_TYPE = 67
//
AIS_TYPE_AIS_TYPE_PASSENGER_RESERVED_4 AIS_TYPE = 68
//
AIS_TYPE_PASSENGER_UNKNOWN AIS_TYPE = 69
//
AIS_TYPE_CARGO AIS_TYPE = 70
//
AIS_TYPE_CARGO_HAZARDOUS_A AIS_TYPE = 71
//
AIS_TYPE_CARGO_HAZARDOUS_B AIS_TYPE = 72
//
AIS_TYPE_CARGO_HAZARDOUS_C AIS_TYPE = 73
//
AIS_TYPE_CARGO_HAZARDOUS_D AIS_TYPE = 74
//
AIS_TYPE_CARGO_RESERVED_1 AIS_TYPE = 75
//
AIS_TYPE_CARGO_RESERVED_2 AIS_TYPE = 76
//
AIS_TYPE_CARGO_RESERVED_3 AIS_TYPE = 77
//
AIS_TYPE_CARGO_RESERVED_4 AIS_TYPE = 78
//
AIS_TYPE_CARGO_UNKNOWN AIS_TYPE = 79
//
AIS_TYPE_TANKER AIS_TYPE = 80
//
AIS_TYPE_TANKER_HAZARDOUS_A AIS_TYPE = 81
//
AIS_TYPE_TANKER_HAZARDOUS_B AIS_TYPE = 82
//
AIS_TYPE_TANKER_HAZARDOUS_C AIS_TYPE = 83
//
AIS_TYPE_TANKER_HAZARDOUS_D AIS_TYPE = 84
//
AIS_TYPE_TANKER_RESERVED_1 AIS_TYPE = 85
//
AIS_TYPE_TANKER_RESERVED_2 AIS_TYPE = 86
//
AIS_TYPE_TANKER_RESERVED_3 AIS_TYPE = 87
//
AIS_TYPE_TANKER_RESERVED_4 AIS_TYPE = 88
//
AIS_TYPE_TANKER_UNKNOWN AIS_TYPE = 89
//
AIS_TYPE_OTHER AIS_TYPE = 90
//
AIS_TYPE_OTHER_HAZARDOUS_A AIS_TYPE = 91
//
AIS_TYPE_OTHER_HAZARDOUS_B AIS_TYPE = 92
//
AIS_TYPE_OTHER_HAZARDOUS_C AIS_TYPE = 93
//
AIS_TYPE_OTHER_HAZARDOUS_D AIS_TYPE = 94
//
AIS_TYPE_OTHER_RESERVED_1 AIS_TYPE = 95
//
AIS_TYPE_OTHER_RESERVED_2 AIS_TYPE = 96
//
AIS_TYPE_OTHER_RESERVED_3 AIS_TYPE = 97
//
AIS_TYPE_OTHER_RESERVED_4 AIS_TYPE = 98
//
AIS_TYPE_OTHER_UNKNOWN AIS_TYPE = 99
)
// Camera capability flags (Bitmap)
type CAMERA_CAP_FLAGS int
const (
// Camera is able to record video
CAMERA_CAP_FLAGS_CAPTURE_VIDEO CAMERA_CAP_FLAGS = 1
// Camera is able to capture images
CAMERA_CAP_FLAGS_CAPTURE_IMAGE CAMERA_CAP_FLAGS = 2
// Camera has separate Video and Image/Photo modes (MAV_CMD_SET_CAMERA_MODE)
CAMERA_CAP_FLAGS_HAS_MODES CAMERA_CAP_FLAGS = 4
// Camera can capture images while in video mode
CAMERA_CAP_FLAGS_CAN_CAPTURE_IMAGE_IN_VIDEO_MODE CAMERA_CAP_FLAGS = 8
// Camera can capture videos while in Photo/Image mode
CAMERA_CAP_FLAGS_CAN_CAPTURE_VIDEO_IN_IMAGE_MODE CAMERA_CAP_FLAGS = 16
// Camera has image survey mode (MAV_CMD_SET_CAMERA_MODE)
CAMERA_CAP_FLAGS_HAS_IMAGE_SURVEY_MODE CAMERA_CAP_FLAGS = 32
// Camera has basic zoom control (MAV_CMD_SET_CAMERA_ZOOM)
CAMERA_CAP_FLAGS_HAS_BASIC_ZOOM CAMERA_CAP_FLAGS = 64
// Camera has basic focus control (MAV_CMD_SET_CAMERA_FOCUS)
CAMERA_CAP_FLAGS_HAS_BASIC_FOCUS CAMERA_CAP_FLAGS = 128
// Camera has video streaming capabilities (use MAV_CMD_REQUEST_VIDEO_STREAM_INFORMATION for video streaming info)
CAMERA_CAP_FLAGS_HAS_VIDEO_STREAM CAMERA_CAP_FLAGS = 256
)
// Camera Modes.
type CAMERA_MODE int
const (
// Camera is in image/photo capture mode.
CAMERA_MODE_IMAGE CAMERA_MODE = 0
// Camera is in video capture mode.
CAMERA_MODE_VIDEO CAMERA_MODE = 1
// Camera is in image survey capture mode. It allows for camera controller to do specific settings for surveys.
CAMERA_MODE_IMAGE_SURVEY CAMERA_MODE = 2
)
// Zoom types for MAV_CMD_SET_CAMERA_ZOOM
type CAMERA_ZOOM_TYPE int
const (
// Zoom one step increment (-1 for wide, 1 for tele)
ZOOM_TYPE_STEP CAMERA_ZOOM_TYPE = 0
// Continuous zoom up/down until stopped (-1 for wide, 1 for tele, 0 to stop zooming)
ZOOM_TYPE_CONTINUOUS CAMERA_ZOOM_TYPE = 1
// Zoom value as proportion of full camera range (a value between 0.0 and 100.0)
ZOOM_TYPE_RANGE CAMERA_ZOOM_TYPE = 2
// Zoom value/variable focal length in milimetres. 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)
ZOOM_TYPE_FOCAL_LENGTH CAMERA_ZOOM_TYPE = 3
)
// Cellular network radio type
type CELLULAR_NETWORK_RADIO_TYPE int
const (
//
CELLULAR_NETWORK_RADIO_TYPE_NONE CELLULAR_NETWORK_RADIO_TYPE = 0
//
CELLULAR_NETWORK_RADIO_TYPE_GSM CELLULAR_NETWORK_RADIO_TYPE = 1
//
CELLULAR_NETWORK_RADIO_TYPE_CDMA CELLULAR_NETWORK_RADIO_TYPE = 2
//
CELLULAR_NETWORK_RADIO_TYPE_WCDMA CELLULAR_NETWORK_RADIO_TYPE = 3
//
CELLULAR_NETWORK_RADIO_TYPE_LTE CELLULAR_NETWORK_RADIO_TYPE = 4
)
// These flags encode the cellular network status
type CELLULAR_NETWORK_STATUS_FLAG int
const (
// Roaming is active
CELLULAR_NETWORK_STATUS_FLAG_ROAMING CELLULAR_NETWORK_STATUS_FLAG = 1
)
// Component capability flags (Bitmap)
type COMPONENT_CAP_FLAGS int
const (
// Component has parameters, and supports the parameter protocol (PARAM messages).
COMPONENT_CAP_FLAGS_PARAM COMPONENT_CAP_FLAGS = 1
// Component has parameters, and supports the extended parameter protocol (PARAM_EXT messages).
COMPONENT_CAP_FLAGS_PARAM_EXT COMPONENT_CAP_FLAGS = 2
)
// Flags in EKF_STATUS message
type ESTIMATOR_STATUS_FLAGS int
const (
// True if the attitude estimate is good
ESTIMATOR_ATTITUDE ESTIMATOR_STATUS_FLAGS = 1
// True if the horizontal velocity estimate is good
ESTIMATOR_VELOCITY_HORIZ ESTIMATOR_STATUS_FLAGS = 2
// True if the vertical velocity estimate is good
ESTIMATOR_VELOCITY_VERT ESTIMATOR_STATUS_FLAGS = 4
// True if the horizontal position (relative) estimate is good
ESTIMATOR_POS_HORIZ_REL ESTIMATOR_STATUS_FLAGS = 8
// True if the horizontal position (absolute) estimate is good
ESTIMATOR_POS_HORIZ_ABS ESTIMATOR_STATUS_FLAGS = 16
// True if the vertical position (absolute) estimate is good
ESTIMATOR_POS_VERT_ABS ESTIMATOR_STATUS_FLAGS = 32
// True if the vertical position (above ground) estimate is good
ESTIMATOR_POS_VERT_AGL ESTIMATOR_STATUS_FLAGS = 64
// True if the EKF is in a constant position mode and is not using external measurements (eg GPS or optical flow)
ESTIMATOR_CONST_POS_MODE ESTIMATOR_STATUS_FLAGS = 128
// True if the EKF has sufficient data to enter a mode that will provide a (relative) position estimate
ESTIMATOR_PRED_POS_HORIZ_REL ESTIMATOR_STATUS_FLAGS = 256
// True if the EKF has sufficient data to enter a mode that will provide a (absolute) position estimate
ESTIMATOR_PRED_POS_HORIZ_ABS ESTIMATOR_STATUS_FLAGS = 512
// True if the EKF has detected a GPS glitch
ESTIMATOR_GPS_GLITCH ESTIMATOR_STATUS_FLAGS = 1024
// True if the EKF has detected bad accelerometer data
ESTIMATOR_ACCEL_ERROR ESTIMATOR_STATUS_FLAGS = 2048
)
//
type FENCE_ACTION int
const (
// Disable fenced mode
FENCE_ACTION_NONE FENCE_ACTION = 0
// Switched to guided mode to return point (fence point 0)
FENCE_ACTION_GUIDED FENCE_ACTION = 1
// Report fence breach, but don't take action
FENCE_ACTION_REPORT FENCE_ACTION = 2
// Switched to guided mode to return point (fence point 0) with manual throttle control
FENCE_ACTION_GUIDED_THR_PASS FENCE_ACTION = 3
// Switch to RTL (return to launch) mode and head for the return point.
FENCE_ACTION_RTL FENCE_ACTION = 4
)
//
type FENCE_BREACH int
const (
// No last fence breach
FENCE_BREACH_NONE FENCE_BREACH = 0
// Breached minimum altitude
FENCE_BREACH_MINALT FENCE_BREACH = 1
// Breached maximum altitude
FENCE_BREACH_MAXALT FENCE_BREACH = 2
// Breached fence boundary
FENCE_BREACH_BOUNDARY FENCE_BREACH = 3
)
// Actions being taken to mitigate/prevent fence breach
type FENCE_MITIGATE int
const (
// Unknown
FENCE_MITIGATE_UNKNOWN FENCE_MITIGATE = 0
// No actions being taken
FENCE_MITIGATE_NONE FENCE_MITIGATE = 1
// Velocity limiting active to prevent breach
FENCE_MITIGATE_VEL_LIMIT FENCE_MITIGATE = 2
)
// 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.
type FIRMWARE_VERSION_TYPE int
const (
// development release
FIRMWARE_VERSION_TYPE_DEV FIRMWARE_VERSION_TYPE = 0
// alpha release
FIRMWARE_VERSION_TYPE_ALPHA FIRMWARE_VERSION_TYPE = 64
// beta release
FIRMWARE_VERSION_TYPE_BETA FIRMWARE_VERSION_TYPE = 128
// release candidate
FIRMWARE_VERSION_TYPE_RC FIRMWARE_VERSION_TYPE = 192
// official stable release
FIRMWARE_VERSION_TYPE_OFFICIAL FIRMWARE_VERSION_TYPE = 255
)
// Type of GPS fix
type GPS_FIX_TYPE int
const (
// No GPS connected
GPS_FIX_TYPE_NO_GPS GPS_FIX_TYPE = 0
// No position information, GPS is connected
GPS_FIX_TYPE_NO_FIX GPS_FIX_TYPE = 1
// 2D position
GPS_FIX_TYPE_2D_FIX GPS_FIX_TYPE = 2
// 3D position
GPS_FIX_TYPE_3D_FIX GPS_FIX_TYPE = 3
// DGPS/SBAS aided 3D position
GPS_FIX_TYPE_DGPS GPS_FIX_TYPE = 4
// RTK float, 3D position
GPS_FIX_TYPE_RTK_FLOAT GPS_FIX_TYPE = 5
// RTK Fixed, 3D position
GPS_FIX_TYPE_RTK_FIXED GPS_FIX_TYPE = 6
// Static fixed, typically used for base stations
GPS_FIX_TYPE_STATIC GPS_FIX_TYPE = 7
// PPP, 3D position.
GPS_FIX_TYPE_PPP GPS_FIX_TYPE = 8
)
//
type GPS_INPUT_IGNORE_FLAGS int
const (
// ignore altitude field
GPS_INPUT_IGNORE_FLAG_ALT GPS_INPUT_IGNORE_FLAGS = 1
// ignore hdop field
GPS_INPUT_IGNORE_FLAG_HDOP GPS_INPUT_IGNORE_FLAGS = 2
// ignore vdop field
GPS_INPUT_IGNORE_FLAG_VDOP GPS_INPUT_IGNORE_FLAGS = 4
// ignore horizontal velocity field (vn and ve)
GPS_INPUT_IGNORE_FLAG_VEL_HORIZ GPS_INPUT_IGNORE_FLAGS = 8
// ignore vertical velocity field (vd)
GPS_INPUT_IGNORE_FLAG_VEL_VERT GPS_INPUT_IGNORE_FLAGS = 16
// ignore speed accuracy field
GPS_INPUT_IGNORE_FLAG_SPEED_ACCURACY GPS_INPUT_IGNORE_FLAGS = 32
// ignore horizontal accuracy field
GPS_INPUT_IGNORE_FLAG_HORIZONTAL_ACCURACY GPS_INPUT_IGNORE_FLAGS = 64
// ignore vertical accuracy field
GPS_INPUT_IGNORE_FLAG_VERTICAL_ACCURACY GPS_INPUT_IGNORE_FLAGS = 128
)
// Flags to report failure cases over the high latency telemtry.
type HL_FAILURE_FLAG int
const (
// GPS failure.
HL_FAILURE_FLAG_GPS HL_FAILURE_FLAG = 1
// Differential pressure sensor failure.
HL_FAILURE_FLAG_DIFFERENTIAL_PRESSURE HL_FAILURE_FLAG = 2
// Absolute pressure sensor failure.
HL_FAILURE_FLAG_ABSOLUTE_PRESSURE HL_FAILURE_FLAG = 4
// Accelerometer sensor failure.
HL_FAILURE_FLAG_3D_ACCEL HL_FAILURE_FLAG = 8
// Gyroscope sensor failure.
HL_FAILURE_FLAG_3D_GYRO HL_FAILURE_FLAG = 16
// Magnetometer sensor failure.
HL_FAILURE_FLAG_3D_MAG HL_FAILURE_FLAG = 32
// Terrain subsystem failure.
HL_FAILURE_FLAG_TERRAIN HL_FAILURE_FLAG = 64
// Battery failure/critical low battery.
HL_FAILURE_FLAG_BATTERY HL_FAILURE_FLAG = 128
// RC receiver failure/no rc connection.
HL_FAILURE_FLAG_RC_RECEIVER HL_FAILURE_FLAG = 256
// Offboard link failure.
HL_FAILURE_FLAG_OFFBOARD_LINK HL_FAILURE_FLAG = 512
// Engine failure.
HL_FAILURE_FLAG_ENGINE HL_FAILURE_FLAG = 1024
// Geofence violation.
HL_FAILURE_FLAG_GEOFENCE HL_FAILURE_FLAG = 2048
// Estimator failure, for example measurement rejection or large variances.
HL_FAILURE_FLAG_ESTIMATOR HL_FAILURE_FLAG = 4096
// Mission failure.
HL_FAILURE_FLAG_MISSION HL_FAILURE_FLAG = 8192
)
// Type of landing target
type LANDING_TARGET_TYPE int
const (
// Landing target signaled by light beacon (ex: IR-LOCK)
LANDING_TARGET_TYPE_LIGHT_BEACON LANDING_TARGET_TYPE = 0
// Landing target signaled by radio beacon (ex: ILS, NDB)
LANDING_TARGET_TYPE_RADIO_BEACON LANDING_TARGET_TYPE = 1
// Landing target represented by a fiducial marker (ex: ARTag)
LANDING_TARGET_TYPE_VISION_FIDUCIAL LANDING_TARGET_TYPE = 2
// Landing target represented by a pre-defined visual shape/feature (ex: X-marker, H-marker, square)
LANDING_TARGET_TYPE_VISION_OTHER LANDING_TARGET_TYPE = 3
)
//
type MAVLINK_DATA_STREAM_TYPE int
const (
//
MAVLINK_DATA_STREAM_IMG_JPEG MAVLINK_DATA_STREAM_TYPE = 0
//
MAVLINK_DATA_STREAM_IMG_BMP MAVLINK_DATA_STREAM_TYPE = 1
//
MAVLINK_DATA_STREAM_IMG_RAW8U MAVLINK_DATA_STREAM_TYPE = 2
//
MAVLINK_DATA_STREAM_IMG_RAW32U MAVLINK_DATA_STREAM_TYPE = 3
//
MAVLINK_DATA_STREAM_IMG_PGM MAVLINK_DATA_STREAM_TYPE = 4
//
MAVLINK_DATA_STREAM_IMG_PNG MAVLINK_DATA_STREAM_TYPE = 5
)
//
type MAV_ARM_AUTH_DENIED_REASON int
const (
// Not a specific reason
MAV_ARM_AUTH_DENIED_REASON_GENERIC MAV_ARM_AUTH_DENIED_REASON = 0
// Authorizer will send the error as string to GCS
MAV_ARM_AUTH_DENIED_REASON_NONE MAV_ARM_AUTH_DENIED_REASON = 1
// At least one waypoint have a invalid value
MAV_ARM_AUTH_DENIED_REASON_INVALID_WAYPOINT MAV_ARM_AUTH_DENIED_REASON = 2
// Timeout in the authorizer process(in case it depends on network)
MAV_ARM_AUTH_DENIED_REASON_TIMEOUT MAV_ARM_AUTH_DENIED_REASON = 3
// Airspace of the mission in use by another vehicle, second result parameter can have the waypoint id that caused it to be denied.
MAV_ARM_AUTH_DENIED_REASON_AIRSPACE_IN_USE MAV_ARM_AUTH_DENIED_REASON = 4
// Weather is not good to fly
MAV_ARM_AUTH_DENIED_REASON_BAD_WEATHER MAV_ARM_AUTH_DENIED_REASON = 5
)
// Micro air vehicle / autopilot classes. This identifies the individual model.
type MAV_AUTOPILOT int
const (
// Generic autopilot, full support for everything
MAV_AUTOPILOT_GENERIC MAV_AUTOPILOT = 0
// Reserved for future use.
MAV_AUTOPILOT_RESERVED MAV_AUTOPILOT = 1
// SLUGS autopilot, http://slugsuav.soe.ucsc.edu
MAV_AUTOPILOT_SLUGS MAV_AUTOPILOT = 2
// ArduPilot - Plane/Copter/Rover/Sub/Tracker, https://ardupilot.org
MAV_AUTOPILOT_ARDUPILOTMEGA MAV_AUTOPILOT = 3
// OpenPilot, http://openpilot.org
MAV_AUTOPILOT_OPENPILOT MAV_AUTOPILOT = 4
// Generic autopilot only supporting simple waypoints
MAV_AUTOPILOT_GENERIC_WAYPOINTS_ONLY MAV_AUTOPILOT = 5
// Generic autopilot supporting waypoints and other simple navigation commands
MAV_AUTOPILOT_GENERIC_WAYPOINTS_AND_SIMPLE_NAVIGATION_ONLY MAV_AUTOPILOT = 6
// Generic autopilot supporting the full mission command set
MAV_AUTOPILOT_GENERIC_MISSION_FULL MAV_AUTOPILOT = 7
// No valid autopilot, e.g. a GCS or other MAVLink component
MAV_AUTOPILOT_INVALID MAV_AUTOPILOT = 8
// PPZ UAV - http://nongnu.org/paparazzi
MAV_AUTOPILOT_PPZ MAV_AUTOPILOT = 9
// UAV Dev Board
MAV_AUTOPILOT_UDB MAV_AUTOPILOT = 10
// FlexiPilot
MAV_AUTOPILOT_FP MAV_AUTOPILOT = 11
// PX4 Autopilot - http://px4.io/
MAV_AUTOPILOT_PX4 MAV_AUTOPILOT = 12
// SMACCMPilot - http://smaccmpilot.org
MAV_AUTOPILOT_SMACCMPILOT MAV_AUTOPILOT = 13
// AutoQuad -- http://autoquad.org
MAV_AUTOPILOT_AUTOQUAD MAV_AUTOPILOT = 14
// Armazila -- http://armazila.com
MAV_AUTOPILOT_ARMAZILA MAV_AUTOPILOT = 15
// Aerob -- http://aerob.ru
MAV_AUTOPILOT_AEROB MAV_AUTOPILOT = 16
// ASLUAV autopilot -- http://www.asl.ethz.ch
MAV_AUTOPILOT_ASLUAV MAV_AUTOPILOT = 17
// SmartAP Autopilot - http://sky-drones.com
MAV_AUTOPILOT_SMARTAP MAV_AUTOPILOT = 18
// AirRails - http://uaventure.com
MAV_AUTOPILOT_AIRRAILS MAV_AUTOPILOT = 19
)
// Enumeration for battery charge states.
type MAV_BATTERY_CHARGE_STATE int
const (
// Low battery state is not provided
MAV_BATTERY_CHARGE_STATE_UNDEFINED MAV_BATTERY_CHARGE_STATE = 0
// Battery is not in low state. Normal operation.
MAV_BATTERY_CHARGE_STATE_OK MAV_BATTERY_CHARGE_STATE = 1
// Battery state is low, warn and monitor close.
MAV_BATTERY_CHARGE_STATE_LOW MAV_BATTERY_CHARGE_STATE = 2
// Battery state is critical, return or abort immediately.
MAV_BATTERY_CHARGE_STATE_CRITICAL MAV_BATTERY_CHARGE_STATE = 3
// Battery state is too low for ordinary abort sequence. Perform fastest possible emergency stop to prevent damage.
MAV_BATTERY_CHARGE_STATE_EMERGENCY MAV_BATTERY_CHARGE_STATE = 4
// Battery failed, damage unavoidable.
MAV_BATTERY_CHARGE_STATE_FAILED MAV_BATTERY_CHARGE_STATE = 5
// Battery is diagnosed to be defective or an error occurred, usage is discouraged / prohibited.
MAV_BATTERY_CHARGE_STATE_UNHEALTHY MAV_BATTERY_CHARGE_STATE = 6
// Battery is charging.
MAV_BATTERY_CHARGE_STATE_CHARGING MAV_BATTERY_CHARGE_STATE = 7
)
// Enumeration of battery functions
type MAV_BATTERY_FUNCTION int
const (
// Battery function is unknown
MAV_BATTERY_FUNCTION_UNKNOWN MAV_BATTERY_FUNCTION = 0
// Battery supports all flight systems
MAV_BATTERY_FUNCTION_ALL MAV_BATTERY_FUNCTION = 1
// Battery for the propulsion system
MAV_BATTERY_FUNCTION_PROPULSION MAV_BATTERY_FUNCTION = 2
// Avionics battery
MAV_BATTERY_FUNCTION_AVIONICS MAV_BATTERY_FUNCTION = 3
// Payload battery
MAV_BATTERY_TYPE_PAYLOAD MAV_BATTERY_FUNCTION = 4
)
// Enumeration of battery types
type MAV_BATTERY_TYPE int
const (
// Not specified.
MAV_BATTERY_TYPE_UNKNOWN MAV_BATTERY_TYPE = 0
// Lithium polymer battery
MAV_BATTERY_TYPE_LIPO MAV_BATTERY_TYPE = 1
// Lithium-iron-phosphate battery
MAV_BATTERY_TYPE_LIFE MAV_BATTERY_TYPE = 2
// Lithium-ION battery
MAV_BATTERY_TYPE_LION MAV_BATTERY_TYPE = 3
// Nickel metal hydride battery
MAV_BATTERY_TYPE_NIMH MAV_BATTERY_TYPE = 4
)
// 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
type MAV_CMD int
const (
// Navigate to waypoint.
MAV_CMD_NAV_WAYPOINT MAV_CMD = 16
// Loiter around this waypoint an unlimited amount of time
MAV_CMD_NAV_LOITER_UNLIM MAV_CMD = 17
// Loiter around this waypoint for X turns
MAV_CMD_NAV_LOITER_TURNS MAV_CMD = 18
// Loiter around this waypoint for X seconds
MAV_CMD_NAV_LOITER_TIME MAV_CMD = 19
// Return to launch location
MAV_CMD_NAV_RETURN_TO_LAUNCH MAV_CMD = 20
// Land at location.
MAV_CMD_NAV_LAND MAV_CMD = 21
// Takeoff from ground / hand
MAV_CMD_NAV_TAKEOFF MAV_CMD = 22
// Land at local position (local frame only)
MAV_CMD_NAV_LAND_LOCAL MAV_CMD = 23
// Takeoff from local position (local frame only)
MAV_CMD_NAV_TAKEOFF_LOCAL MAV_CMD = 24
// Vehicle following, i.e. this waypoint represents the position of a moving vehicle
MAV_CMD_NAV_FOLLOW MAV_CMD = 25
// 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.
MAV_CMD_NAV_CONTINUE_AND_CHANGE_ALT MAV_CMD = 30
// 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.
MAV_CMD_NAV_LOITER_TO_ALT MAV_CMD = 31
// Begin following a target
MAV_CMD_DO_FOLLOW MAV_CMD = 32
// Reposition the MAV after a follow target command has been sent
MAV_CMD_DO_FOLLOW_REPOSITION MAV_CMD = 33
// Start orbiting on the circumference of a circle defined by the parameters. Setting any value NaN results in using defaults.
MAV_CMD_DO_ORBIT MAV_CMD = 34
// Sets the region of interest (ROI) for a sensor set or the vehicle itself. This can then be used by the vehicles control system to control the vehicle attitude and the attitude of various sensors such as cameras.
MAV_CMD_NAV_ROI MAV_CMD = 80
// Control autonomous path planning on the MAV.
MAV_CMD_NAV_PATHPLANNING MAV_CMD = 81
// Navigate to waypoint using a spline path.
MAV_CMD_NAV_SPLINE_WAYPOINT MAV_CMD = 82
// Takeoff from ground using VTOL mode, and transition to forward flight with specified heading.
MAV_CMD_NAV_VTOL_TAKEOFF MAV_CMD = 84
// Land using VTOL mode
MAV_CMD_NAV_VTOL_LAND MAV_CMD = 85
// hand control over to an external controller
MAV_CMD_NAV_GUIDED_ENABLE MAV_CMD = 92
// Delay the next navigation command a number of seconds or until a specified time
MAV_CMD_NAV_DELAY MAV_CMD = 93
// 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.
MAV_CMD_NAV_PAYLOAD_PLACE MAV_CMD = 94
// NOP - This command is only used to mark the upper limit of the NAV/ACTION commands in the enumeration
MAV_CMD_NAV_LAST MAV_CMD = 95
// Delay mission state machine.
MAV_CMD_CONDITION_DELAY MAV_CMD = 112
// Ascend/descend at rate. Delay mission state machine until desired altitude reached.
MAV_CMD_CONDITION_CHANGE_ALT MAV_CMD = 113
// Delay mission state machine until within desired distance of next NAV point.
MAV_CMD_CONDITION_DISTANCE MAV_CMD = 114
// Reach a certain target angle.
MAV_CMD_CONDITION_YAW MAV_CMD = 115
// NOP - This command is only used to mark the upper limit of the CONDITION commands in the enumeration
MAV_CMD_CONDITION_LAST MAV_CMD = 159
// Set system mode.
MAV_CMD_DO_SET_MODE MAV_CMD = 176
// Jump to the desired command in the mission list. Repeat this action only the specified number of times
MAV_CMD_DO_JUMP MAV_CMD = 177
// Change speed and/or throttle set points.
MAV_CMD_DO_CHANGE_SPEED MAV_CMD = 178
// Changes the home location either to the current location or a specified location.
MAV_CMD_DO_SET_HOME MAV_CMD = 179
// Set a system parameter. Caution! Use of this command requires knowledge of the numeric enumeration value of the parameter.
MAV_CMD_DO_SET_PARAMETER MAV_CMD = 180
// Set a relay to a condition.
MAV_CMD_DO_SET_RELAY MAV_CMD = 181
// Cycle a relay on and off for a desired number of cycles with a desired period.
MAV_CMD_DO_REPEAT_RELAY MAV_CMD = 182
// Set a servo to a desired PWM value.
MAV_CMD_DO_SET_SERVO MAV_CMD = 183
// Cycle a between its nominal setting and a desired PWM for a desired number of cycles with a desired period.
MAV_CMD_DO_REPEAT_SERVO MAV_CMD = 184
// Terminate flight immediately
MAV_CMD_DO_FLIGHTTERMINATION MAV_CMD = 185
// Change altitude set point.
MAV_CMD_DO_CHANGE_ALTITUDE MAV_CMD = 186
// Mission command to perform a landing. This is used as a marker in a mission to tell the autopilot where a sequence of mission items that represents a landing starts. It may also be sent via a COMMAND_LONG to trigger a landing, in which case the nearest (geographically) landing sequence in the mission will be used. The Latitude/Longitude is optional, and may be set to 0 if not needed. If specified then it will be used to help find the closest landing sequence.
MAV_CMD_DO_LAND_START MAV_CMD = 189
// Mission command to perform a landing from a rally point.
MAV_CMD_DO_RALLY_LAND MAV_CMD = 190
// Mission command to safely abort an autonomous landing.
MAV_CMD_DO_GO_AROUND MAV_CMD = 191
// Reposition the vehicle to a specific WGS84 global position.
MAV_CMD_DO_REPOSITION MAV_CMD = 192
// If in a GPS controlled position mode, hold the current position or continue.
MAV_CMD_DO_PAUSE_CONTINUE MAV_CMD = 193
// Set moving direction to forward or reverse.
MAV_CMD_DO_SET_REVERSE MAV_CMD = 194
// Sets the region of interest (ROI) to a location. This can then be used by the vehicles control system to control the vehicle attitude and the attitude of various sensors such as cameras.
MAV_CMD_DO_SET_ROI_LOCATION MAV_CMD = 195
// Sets the region of interest (ROI) to be toward next waypoint, with optional pitch/roll/yaw offset. This can then be used by the vehicles control system to control the vehicle attitude and the attitude of various sensors such as cameras.
MAV_CMD_DO_SET_ROI_WPNEXT_OFFSET MAV_CMD = 196
// Cancels any previous ROI command returning the vehicle/sensors to default flight characteristics. This can then be used by the vehicles control system to control the vehicle attitude and the attitude of various sensors such as cameras.
MAV_CMD_DO_SET_ROI_NONE MAV_CMD = 197
// Mount tracks system with specified system ID. Determination of target vehicle position may be done with GLOBAL_POSITION_INT or any other means.
MAV_CMD_DO_SET_ROI_SYSID MAV_CMD = 198
// Control onboard camera system.
MAV_CMD_DO_CONTROL_VIDEO MAV_CMD = 200
// Sets the region of interest (ROI) for a sensor set or the vehicle itself. This can then be used by the vehicles control system to control the vehicle attitude and the attitude of various sensors such as cameras.
MAV_CMD_DO_SET_ROI MAV_CMD = 201
// 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 ).
MAV_CMD_DO_DIGICAM_CONFIGURE MAV_CMD = 202
// 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 ).
MAV_CMD_DO_DIGICAM_CONTROL MAV_CMD = 203
// Mission command to configure a camera or antenna mount
MAV_CMD_DO_MOUNT_CONFIGURE MAV_CMD = 204
// Mission command to control a camera or antenna mount
MAV_CMD_DO_MOUNT_CONTROL MAV_CMD = 205
// 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.
MAV_CMD_DO_SET_CAM_TRIGG_DIST MAV_CMD = 206
// Mission command to enable the geofence
MAV_CMD_DO_FENCE_ENABLE MAV_CMD = 207
// Mission command to trigger a parachute
MAV_CMD_DO_PARACHUTE MAV_CMD = 208
// Mission command to perform motor test.
MAV_CMD_DO_MOTOR_TEST MAV_CMD = 209
// Change to/from inverted flight.
MAV_CMD_DO_INVERTED_FLIGHT MAV_CMD = 210
// Sets a desired vehicle turn angle and speed change.
MAV_CMD_NAV_SET_YAW_SPEED MAV_CMD = 213
// 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.
MAV_CMD_DO_SET_CAM_TRIGG_INTERVAL MAV_CMD = 214
// Mission command to control a camera or antenna mount, using a quaternion as reference.
MAV_CMD_DO_MOUNT_CONTROL_QUAT MAV_CMD = 220
// set id of master controller
MAV_CMD_DO_GUIDED_MASTER MAV_CMD = 221
// Set limits for external control
MAV_CMD_DO_GUIDED_LIMITS MAV_CMD = 222
// 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
MAV_CMD_DO_ENGINE_CONTROL MAV_CMD = 223
// Set the mission item with sequence number seq as current item. This means that the MAV will continue to this mission item on the shortest path (not following the mission items in-between).
MAV_CMD_DO_SET_MISSION_CURRENT MAV_CMD = 224
// NOP - This command is only used to mark the upper limit of the DO commands in the enumeration
MAV_CMD_DO_LAST MAV_CMD = 240
// 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.
MAV_CMD_PREFLIGHT_CALIBRATION MAV_CMD = 241
// Set sensor offsets. This command will be only accepted if in pre-flight mode.
MAV_CMD_PREFLIGHT_SET_SENSOR_OFFSETS MAV_CMD = 242
// Trigger UAVCAN config. This command will be only accepted if in pre-flight mode.
MAV_CMD_PREFLIGHT_UAVCAN MAV_CMD = 243
// Request storage of different parameter values and logs. This command will be only accepted if in pre-flight mode.
MAV_CMD_PREFLIGHT_STORAGE MAV_CMD = 245
// Request the reboot or shutdown of system components.
MAV_CMD_PREFLIGHT_REBOOT_SHUTDOWN MAV_CMD = 246
// 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.
MAV_CMD_OVERRIDE_GOTO MAV_CMD = 252
// start running a mission
MAV_CMD_MISSION_START MAV_CMD = 300
// Arms / Disarms a component
MAV_CMD_COMPONENT_ARM_DISARM MAV_CMD = 400
// Turns illuminators ON/OFF. An illuminator is a light source that is used for lighting up dark areas external to the sytstem: e.g. a torch or searchlight (as opposed to a light source for illuminating the system itself, e.g. an indicator light).
MAV_CMD_ILLUMINATOR_ON_OFF MAV_CMD = 405
// Request the home position from the vehicle.
MAV_CMD_GET_HOME_POSITION MAV_CMD = 410
// Starts receiver pairing.
MAV_CMD_START_RX_PAIR MAV_CMD = 500
// Request the interval between messages for a particular MAVLink message ID. The receiver should ACK the command and then emit its response in a MESSAGE_INTERVAL message.