5 #ifndef ARDUPILOTMEGA_TESTSUITE_H
6 #define ARDUPILOTMEGA_TESTSUITE_H
12 #ifndef MAVLINK_TEST_ALL
13 #define MAVLINK_TEST_ALL
14 static void mavlink_test_common(uint8_t, uint8_t, mavlink_message_t *last_msg);
15 static void mavlink_test_ardupilotmega(uint8_t, uint8_t, mavlink_message_t *last_msg);
17 static void mavlink_test_all(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
19 mavlink_test_common(system_id, component_id, last_msg);
20 mavlink_test_ardupilotmega(system_id, component_id, last_msg);
24 #include "../common/testsuite.h"
27 static void mavlink_test_sensor_offsets(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
29 mavlink_message_t msg;
33 17.0,963497672,963497880,101.0,129.0,157.0,185.0,213.0,241.0,19107,19211,19315
36 memset(&packet1, 0,
sizeof(packet1));
52 memset(&packet2, 0,
sizeof(packet2));
53 mavlink_msg_sensor_offsets_encode(system_id, component_id, &msg, &packet1);
54 mavlink_msg_sensor_offsets_decode(&msg, &packet2);
57 memset(&packet2, 0,
sizeof(packet2));
58 mavlink_msg_sensor_offsets_pack(system_id, component_id, &msg , packet1.
mag_ofs_x , packet1.
mag_ofs_y , packet1.
mag_ofs_z , packet1.
mag_declination , packet1.
raw_press , packet1.
raw_temp , packet1.
gyro_cal_x , packet1.
gyro_cal_y , packet1.
gyro_cal_z , packet1.
accel_cal_x , packet1.
accel_cal_y , packet1.
accel_cal_z );
59 mavlink_msg_sensor_offsets_decode(&msg, &packet2);
62 memset(&packet2, 0,
sizeof(packet2));
63 mavlink_msg_sensor_offsets_pack_chan(system_id, component_id,
MAVLINK_COMM_0, &msg , packet1.
mag_ofs_x , packet1.
mag_ofs_y , packet1.
mag_ofs_z , packet1.
mag_declination , packet1.
raw_press , packet1.
raw_temp , packet1.
gyro_cal_x , packet1.
gyro_cal_y , packet1.
gyro_cal_z , packet1.
accel_cal_x , packet1.
accel_cal_y , packet1.
accel_cal_z );
64 mavlink_msg_sensor_offsets_decode(&msg, &packet2);
67 memset(&packet2, 0,
sizeof(packet2));
69 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
72 mavlink_msg_sensor_offsets_decode(last_msg, &packet2);
75 memset(&packet2, 0,
sizeof(packet2));
76 mavlink_msg_sensor_offsets_send(
MAVLINK_COMM_1 , packet1.
mag_ofs_x , packet1.
mag_ofs_y , packet1.
mag_ofs_z , packet1.
mag_declination , packet1.
raw_press , packet1.
raw_temp , packet1.
gyro_cal_x , packet1.
gyro_cal_y , packet1.
gyro_cal_z , packet1.
accel_cal_x , packet1.
accel_cal_y , packet1.
accel_cal_z );
77 mavlink_msg_sensor_offsets_decode(last_msg, &packet2);
81 static void mavlink_test_set_mag_offsets(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
83 mavlink_message_t msg;
87 17235,17339,17443,151,218
90 memset(&packet1, 0,
sizeof(packet1));
99 memset(&packet2, 0,
sizeof(packet2));
100 mavlink_msg_set_mag_offsets_encode(system_id, component_id, &msg, &packet1);
101 mavlink_msg_set_mag_offsets_decode(&msg, &packet2);
104 memset(&packet2, 0,
sizeof(packet2));
106 mavlink_msg_set_mag_offsets_decode(&msg, &packet2);
109 memset(&packet2, 0,
sizeof(packet2));
111 mavlink_msg_set_mag_offsets_decode(&msg, &packet2);
114 memset(&packet2, 0,
sizeof(packet2));
116 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
119 mavlink_msg_set_mag_offsets_decode(last_msg, &packet2);
122 memset(&packet2, 0,
sizeof(packet2));
124 mavlink_msg_set_mag_offsets_decode(last_msg, &packet2);
128 static void mavlink_test_meminfo(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
130 mavlink_message_t msg;
137 memset(&packet1, 0,
sizeof(packet1));
143 memset(&packet2, 0,
sizeof(packet2));
144 mavlink_msg_meminfo_encode(system_id, component_id, &msg, &packet1);
145 mavlink_msg_meminfo_decode(&msg, &packet2);
148 memset(&packet2, 0,
sizeof(packet2));
149 mavlink_msg_meminfo_pack(system_id, component_id, &msg , packet1.
brkval , packet1.
freemem );
150 mavlink_msg_meminfo_decode(&msg, &packet2);
153 memset(&packet2, 0,
sizeof(packet2));
155 mavlink_msg_meminfo_decode(&msg, &packet2);
158 memset(&packet2, 0,
sizeof(packet2));
160 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
163 mavlink_msg_meminfo_decode(last_msg, &packet2);
166 memset(&packet2, 0,
sizeof(packet2));
168 mavlink_msg_meminfo_decode(last_msg, &packet2);
172 static void mavlink_test_ap_adc(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
174 mavlink_message_t msg;
178 17235,17339,17443,17547,17651,17755
181 memset(&packet1, 0,
sizeof(packet1));
191 memset(&packet2, 0,
sizeof(packet2));
192 mavlink_msg_ap_adc_encode(system_id, component_id, &msg, &packet1);
193 mavlink_msg_ap_adc_decode(&msg, &packet2);
196 memset(&packet2, 0,
sizeof(packet2));
197 mavlink_msg_ap_adc_pack(system_id, component_id, &msg , packet1.
adc1 , packet1.
adc2 , packet1.
adc3 , packet1.
adc4 , packet1.
adc5 , packet1.
adc6 );
198 mavlink_msg_ap_adc_decode(&msg, &packet2);
201 memset(&packet2, 0,
sizeof(packet2));
203 mavlink_msg_ap_adc_decode(&msg, &packet2);
206 memset(&packet2, 0,
sizeof(packet2));
208 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
211 mavlink_msg_ap_adc_decode(last_msg, &packet2);
214 memset(&packet2, 0,
sizeof(packet2));
216 mavlink_msg_ap_adc_decode(last_msg, &packet2);
220 static void mavlink_test_digicam_configure(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
222 mavlink_message_t msg;
226 17.0,17443,151,218,29,96,163,230,41,108,175
229 memset(&packet1, 0,
sizeof(packet1));
236 packet1.
iso = packet_in.
iso;
244 memset(&packet2, 0,
sizeof(packet2));
245 mavlink_msg_digicam_configure_encode(system_id, component_id, &msg, &packet1);
246 mavlink_msg_digicam_configure_decode(&msg, &packet2);
249 memset(&packet2, 0,
sizeof(packet2));
250 mavlink_msg_digicam_configure_pack(system_id, component_id, &msg , packet1.
target_system , packet1.
target_component , packet1.
mode , packet1.
shutter_speed , packet1.
aperture , packet1.
iso , packet1.
exposure_type , packet1.
command_id , packet1.
engine_cut_off , packet1.
extra_param , packet1.
extra_value );
251 mavlink_msg_digicam_configure_decode(&msg, &packet2);
254 memset(&packet2, 0,
sizeof(packet2));
255 mavlink_msg_digicam_configure_pack_chan(system_id, component_id,
MAVLINK_COMM_0, &msg , packet1.
target_system , packet1.
target_component , packet1.
mode , packet1.
shutter_speed , packet1.
aperture , packet1.
iso , packet1.
exposure_type , packet1.
command_id , packet1.
engine_cut_off , packet1.
extra_param , packet1.
extra_value );
256 mavlink_msg_digicam_configure_decode(&msg, &packet2);
259 memset(&packet2, 0,
sizeof(packet2));
261 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
264 mavlink_msg_digicam_configure_decode(last_msg, &packet2);
267 memset(&packet2, 0,
sizeof(packet2));
268 mavlink_msg_digicam_configure_send(
MAVLINK_COMM_1 , packet1.
target_system , packet1.
target_component , packet1.
mode , packet1.
shutter_speed , packet1.
aperture , packet1.
iso , packet1.
exposure_type , packet1.
command_id , packet1.
engine_cut_off , packet1.
extra_param , packet1.
extra_value );
269 mavlink_msg_digicam_configure_decode(last_msg, &packet2);
273 static void mavlink_test_digicam_control(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
275 mavlink_message_t msg;
279 17.0,17,84,151,218,29,96,163,230,41
282 memset(&packet1, 0,
sizeof(packet1));
296 memset(&packet2, 0,
sizeof(packet2));
297 mavlink_msg_digicam_control_encode(system_id, component_id, &msg, &packet1);
298 mavlink_msg_digicam_control_decode(&msg, &packet2);
301 memset(&packet2, 0,
sizeof(packet2));
302 mavlink_msg_digicam_control_pack(system_id, component_id, &msg , packet1.
target_system , packet1.
target_component , packet1.
session , packet1.
zoom_pos , packet1.
zoom_step , packet1.
focus_lock , packet1.
shot , packet1.
command_id , packet1.
extra_param , packet1.
extra_value );
303 mavlink_msg_digicam_control_decode(&msg, &packet2);
306 memset(&packet2, 0,
sizeof(packet2));
307 mavlink_msg_digicam_control_pack_chan(system_id, component_id,
MAVLINK_COMM_0, &msg , packet1.
target_system , packet1.
target_component , packet1.
session , packet1.
zoom_pos , packet1.
zoom_step , packet1.
focus_lock , packet1.
shot , packet1.
command_id , packet1.
extra_param , packet1.
extra_value );
308 mavlink_msg_digicam_control_decode(&msg, &packet2);
311 memset(&packet2, 0,
sizeof(packet2));
313 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
316 mavlink_msg_digicam_control_decode(last_msg, &packet2);
319 memset(&packet2, 0,
sizeof(packet2));
320 mavlink_msg_digicam_control_send(
MAVLINK_COMM_1 , packet1.
target_system , packet1.
target_component , packet1.
session , packet1.
zoom_pos , packet1.
zoom_step , packet1.
focus_lock , packet1.
shot , packet1.
command_id , packet1.
extra_param , packet1.
extra_value );
321 mavlink_msg_digicam_control_decode(last_msg, &packet2);
325 static void mavlink_test_mount_configure(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
327 mavlink_message_t msg;
334 memset(&packet1, 0,
sizeof(packet1));
344 memset(&packet2, 0,
sizeof(packet2));
345 mavlink_msg_mount_configure_encode(system_id, component_id, &msg, &packet1);
346 mavlink_msg_mount_configure_decode(&msg, &packet2);
349 memset(&packet2, 0,
sizeof(packet2));
351 mavlink_msg_mount_configure_decode(&msg, &packet2);
354 memset(&packet2, 0,
sizeof(packet2));
356 mavlink_msg_mount_configure_decode(&msg, &packet2);
359 memset(&packet2, 0,
sizeof(packet2));
361 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
364 mavlink_msg_mount_configure_decode(last_msg, &packet2);
367 memset(&packet2, 0,
sizeof(packet2));
369 mavlink_msg_mount_configure_decode(last_msg, &packet2);
373 static void mavlink_test_mount_control(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
375 mavlink_message_t msg;
379 963497464,963497672,963497880,41,108,175
382 memset(&packet1, 0,
sizeof(packet1));
392 memset(&packet2, 0,
sizeof(packet2));
393 mavlink_msg_mount_control_encode(system_id, component_id, &msg, &packet1);
394 mavlink_msg_mount_control_decode(&msg, &packet2);
397 memset(&packet2, 0,
sizeof(packet2));
399 mavlink_msg_mount_control_decode(&msg, &packet2);
402 memset(&packet2, 0,
sizeof(packet2));
404 mavlink_msg_mount_control_decode(&msg, &packet2);
407 memset(&packet2, 0,
sizeof(packet2));
409 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
412 mavlink_msg_mount_control_decode(last_msg, &packet2);
415 memset(&packet2, 0,
sizeof(packet2));
417 mavlink_msg_mount_control_decode(last_msg, &packet2);
421 static void mavlink_test_mount_status(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
423 mavlink_message_t msg;
427 963497464,963497672,963497880,41,108
430 memset(&packet1, 0,
sizeof(packet1));
439 memset(&packet2, 0,
sizeof(packet2));
440 mavlink_msg_mount_status_encode(system_id, component_id, &msg, &packet1);
441 mavlink_msg_mount_status_decode(&msg, &packet2);
444 memset(&packet2, 0,
sizeof(packet2));
446 mavlink_msg_mount_status_decode(&msg, &packet2);
449 memset(&packet2, 0,
sizeof(packet2));
451 mavlink_msg_mount_status_decode(&msg, &packet2);
454 memset(&packet2, 0,
sizeof(packet2));
456 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
459 mavlink_msg_mount_status_decode(last_msg, &packet2);
462 memset(&packet2, 0,
sizeof(packet2));
464 mavlink_msg_mount_status_decode(last_msg, &packet2);
468 static void mavlink_test_fence_point(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
470 mavlink_message_t msg;
474 17.0,45.0,29,96,163,230
477 memset(&packet1, 0,
sizeof(packet1));
478 packet1.
lat = packet_in.
lat;
479 packet1.
lng = packet_in.
lng;
482 packet1.
idx = packet_in.
idx;
487 memset(&packet2, 0,
sizeof(packet2));
488 mavlink_msg_fence_point_encode(system_id, component_id, &msg, &packet1);
489 mavlink_msg_fence_point_decode(&msg, &packet2);
492 memset(&packet2, 0,
sizeof(packet2));
494 mavlink_msg_fence_point_decode(&msg, &packet2);
497 memset(&packet2, 0,
sizeof(packet2));
499 mavlink_msg_fence_point_decode(&msg, &packet2);
502 memset(&packet2, 0,
sizeof(packet2));
504 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
507 mavlink_msg_fence_point_decode(last_msg, &packet2);
510 memset(&packet2, 0,
sizeof(packet2));
512 mavlink_msg_fence_point_decode(last_msg, &packet2);
516 static void mavlink_test_fence_fetch_point(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
518 mavlink_message_t msg;
525 memset(&packet1, 0,
sizeof(packet1));
528 packet1.
idx = packet_in.
idx;
532 memset(&packet2, 0,
sizeof(packet2));
533 mavlink_msg_fence_fetch_point_encode(system_id, component_id, &msg, &packet1);
534 mavlink_msg_fence_fetch_point_decode(&msg, &packet2);
537 memset(&packet2, 0,
sizeof(packet2));
539 mavlink_msg_fence_fetch_point_decode(&msg, &packet2);
542 memset(&packet2, 0,
sizeof(packet2));
544 mavlink_msg_fence_fetch_point_decode(&msg, &packet2);
547 memset(&packet2, 0,
sizeof(packet2));
549 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
552 mavlink_msg_fence_fetch_point_decode(last_msg, &packet2);
555 memset(&packet2, 0,
sizeof(packet2));
557 mavlink_msg_fence_fetch_point_decode(last_msg, &packet2);
561 static void mavlink_test_fence_status(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
563 mavlink_message_t msg;
567 963497464,17443,151,218
570 memset(&packet1, 0,
sizeof(packet1));
578 memset(&packet2, 0,
sizeof(packet2));
579 mavlink_msg_fence_status_encode(system_id, component_id, &msg, &packet1);
580 mavlink_msg_fence_status_decode(&msg, &packet2);
583 memset(&packet2, 0,
sizeof(packet2));
585 mavlink_msg_fence_status_decode(&msg, &packet2);
588 memset(&packet2, 0,
sizeof(packet2));
590 mavlink_msg_fence_status_decode(&msg, &packet2);
593 memset(&packet2, 0,
sizeof(packet2));
595 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
598 mavlink_msg_fence_status_decode(last_msg, &packet2);
601 memset(&packet2, 0,
sizeof(packet2));
603 mavlink_msg_fence_status_decode(last_msg, &packet2);
607 static void mavlink_test_ahrs(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
609 mavlink_message_t msg;
613 17.0,45.0,73.0,101.0,129.0,157.0,185.0
616 memset(&packet1, 0,
sizeof(packet1));
627 memset(&packet2, 0,
sizeof(packet2));
628 mavlink_msg_ahrs_encode(system_id, component_id, &msg, &packet1);
629 mavlink_msg_ahrs_decode(&msg, &packet2);
632 memset(&packet2, 0,
sizeof(packet2));
634 mavlink_msg_ahrs_decode(&msg, &packet2);
637 memset(&packet2, 0,
sizeof(packet2));
638 mavlink_msg_ahrs_pack_chan(system_id, component_id,
MAVLINK_COMM_0, &msg , packet1.
omegaIx , packet1.
omegaIy , packet1.
omegaIz , packet1.
accel_weight , packet1.
renorm_val , packet1.
error_rp , packet1.
error_yaw );
639 mavlink_msg_ahrs_decode(&msg, &packet2);
642 memset(&packet2, 0,
sizeof(packet2));
644 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
647 mavlink_msg_ahrs_decode(last_msg, &packet2);
650 memset(&packet2, 0,
sizeof(packet2));
652 mavlink_msg_ahrs_decode(last_msg, &packet2);
656 static void mavlink_test_simstate(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
658 mavlink_message_t msg;
662 17.0,45.0,73.0,101.0,129.0,157.0,185.0,213.0,241.0,963499336,963499544
665 memset(&packet1, 0,
sizeof(packet1));
668 packet1.
yaw = packet_in.
yaw;
675 packet1.
lat = packet_in.
lat;
676 packet1.
lng = packet_in.
lng;
680 memset(&packet2, 0,
sizeof(packet2));
681 mavlink_msg_simstate_encode(system_id, component_id, &msg, &packet1);
682 mavlink_msg_simstate_decode(&msg, &packet2);
685 memset(&packet2, 0,
sizeof(packet2));
686 mavlink_msg_simstate_pack(system_id, component_id, &msg , packet1.
roll , packet1.
pitch , packet1.
yaw , packet1.
xacc , packet1.
yacc , packet1.
zacc , packet1.
xgyro , packet1.
ygyro , packet1.
zgyro , packet1.
lat , packet1.
lng );
687 mavlink_msg_simstate_decode(&msg, &packet2);
690 memset(&packet2, 0,
sizeof(packet2));
691 mavlink_msg_simstate_pack_chan(system_id, component_id,
MAVLINK_COMM_0, &msg , packet1.
roll , packet1.
pitch , packet1.
yaw , packet1.
xacc , packet1.
yacc , packet1.
zacc , packet1.
xgyro , packet1.
ygyro , packet1.
zgyro , packet1.
lat , packet1.
lng );
692 mavlink_msg_simstate_decode(&msg, &packet2);
695 memset(&packet2, 0,
sizeof(packet2));
697 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
700 mavlink_msg_simstate_decode(last_msg, &packet2);
703 memset(&packet2, 0,
sizeof(packet2));
704 mavlink_msg_simstate_send(
MAVLINK_COMM_1 , packet1.
roll , packet1.
pitch , packet1.
yaw , packet1.
xacc , packet1.
yacc , packet1.
zacc , packet1.
xgyro , packet1.
ygyro , packet1.
zgyro , packet1.
lat , packet1.
lng );
705 mavlink_msg_simstate_decode(last_msg, &packet2);
709 static void mavlink_test_hwstatus(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
711 mavlink_message_t msg;
718 memset(&packet1, 0,
sizeof(packet1));
719 packet1.
Vcc = packet_in.
Vcc;
724 memset(&packet2, 0,
sizeof(packet2));
725 mavlink_msg_hwstatus_encode(system_id, component_id, &msg, &packet1);
726 mavlink_msg_hwstatus_decode(&msg, &packet2);
729 memset(&packet2, 0,
sizeof(packet2));
730 mavlink_msg_hwstatus_pack(system_id, component_id, &msg , packet1.
Vcc , packet1.
I2Cerr );
731 mavlink_msg_hwstatus_decode(&msg, &packet2);
734 memset(&packet2, 0,
sizeof(packet2));
736 mavlink_msg_hwstatus_decode(&msg, &packet2);
739 memset(&packet2, 0,
sizeof(packet2));
741 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
744 mavlink_msg_hwstatus_decode(last_msg, &packet2);
747 memset(&packet2, 0,
sizeof(packet2));
749 mavlink_msg_hwstatus_decode(last_msg, &packet2);
753 static void mavlink_test_radio(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
755 mavlink_message_t msg;
759 17235,17339,17,84,151,218,29
762 memset(&packet1, 0,
sizeof(packet1));
773 memset(&packet2, 0,
sizeof(packet2));
774 mavlink_msg_radio_encode(system_id, component_id, &msg, &packet1);
775 mavlink_msg_radio_decode(&msg, &packet2);
778 memset(&packet2, 0,
sizeof(packet2));
780 mavlink_msg_radio_decode(&msg, &packet2);
783 memset(&packet2, 0,
sizeof(packet2));
784 mavlink_msg_radio_pack_chan(system_id, component_id,
MAVLINK_COMM_0, &msg , packet1.
rssi , packet1.
remrssi , packet1.
txbuf , packet1.
noise , packet1.
remnoise , packet1.
rxerrors , packet1.
fixed );
785 mavlink_msg_radio_decode(&msg, &packet2);
788 memset(&packet2, 0,
sizeof(packet2));
790 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
793 mavlink_msg_radio_decode(last_msg, &packet2);
796 memset(&packet2, 0,
sizeof(packet2));
798 mavlink_msg_radio_decode(last_msg, &packet2);
802 static void mavlink_test_limits_status(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
804 mavlink_message_t msg;
808 963497464,963497672,963497880,963498088,18067,187,254,65,132
811 memset(&packet1, 0,
sizeof(packet1));
824 memset(&packet2, 0,
sizeof(packet2));
825 mavlink_msg_limits_status_encode(system_id, component_id, &msg, &packet1);
826 mavlink_msg_limits_status_decode(&msg, &packet2);
829 memset(&packet2, 0,
sizeof(packet2));
830 mavlink_msg_limits_status_pack(system_id, component_id, &msg , packet1.
limits_state , packet1.
last_trigger , packet1.
last_action , packet1.
last_recovery , packet1.
last_clear , packet1.
breach_count , packet1.
mods_enabled , packet1.
mods_required , packet1.
mods_triggered );
831 mavlink_msg_limits_status_decode(&msg, &packet2);
834 memset(&packet2, 0,
sizeof(packet2));
835 mavlink_msg_limits_status_pack_chan(system_id, component_id,
MAVLINK_COMM_0, &msg , packet1.
limits_state , packet1.
last_trigger , packet1.
last_action , packet1.
last_recovery , packet1.
last_clear , packet1.
breach_count , packet1.
mods_enabled , packet1.
mods_required , packet1.
mods_triggered );
836 mavlink_msg_limits_status_decode(&msg, &packet2);
839 memset(&packet2, 0,
sizeof(packet2));
841 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
844 mavlink_msg_limits_status_decode(last_msg, &packet2);
847 memset(&packet2, 0,
sizeof(packet2));
849 mavlink_msg_limits_status_decode(last_msg, &packet2);
853 static void mavlink_test_wind(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
855 mavlink_message_t msg;
862 memset(&packet1, 0,
sizeof(packet1));
869 memset(&packet2, 0,
sizeof(packet2));
870 mavlink_msg_wind_encode(system_id, component_id, &msg, &packet1);
871 mavlink_msg_wind_decode(&msg, &packet2);
874 memset(&packet2, 0,
sizeof(packet2));
875 mavlink_msg_wind_pack(system_id, component_id, &msg , packet1.
direction , packet1.
speed , packet1.
speed_z );
876 mavlink_msg_wind_decode(&msg, &packet2);
879 memset(&packet2, 0,
sizeof(packet2));
881 mavlink_msg_wind_decode(&msg, &packet2);
884 memset(&packet2, 0,
sizeof(packet2));
886 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
889 mavlink_msg_wind_decode(last_msg, &packet2);
892 memset(&packet2, 0,
sizeof(packet2));
894 mavlink_msg_wind_decode(last_msg, &packet2);
898 static void mavlink_test_data16(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
900 mavlink_message_t msg;
904 5,72,{ 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154 }
907 memset(&packet1, 0,
sizeof(packet1));
909 packet1.
len = packet_in.
len;
911 mav_array_memcpy(packet1.
data, packet_in.
data,
sizeof(uint8_t)*16);
914 memset(&packet2, 0,
sizeof(packet2));
915 mavlink_msg_data16_encode(system_id, component_id, &msg, &packet1);
916 mavlink_msg_data16_decode(&msg, &packet2);
919 memset(&packet2, 0,
sizeof(packet2));
920 mavlink_msg_data16_pack(system_id, component_id, &msg , packet1.
type , packet1.
len , packet1.
data );
921 mavlink_msg_data16_decode(&msg, &packet2);
924 memset(&packet2, 0,
sizeof(packet2));
925 mavlink_msg_data16_pack_chan(system_id, component_id,
MAVLINK_COMM_0, &msg , packet1.
type , packet1.
len , packet1.
data );
926 mavlink_msg_data16_decode(&msg, &packet2);
929 memset(&packet2, 0,
sizeof(packet2));
931 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
934 mavlink_msg_data16_decode(last_msg, &packet2);
937 memset(&packet2, 0,
sizeof(packet2));
939 mavlink_msg_data16_decode(last_msg, &packet2);
943 static void mavlink_test_data32(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
945 mavlink_message_t msg;
949 5,72,{ 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 }
952 memset(&packet1, 0,
sizeof(packet1));
954 packet1.
len = packet_in.
len;
956 mav_array_memcpy(packet1.
data, packet_in.
data,
sizeof(uint8_t)*32);
959 memset(&packet2, 0,
sizeof(packet2));
960 mavlink_msg_data32_encode(system_id, component_id, &msg, &packet1);
961 mavlink_msg_data32_decode(&msg, &packet2);
964 memset(&packet2, 0,
sizeof(packet2));
965 mavlink_msg_data32_pack(system_id, component_id, &msg , packet1.
type , packet1.
len , packet1.
data );
966 mavlink_msg_data32_decode(&msg, &packet2);
969 memset(&packet2, 0,
sizeof(packet2));
970 mavlink_msg_data32_pack_chan(system_id, component_id,
MAVLINK_COMM_0, &msg , packet1.
type , packet1.
len , packet1.
data );
971 mavlink_msg_data32_decode(&msg, &packet2);
974 memset(&packet2, 0,
sizeof(packet2));
976 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
979 mavlink_msg_data32_decode(last_msg, &packet2);
982 memset(&packet2, 0,
sizeof(packet2));
984 mavlink_msg_data32_decode(last_msg, &packet2);
988 static void mavlink_test_data64(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
990 mavlink_message_t msg;
994 5,72,{ 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 }
997 memset(&packet1, 0,
sizeof(packet1));
999 packet1.
len = packet_in.
len;
1001 mav_array_memcpy(packet1.
data, packet_in.
data,
sizeof(uint8_t)*64);
1004 memset(&packet2, 0,
sizeof(packet2));
1005 mavlink_msg_data64_encode(system_id, component_id, &msg, &packet1);
1006 mavlink_msg_data64_decode(&msg, &packet2);
1007 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1009 memset(&packet2, 0,
sizeof(packet2));
1010 mavlink_msg_data64_pack(system_id, component_id, &msg , packet1.
type , packet1.
len , packet1.
data );
1011 mavlink_msg_data64_decode(&msg, &packet2);
1012 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1014 memset(&packet2, 0,
sizeof(packet2));
1015 mavlink_msg_data64_pack_chan(system_id, component_id,
MAVLINK_COMM_0, &msg , packet1.
type , packet1.
len , packet1.
data );
1016 mavlink_msg_data64_decode(&msg, &packet2);
1017 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1019 memset(&packet2, 0,
sizeof(packet2));
1021 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
1024 mavlink_msg_data64_decode(last_msg, &packet2);
1025 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1027 memset(&packet2, 0,
sizeof(packet2));
1029 mavlink_msg_data64_decode(last_msg, &packet2);
1030 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1033 static void mavlink_test_data96(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
1035 mavlink_message_t msg;
1039 5,72,{ 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 }
1042 memset(&packet1, 0,
sizeof(packet1));
1044 packet1.
len = packet_in.
len;
1046 mav_array_memcpy(packet1.
data, packet_in.
data,
sizeof(uint8_t)*96);
1049 memset(&packet2, 0,
sizeof(packet2));
1050 mavlink_msg_data96_encode(system_id, component_id, &msg, &packet1);
1051 mavlink_msg_data96_decode(&msg, &packet2);
1052 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1054 memset(&packet2, 0,
sizeof(packet2));
1055 mavlink_msg_data96_pack(system_id, component_id, &msg , packet1.
type , packet1.
len , packet1.
data );
1056 mavlink_msg_data96_decode(&msg, &packet2);
1057 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1059 memset(&packet2, 0,
sizeof(packet2));
1060 mavlink_msg_data96_pack_chan(system_id, component_id,
MAVLINK_COMM_0, &msg , packet1.
type , packet1.
len , packet1.
data );
1061 mavlink_msg_data96_decode(&msg, &packet2);
1062 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1064 memset(&packet2, 0,
sizeof(packet2));
1066 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
1069 mavlink_msg_data96_decode(last_msg, &packet2);
1070 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1072 memset(&packet2, 0,
sizeof(packet2));
1074 mavlink_msg_data96_decode(last_msg, &packet2);
1075 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1078 static void mavlink_test_rangefinder(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
1080 mavlink_message_t msg;
1087 memset(&packet1, 0,
sizeof(packet1));
1093 memset(&packet2, 0,
sizeof(packet2));
1094 mavlink_msg_rangefinder_encode(system_id, component_id, &msg, &packet1);
1095 mavlink_msg_rangefinder_decode(&msg, &packet2);
1096 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1098 memset(&packet2, 0,
sizeof(packet2));
1099 mavlink_msg_rangefinder_pack(system_id, component_id, &msg , packet1.
distance , packet1.
voltage );
1100 mavlink_msg_rangefinder_decode(&msg, &packet2);
1101 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1103 memset(&packet2, 0,
sizeof(packet2));
1105 mavlink_msg_rangefinder_decode(&msg, &packet2);
1106 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1108 memset(&packet2, 0,
sizeof(packet2));
1110 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
1113 mavlink_msg_rangefinder_decode(last_msg, &packet2);
1114 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1116 memset(&packet2, 0,
sizeof(packet2));
1118 mavlink_msg_rangefinder_decode(last_msg, &packet2);
1119 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1122 static void mavlink_test_airspeed_autocal(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
1124 mavlink_message_t msg;
1128 17.0,45.0,73.0,101.0,129.0,157.0,185.0,213.0,241.0,269.0,297.0,325.0
1131 memset(&packet1, 0,
sizeof(packet1));
1132 packet1.
vx = packet_in.
vx;
1133 packet1.
vy = packet_in.
vy;
1134 packet1.
vz = packet_in.
vz;
1141 packet1.
Pax = packet_in.
Pax;
1142 packet1.
Pby = packet_in.
Pby;
1143 packet1.
Pcz = packet_in.
Pcz;
1147 memset(&packet2, 0,
sizeof(packet2));
1148 mavlink_msg_airspeed_autocal_encode(system_id, component_id, &msg, &packet1);
1149 mavlink_msg_airspeed_autocal_decode(&msg, &packet2);
1150 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1152 memset(&packet2, 0,
sizeof(packet2));
1153 mavlink_msg_airspeed_autocal_pack(system_id, component_id, &msg , packet1.
vx , packet1.
vy , packet1.
vz , packet1.
diff_pressure , packet1.
EAS2TAS , packet1.
ratio , packet1.
state_x , packet1.
state_y , packet1.
state_z , packet1.
Pax , packet1.
Pby , packet1.
Pcz );
1154 mavlink_msg_airspeed_autocal_decode(&msg, &packet2);
1155 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1157 memset(&packet2, 0,
sizeof(packet2));
1158 mavlink_msg_airspeed_autocal_pack_chan(system_id, component_id,
MAVLINK_COMM_0, &msg , packet1.
vx , packet1.
vy , packet1.
vz , packet1.
diff_pressure , packet1.
EAS2TAS , packet1.
ratio , packet1.
state_x , packet1.
state_y , packet1.
state_z , packet1.
Pax , packet1.
Pby , packet1.
Pcz );
1159 mavlink_msg_airspeed_autocal_decode(&msg, &packet2);
1160 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1162 memset(&packet2, 0,
sizeof(packet2));
1164 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
1167 mavlink_msg_airspeed_autocal_decode(last_msg, &packet2);
1168 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1170 memset(&packet2, 0,
sizeof(packet2));
1171 mavlink_msg_airspeed_autocal_send(
MAVLINK_COMM_1 , packet1.
vx , packet1.
vy , packet1.
vz , packet1.
diff_pressure , packet1.
EAS2TAS , packet1.
ratio , packet1.
state_x , packet1.
state_y , packet1.
state_z , packet1.
Pax , packet1.
Pby , packet1.
Pcz );
1172 mavlink_msg_airspeed_autocal_decode(last_msg, &packet2);
1173 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1176 static void mavlink_test_rally_point(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
1178 mavlink_message_t msg;
1182 963497464,963497672,17651,17755,17859,175,242,53,120,187
1185 memset(&packet1, 0,
sizeof(packet1));
1186 packet1.
lat = packet_in.
lat;
1187 packet1.
lng = packet_in.
lng;
1188 packet1.
alt = packet_in.
alt;
1193 packet1.
idx = packet_in.
idx;
1199 memset(&packet2, 0,
sizeof(packet2));
1200 mavlink_msg_rally_point_encode(system_id, component_id, &msg, &packet1);
1201 mavlink_msg_rally_point_decode(&msg, &packet2);
1202 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1204 memset(&packet2, 0,
sizeof(packet2));
1205 mavlink_msg_rally_point_pack(system_id, component_id, &msg , packet1.
target_system , packet1.
target_component , packet1.
idx , packet1.
count , packet1.
lat , packet1.
lng , packet1.
alt , packet1.
break_alt , packet1.
land_dir , packet1.
flags );
1206 mavlink_msg_rally_point_decode(&msg, &packet2);
1207 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1209 memset(&packet2, 0,
sizeof(packet2));
1210 mavlink_msg_rally_point_pack_chan(system_id, component_id,
MAVLINK_COMM_0, &msg , packet1.
target_system , packet1.
target_component , packet1.
idx , packet1.
count , packet1.
lat , packet1.
lng , packet1.
alt , packet1.
break_alt , packet1.
land_dir , packet1.
flags );
1211 mavlink_msg_rally_point_decode(&msg, &packet2);
1212 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1214 memset(&packet2, 0,
sizeof(packet2));
1216 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
1219 mavlink_msg_rally_point_decode(last_msg, &packet2);
1220 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1222 memset(&packet2, 0,
sizeof(packet2));
1223 mavlink_msg_rally_point_send(
MAVLINK_COMM_1 , packet1.
target_system , packet1.
target_component , packet1.
idx , packet1.
count , packet1.
lat , packet1.
lng , packet1.
alt , packet1.
break_alt , packet1.
land_dir , packet1.
flags );
1224 mavlink_msg_rally_point_decode(last_msg, &packet2);
1225 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1228 static void mavlink_test_rally_fetch_point(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
1230 mavlink_message_t msg;
1237 memset(&packet1, 0,
sizeof(packet1));
1240 packet1.
idx = packet_in.
idx;
1244 memset(&packet2, 0,
sizeof(packet2));
1245 mavlink_msg_rally_fetch_point_encode(system_id, component_id, &msg, &packet1);
1246 mavlink_msg_rally_fetch_point_decode(&msg, &packet2);
1247 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1249 memset(&packet2, 0,
sizeof(packet2));
1251 mavlink_msg_rally_fetch_point_decode(&msg, &packet2);
1252 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1254 memset(&packet2, 0,
sizeof(packet2));
1256 mavlink_msg_rally_fetch_point_decode(&msg, &packet2);
1257 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1259 memset(&packet2, 0,
sizeof(packet2));
1261 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
1264 mavlink_msg_rally_fetch_point_decode(last_msg, &packet2);
1265 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1267 memset(&packet2, 0,
sizeof(packet2));
1269 mavlink_msg_rally_fetch_point_decode(last_msg, &packet2);
1270 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1273 static void mavlink_test_compassmot_status(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
1275 mavlink_message_t msg;
1279 17.0,45.0,73.0,101.0,18067,18171
1282 memset(&packet1, 0,
sizeof(packet1));
1292 memset(&packet2, 0,
sizeof(packet2));
1293 mavlink_msg_compassmot_status_encode(system_id, component_id, &msg, &packet1);
1294 mavlink_msg_compassmot_status_decode(&msg, &packet2);
1295 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1297 memset(&packet2, 0,
sizeof(packet2));
1299 mavlink_msg_compassmot_status_decode(&msg, &packet2);
1300 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1302 memset(&packet2, 0,
sizeof(packet2));
1304 mavlink_msg_compassmot_status_decode(&msg, &packet2);
1305 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1307 memset(&packet2, 0,
sizeof(packet2));
1309 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
1312 mavlink_msg_compassmot_status_decode(last_msg, &packet2);
1313 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1315 memset(&packet2, 0,
sizeof(packet2));
1317 mavlink_msg_compassmot_status_decode(last_msg, &packet2);
1318 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1321 static void mavlink_test_ahrs2(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
1323 mavlink_message_t msg;
1327 17.0,45.0,73.0,101.0,963498296,963498504
1330 memset(&packet1, 0,
sizeof(packet1));
1333 packet1.
yaw = packet_in.
yaw;
1335 packet1.
lat = packet_in.
lat;
1336 packet1.
lng = packet_in.
lng;
1340 memset(&packet2, 0,
sizeof(packet2));
1341 mavlink_msg_ahrs2_encode(system_id, component_id, &msg, &packet1);
1342 mavlink_msg_ahrs2_decode(&msg, &packet2);
1343 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1345 memset(&packet2, 0,
sizeof(packet2));
1346 mavlink_msg_ahrs2_pack(system_id, component_id, &msg , packet1.
roll , packet1.
pitch , packet1.
yaw , packet1.
altitude , packet1.
lat , packet1.
lng );
1347 mavlink_msg_ahrs2_decode(&msg, &packet2);
1348 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1350 memset(&packet2, 0,
sizeof(packet2));
1352 mavlink_msg_ahrs2_decode(&msg, &packet2);
1353 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1355 memset(&packet2, 0,
sizeof(packet2));
1357 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
1360 mavlink_msg_ahrs2_decode(last_msg, &packet2);
1361 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1363 memset(&packet2, 0,
sizeof(packet2));
1365 mavlink_msg_ahrs2_decode(last_msg, &packet2);
1366 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1369 static void mavlink_test_camera_status(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
1371 mavlink_message_t msg;
1375 93372036854775807ULL,73.0,101.0,129.0,157.0,18483,211,22,89
1378 memset(&packet1, 0,
sizeof(packet1));
1380 packet1.
p1 = packet_in.
p1;
1381 packet1.
p2 = packet_in.
p2;
1382 packet1.
p3 = packet_in.
p3;
1383 packet1.
p4 = packet_in.
p4;
1391 memset(&packet2, 0,
sizeof(packet2));
1392 mavlink_msg_camera_status_encode(system_id, component_id, &msg, &packet1);
1393 mavlink_msg_camera_status_decode(&msg, &packet2);
1394 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1396 memset(&packet2, 0,
sizeof(packet2));
1397 mavlink_msg_camera_status_pack(system_id, component_id, &msg , packet1.
time_usec , packet1.
target_system , packet1.
cam_idx , packet1.
img_idx , packet1.
event_id , packet1.
p1 , packet1.
p2 , packet1.
p3 , packet1.
p4 );
1398 mavlink_msg_camera_status_decode(&msg, &packet2);
1399 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1401 memset(&packet2, 0,
sizeof(packet2));
1402 mavlink_msg_camera_status_pack_chan(system_id, component_id,
MAVLINK_COMM_0, &msg , packet1.
time_usec , packet1.
target_system , packet1.
cam_idx , packet1.
img_idx , packet1.
event_id , packet1.
p1 , packet1.
p2 , packet1.
p3 , packet1.
p4 );
1403 mavlink_msg_camera_status_decode(&msg, &packet2);
1404 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1406 memset(&packet2, 0,
sizeof(packet2));
1408 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
1411 mavlink_msg_camera_status_decode(last_msg, &packet2);
1412 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1414 memset(&packet2, 0,
sizeof(packet2));
1416 mavlink_msg_camera_status_decode(last_msg, &packet2);
1417 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1420 static void mavlink_test_camera_feedback(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
1422 mavlink_message_t msg;
1426 93372036854775807ULL,963497880,963498088,129.0,157.0,185.0,213.0,241.0,269.0,19315,3,70,137
1429 memset(&packet1, 0,
sizeof(packet1));
1431 packet1.
lat = packet_in.
lat;
1432 packet1.
lng = packet_in.
lng;
1437 packet1.
yaw = packet_in.
yaw;
1446 memset(&packet2, 0,
sizeof(packet2));
1447 mavlink_msg_camera_feedback_encode(system_id, component_id, &msg, &packet1);
1448 mavlink_msg_camera_feedback_decode(&msg, &packet2);
1449 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1451 memset(&packet2, 0,
sizeof(packet2));
1452 mavlink_msg_camera_feedback_pack(system_id, component_id, &msg , packet1.
time_usec , packet1.
target_system , packet1.
cam_idx , packet1.
img_idx , packet1.
lat , packet1.
lng , packet1.
alt_msl , packet1.
alt_rel , packet1.
roll , packet1.
pitch , packet1.
yaw , packet1.
foc_len , packet1.
flags );
1453 mavlink_msg_camera_feedback_decode(&msg, &packet2);
1454 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1456 memset(&packet2, 0,
sizeof(packet2));
1457 mavlink_msg_camera_feedback_pack_chan(system_id, component_id,
MAVLINK_COMM_0, &msg , packet1.
time_usec , packet1.
target_system , packet1.
cam_idx , packet1.
img_idx , packet1.
lat , packet1.
lng , packet1.
alt_msl , packet1.
alt_rel , packet1.
roll , packet1.
pitch , packet1.
yaw , packet1.
foc_len , packet1.
flags );
1458 mavlink_msg_camera_feedback_decode(&msg, &packet2);
1459 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1461 memset(&packet2, 0,
sizeof(packet2));
1463 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
1466 mavlink_msg_camera_feedback_decode(last_msg, &packet2);
1467 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1469 memset(&packet2, 0,
sizeof(packet2));
1470 mavlink_msg_camera_feedback_send(
MAVLINK_COMM_1 , packet1.
time_usec , packet1.
target_system , packet1.
cam_idx , packet1.
img_idx , packet1.
lat , packet1.
lng , packet1.
alt_msl , packet1.
alt_rel , packet1.
roll , packet1.
pitch , packet1.
yaw , packet1.
foc_len , packet1.
flags );
1471 mavlink_msg_camera_feedback_decode(last_msg, &packet2);
1472 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1475 static void mavlink_test_battery2(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
1477 mavlink_message_t msg;
1484 memset(&packet1, 0,
sizeof(packet1));
1490 memset(&packet2, 0,
sizeof(packet2));
1491 mavlink_msg_battery2_encode(system_id, component_id, &msg, &packet1);
1492 mavlink_msg_battery2_decode(&msg, &packet2);
1493 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1495 memset(&packet2, 0,
sizeof(packet2));
1497 mavlink_msg_battery2_decode(&msg, &packet2);
1498 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1500 memset(&packet2, 0,
sizeof(packet2));
1502 mavlink_msg_battery2_decode(&msg, &packet2);
1503 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1505 memset(&packet2, 0,
sizeof(packet2));
1507 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
1510 mavlink_msg_battery2_decode(last_msg, &packet2);
1511 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1513 memset(&packet2, 0,
sizeof(packet2));
1515 mavlink_msg_battery2_decode(last_msg, &packet2);
1516 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1519 static void mavlink_test_ahrs3(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
1521 mavlink_message_t msg;
1525 17.0,45.0,73.0,101.0,963498296,963498504,185.0,213.0,241.0,269.0
1528 memset(&packet1, 0,
sizeof(packet1));
1531 packet1.
yaw = packet_in.
yaw;
1533 packet1.
lat = packet_in.
lat;
1534 packet1.
lng = packet_in.
lng;
1535 packet1.
v1 = packet_in.
v1;
1536 packet1.
v2 = packet_in.
v2;
1537 packet1.
v3 = packet_in.
v3;
1538 packet1.
v4 = packet_in.
v4;
1542 memset(&packet2, 0,
sizeof(packet2));
1543 mavlink_msg_ahrs3_encode(system_id, component_id, &msg, &packet1);
1544 mavlink_msg_ahrs3_decode(&msg, &packet2);
1545 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1547 memset(&packet2, 0,
sizeof(packet2));
1548 mavlink_msg_ahrs3_pack(system_id, component_id, &msg , packet1.
roll , packet1.
pitch , packet1.
yaw , packet1.
altitude , packet1.
lat , packet1.
lng , packet1.
v1 , packet1.
v2 , packet1.
v3 , packet1.
v4 );
1549 mavlink_msg_ahrs3_decode(&msg, &packet2);
1550 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1552 memset(&packet2, 0,
sizeof(packet2));
1553 mavlink_msg_ahrs3_pack_chan(system_id, component_id,
MAVLINK_COMM_0, &msg , packet1.
roll , packet1.
pitch , packet1.
yaw , packet1.
altitude , packet1.
lat , packet1.
lng , packet1.
v1 , packet1.
v2 , packet1.
v3 , packet1.
v4 );
1554 mavlink_msg_ahrs3_decode(&msg, &packet2);
1555 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1557 memset(&packet2, 0,
sizeof(packet2));
1559 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
1562 mavlink_msg_ahrs3_decode(last_msg, &packet2);
1563 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1565 memset(&packet2, 0,
sizeof(packet2));
1566 mavlink_msg_ahrs3_send(
MAVLINK_COMM_1 , packet1.
roll , packet1.
pitch , packet1.
yaw , packet1.
altitude , packet1.
lat , packet1.
lng , packet1.
v1 , packet1.
v2 , packet1.
v3 , packet1.
v4 );
1567 mavlink_msg_ahrs3_decode(last_msg, &packet2);
1568 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1571 static void mavlink_test_autopilot_version_request(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
1573 mavlink_message_t msg;
1580 memset(&packet1, 0,
sizeof(packet1));
1586 memset(&packet2, 0,
sizeof(packet2));
1587 mavlink_msg_autopilot_version_request_encode(system_id, component_id, &msg, &packet1);
1588 mavlink_msg_autopilot_version_request_decode(&msg, &packet2);
1589 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1591 memset(&packet2, 0,
sizeof(packet2));
1593 mavlink_msg_autopilot_version_request_decode(&msg, &packet2);
1594 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1596 memset(&packet2, 0,
sizeof(packet2));
1598 mavlink_msg_autopilot_version_request_decode(&msg, &packet2);
1599 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1601 memset(&packet2, 0,
sizeof(packet2));
1603 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
1606 mavlink_msg_autopilot_version_request_decode(last_msg, &packet2);
1607 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1609 memset(&packet2, 0,
sizeof(packet2));
1611 mavlink_msg_autopilot_version_request_decode(last_msg, &packet2);
1612 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1615 static void mavlink_test_led_control(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
1617 mavlink_message_t msg;
1621 5,72,139,206,17,{ 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107 }
1624 memset(&packet1, 0,
sizeof(packet1));
1634 memset(&packet2, 0,
sizeof(packet2));
1635 mavlink_msg_led_control_encode(system_id, component_id, &msg, &packet1);
1636 mavlink_msg_led_control_decode(&msg, &packet2);
1637 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1639 memset(&packet2, 0,
sizeof(packet2));
1641 mavlink_msg_led_control_decode(&msg, &packet2);
1642 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1644 memset(&packet2, 0,
sizeof(packet2));
1646 mavlink_msg_led_control_decode(&msg, &packet2);
1647 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1649 memset(&packet2, 0,
sizeof(packet2));
1651 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
1654 mavlink_msg_led_control_decode(last_msg, &packet2);
1655 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1657 memset(&packet2, 0,
sizeof(packet2));
1659 mavlink_msg_led_control_decode(last_msg, &packet2);
1660 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1663 static void mavlink_test_mag_cal_progress(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
1665 mavlink_message_t msg;
1669 17.0,45.0,73.0,41,108,175,242,53,{ 120, 121, 122, 123, 124, 125, 126, 127, 128, 129 }
1672 memset(&packet1, 0,
sizeof(packet1));
1685 memset(&packet2, 0,
sizeof(packet2));
1686 mavlink_msg_mag_cal_progress_encode(system_id, component_id, &msg, &packet1);
1687 mavlink_msg_mag_cal_progress_decode(&msg, &packet2);
1688 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1690 memset(&packet2, 0,
sizeof(packet2));
1691 mavlink_msg_mag_cal_progress_pack(system_id, component_id, &msg , packet1.
compass_id , packet1.
cal_mask , packet1.
cal_status , packet1.
attempt , packet1.
completion_pct , packet1.
completion_mask , packet1.
direction_x , packet1.
direction_y , packet1.
direction_z );
1692 mavlink_msg_mag_cal_progress_decode(&msg, &packet2);
1693 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1695 memset(&packet2, 0,
sizeof(packet2));
1696 mavlink_msg_mag_cal_progress_pack_chan(system_id, component_id,
MAVLINK_COMM_0, &msg , packet1.
compass_id , packet1.
cal_mask , packet1.
cal_status , packet1.
attempt , packet1.
completion_pct , packet1.
completion_mask , packet1.
direction_x , packet1.
direction_y , packet1.
direction_z );
1697 mavlink_msg_mag_cal_progress_decode(&msg, &packet2);
1698 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1700 memset(&packet2, 0,
sizeof(packet2));
1702 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
1705 mavlink_msg_mag_cal_progress_decode(last_msg, &packet2);
1706 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1708 memset(&packet2, 0,
sizeof(packet2));
1710 mavlink_msg_mag_cal_progress_decode(last_msg, &packet2);
1711 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1714 static void mavlink_test_mag_cal_report(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
1716 mavlink_message_t msg;
1720 17.0,45.0,73.0,101.0,129.0,157.0,185.0,213.0,241.0,269.0,125,192,3,70
1723 memset(&packet1, 0,
sizeof(packet1));
1741 memset(&packet2, 0,
sizeof(packet2));
1742 mavlink_msg_mag_cal_report_encode(system_id, component_id, &msg, &packet1);
1743 mavlink_msg_mag_cal_report_decode(&msg, &packet2);
1744 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1746 memset(&packet2, 0,
sizeof(packet2));
1747 mavlink_msg_mag_cal_report_pack(system_id, component_id, &msg , packet1.
compass_id , packet1.
cal_mask , packet1.
cal_status , packet1.
autosaved , packet1.
fitness , packet1.
ofs_x , packet1.
ofs_y , packet1.
ofs_z , packet1.
diag_x , packet1.
diag_y , packet1.
diag_z , packet1.
offdiag_x , packet1.
offdiag_y , packet1.
offdiag_z );
1748 mavlink_msg_mag_cal_report_decode(&msg, &packet2);
1749 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1751 memset(&packet2, 0,
sizeof(packet2));
1752 mavlink_msg_mag_cal_report_pack_chan(system_id, component_id,
MAVLINK_COMM_0, &msg , packet1.
compass_id , packet1.
cal_mask , packet1.
cal_status , packet1.
autosaved , packet1.
fitness , packet1.
ofs_x , packet1.
ofs_y , packet1.
ofs_z , packet1.
diag_x , packet1.
diag_y , packet1.
diag_z , packet1.
offdiag_x , packet1.
offdiag_y , packet1.
offdiag_z );
1753 mavlink_msg_mag_cal_report_decode(&msg, &packet2);
1754 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1756 memset(&packet2, 0,
sizeof(packet2));
1758 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
1761 mavlink_msg_mag_cal_report_decode(last_msg, &packet2);
1762 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1764 memset(&packet2, 0,
sizeof(packet2));
1765 mavlink_msg_mag_cal_report_send(
MAVLINK_COMM_1 , packet1.
compass_id , packet1.
cal_mask , packet1.
cal_status , packet1.
autosaved , packet1.
fitness , packet1.
ofs_x , packet1.
ofs_y , packet1.
ofs_z , packet1.
diag_x , packet1.
diag_y , packet1.
diag_z , packet1.
offdiag_x , packet1.
offdiag_y , packet1.
offdiag_z );
1766 mavlink_msg_mag_cal_report_decode(last_msg, &packet2);
1767 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1770 static void mavlink_test_ekf_status_report(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
1772 mavlink_message_t msg;
1776 17.0,45.0,73.0,101.0,129.0,18275
1779 memset(&packet1, 0,
sizeof(packet1));
1789 memset(&packet2, 0,
sizeof(packet2));
1790 mavlink_msg_ekf_status_report_encode(system_id, component_id, &msg, &packet1);
1791 mavlink_msg_ekf_status_report_decode(&msg, &packet2);
1792 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1794 memset(&packet2, 0,
sizeof(packet2));
1796 mavlink_msg_ekf_status_report_decode(&msg, &packet2);
1797 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1799 memset(&packet2, 0,
sizeof(packet2));
1801 mavlink_msg_ekf_status_report_decode(&msg, &packet2);
1802 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1804 memset(&packet2, 0,
sizeof(packet2));
1806 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
1809 mavlink_msg_ekf_status_report_decode(last_msg, &packet2);
1810 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1812 memset(&packet2, 0,
sizeof(packet2));
1814 mavlink_msg_ekf_status_report_decode(last_msg, &packet2);
1815 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1818 static void mavlink_test_gimbal_report(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
1820 mavlink_message_t msg;
1824 17.0,45.0,73.0,101.0,129.0,157.0,185.0,213.0,241.0,269.0,125,192
1827 memset(&packet1, 0,
sizeof(packet1));
1843 memset(&packet2, 0,
sizeof(packet2));
1844 mavlink_msg_gimbal_report_encode(system_id, component_id, &msg, &packet1);
1845 mavlink_msg_gimbal_report_decode(&msg, &packet2);
1846 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1848 memset(&packet2, 0,
sizeof(packet2));
1849 mavlink_msg_gimbal_report_pack(system_id, component_id, &msg , packet1.
target_system , packet1.
target_component , packet1.
delta_time , packet1.
delta_angle_x , packet1.
delta_angle_y , packet1.
delta_angle_z , packet1.
delta_velocity_x , packet1.
delta_velocity_y , packet1.
delta_velocity_z , packet1.
joint_roll , packet1.
joint_el , packet1.
joint_az );
1850 mavlink_msg_gimbal_report_decode(&msg, &packet2);
1851 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1853 memset(&packet2, 0,
sizeof(packet2));
1854 mavlink_msg_gimbal_report_pack_chan(system_id, component_id,
MAVLINK_COMM_0, &msg , packet1.
target_system , packet1.
target_component , packet1.
delta_time , packet1.
delta_angle_x , packet1.
delta_angle_y , packet1.
delta_angle_z , packet1.
delta_velocity_x , packet1.
delta_velocity_y , packet1.
delta_velocity_z , packet1.
joint_roll , packet1.
joint_el , packet1.
joint_az );
1855 mavlink_msg_gimbal_report_decode(&msg, &packet2);
1856 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1858 memset(&packet2, 0,
sizeof(packet2));
1860 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
1863 mavlink_msg_gimbal_report_decode(last_msg, &packet2);
1864 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1866 memset(&packet2, 0,
sizeof(packet2));
1867 mavlink_msg_gimbal_report_send(
MAVLINK_COMM_1 , packet1.
target_system , packet1.
target_component , packet1.
delta_time , packet1.
delta_angle_x , packet1.
delta_angle_y , packet1.
delta_angle_z , packet1.
delta_velocity_x , packet1.
delta_velocity_y , packet1.
delta_velocity_z , packet1.
joint_roll , packet1.
joint_el , packet1.
joint_az );
1868 mavlink_msg_gimbal_report_decode(last_msg, &packet2);
1869 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1872 static void mavlink_test_gimbal_control(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
1874 mavlink_message_t msg;
1878 17.0,45.0,73.0,41,108
1881 memset(&packet1, 0,
sizeof(packet1));
1890 memset(&packet2, 0,
sizeof(packet2));
1891 mavlink_msg_gimbal_control_encode(system_id, component_id, &msg, &packet1);
1892 mavlink_msg_gimbal_control_decode(&msg, &packet2);
1893 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1895 memset(&packet2, 0,
sizeof(packet2));
1897 mavlink_msg_gimbal_control_decode(&msg, &packet2);
1898 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1900 memset(&packet2, 0,
sizeof(packet2));
1902 mavlink_msg_gimbal_control_decode(&msg, &packet2);
1903 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1905 memset(&packet2, 0,
sizeof(packet2));
1907 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
1910 mavlink_msg_gimbal_control_decode(last_msg, &packet2);
1911 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1913 memset(&packet2, 0,
sizeof(packet2));
1915 mavlink_msg_gimbal_control_decode(last_msg, &packet2);
1916 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1919 static void mavlink_test_gimbal_reset(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
1921 mavlink_message_t msg;
1928 memset(&packet1, 0,
sizeof(packet1));
1934 memset(&packet2, 0,
sizeof(packet2));
1935 mavlink_msg_gimbal_reset_encode(system_id, component_id, &msg, &packet1);
1936 mavlink_msg_gimbal_reset_decode(&msg, &packet2);
1937 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1939 memset(&packet2, 0,
sizeof(packet2));
1941 mavlink_msg_gimbal_reset_decode(&msg, &packet2);
1942 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1944 memset(&packet2, 0,
sizeof(packet2));
1946 mavlink_msg_gimbal_reset_decode(&msg, &packet2);
1947 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1949 memset(&packet2, 0,
sizeof(packet2));
1951 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
1954 mavlink_msg_gimbal_reset_decode(last_msg, &packet2);
1955 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1957 memset(&packet2, 0,
sizeof(packet2));
1959 mavlink_msg_gimbal_reset_decode(last_msg, &packet2);
1960 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1963 static void mavlink_test_gimbal_axis_calibration_progress(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
1965 mavlink_message_t msg;
1972 memset(&packet1, 0,
sizeof(packet1));
1979 memset(&packet2, 0,
sizeof(packet2));
1980 mavlink_msg_gimbal_axis_calibration_progress_encode(system_id, component_id, &msg, &packet1);
1981 mavlink_msg_gimbal_axis_calibration_progress_decode(&msg, &packet2);
1982 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1984 memset(&packet2, 0,
sizeof(packet2));
1986 mavlink_msg_gimbal_axis_calibration_progress_decode(&msg, &packet2);
1987 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1989 memset(&packet2, 0,
sizeof(packet2));
1991 mavlink_msg_gimbal_axis_calibration_progress_decode(&msg, &packet2);
1992 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1994 memset(&packet2, 0,
sizeof(packet2));
1996 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
1999 mavlink_msg_gimbal_axis_calibration_progress_decode(last_msg, &packet2);
2000 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2002 memset(&packet2, 0,
sizeof(packet2));
2004 mavlink_msg_gimbal_axis_calibration_progress_decode(last_msg, &packet2);
2005 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2008 static void mavlink_test_gimbal_set_home_offsets(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
2010 mavlink_message_t msg;
2017 memset(&packet1, 0,
sizeof(packet1));
2023 memset(&packet2, 0,
sizeof(packet2));
2024 mavlink_msg_gimbal_set_home_offsets_encode(system_id, component_id, &msg, &packet1);
2025 mavlink_msg_gimbal_set_home_offsets_decode(&msg, &packet2);
2026 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2028 memset(&packet2, 0,
sizeof(packet2));
2030 mavlink_msg_gimbal_set_home_offsets_decode(&msg, &packet2);
2031 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2033 memset(&packet2, 0,
sizeof(packet2));
2035 mavlink_msg_gimbal_set_home_offsets_decode(&msg, &packet2);
2036 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2038 memset(&packet2, 0,
sizeof(packet2));
2040 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
2043 mavlink_msg_gimbal_set_home_offsets_decode(last_msg, &packet2);
2044 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2046 memset(&packet2, 0,
sizeof(packet2));
2048 mavlink_msg_gimbal_set_home_offsets_decode(last_msg, &packet2);
2049 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2052 static void mavlink_test_gimbal_home_offset_calibration_result(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
2054 mavlink_message_t msg;
2061 memset(&packet1, 0,
sizeof(packet1));
2066 memset(&packet2, 0,
sizeof(packet2));
2067 mavlink_msg_gimbal_home_offset_calibration_result_encode(system_id, component_id, &msg, &packet1);
2068 mavlink_msg_gimbal_home_offset_calibration_result_decode(&msg, &packet2);
2069 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2071 memset(&packet2, 0,
sizeof(packet2));
2072 mavlink_msg_gimbal_home_offset_calibration_result_pack(system_id, component_id, &msg , packet1.
calibration_result );
2073 mavlink_msg_gimbal_home_offset_calibration_result_decode(&msg, &packet2);
2074 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2076 memset(&packet2, 0,
sizeof(packet2));
2078 mavlink_msg_gimbal_home_offset_calibration_result_decode(&msg, &packet2);
2079 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2081 memset(&packet2, 0,
sizeof(packet2));
2083 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
2086 mavlink_msg_gimbal_home_offset_calibration_result_decode(last_msg, &packet2);
2087 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2089 memset(&packet2, 0,
sizeof(packet2));
2091 mavlink_msg_gimbal_home_offset_calibration_result_decode(last_msg, &packet2);
2092 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2095 static void mavlink_test_gimbal_set_factory_parameters(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
2097 mavlink_message_t msg;
2101 963497464,963497672,963497880,963498088,963498296,963498504,18483,211,22,89,156,223,34,101
2104 memset(&packet1, 0,
sizeof(packet1));
2122 memset(&packet2, 0,
sizeof(packet2));
2123 mavlink_msg_gimbal_set_factory_parameters_encode(system_id, component_id, &msg, &packet1);
2124 mavlink_msg_gimbal_set_factory_parameters_decode(&msg, &packet2);
2125 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2127 memset(&packet2, 0,
sizeof(packet2));
2128 mavlink_msg_gimbal_set_factory_parameters_pack(system_id, component_id, &msg , packet1.
target_system , packet1.
target_component , packet1.
magic_1 , packet1.
magic_2 , packet1.
magic_3 , packet1.
assembly_year , packet1.
assembly_month , packet1.
assembly_day , packet1.
assembly_hour , packet1.
assembly_minute , packet1.
assembly_second , packet1.
serial_number_pt_1 , packet1.
serial_number_pt_2 , packet1.
serial_number_pt_3 );
2129 mavlink_msg_gimbal_set_factory_parameters_decode(&msg, &packet2);
2130 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2132 memset(&packet2, 0,
sizeof(packet2));
2133 mavlink_msg_gimbal_set_factory_parameters_pack_chan(system_id, component_id,
MAVLINK_COMM_0, &msg , packet1.
target_system , packet1.
target_component , packet1.
magic_1 , packet1.
magic_2 , packet1.
magic_3 , packet1.
assembly_year , packet1.
assembly_month , packet1.
assembly_day , packet1.
assembly_hour , packet1.
assembly_minute , packet1.
assembly_second , packet1.
serial_number_pt_1 , packet1.
serial_number_pt_2 , packet1.
serial_number_pt_3 );
2134 mavlink_msg_gimbal_set_factory_parameters_decode(&msg, &packet2);
2135 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2137 memset(&packet2, 0,
sizeof(packet2));
2139 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
2142 mavlink_msg_gimbal_set_factory_parameters_decode(last_msg, &packet2);
2143 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2145 memset(&packet2, 0,
sizeof(packet2));
2146 mavlink_msg_gimbal_set_factory_parameters_send(
MAVLINK_COMM_1 , packet1.
target_system , packet1.
target_component , packet1.
magic_1 , packet1.
magic_2 , packet1.
magic_3 , packet1.
assembly_year , packet1.
assembly_month , packet1.
assembly_day , packet1.
assembly_hour , packet1.
assembly_minute , packet1.
assembly_second , packet1.
serial_number_pt_1 , packet1.
serial_number_pt_2 , packet1.
serial_number_pt_3 );
2147 mavlink_msg_gimbal_set_factory_parameters_decode(last_msg, &packet2);
2148 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2151 static void mavlink_test_gimbal_factory_parameters_loaded(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
2153 mavlink_message_t msg;
2160 memset(&packet1, 0,
sizeof(packet1));
2165 memset(&packet2, 0,
sizeof(packet2));
2166 mavlink_msg_gimbal_factory_parameters_loaded_encode(system_id, component_id, &msg, &packet1);
2167 mavlink_msg_gimbal_factory_parameters_loaded_decode(&msg, &packet2);
2168 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2170 memset(&packet2, 0,
sizeof(packet2));
2171 mavlink_msg_gimbal_factory_parameters_loaded_pack(system_id, component_id, &msg , packet1.
dummy );
2172 mavlink_msg_gimbal_factory_parameters_loaded_decode(&msg, &packet2);
2173 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2175 memset(&packet2, 0,
sizeof(packet2));
2176 mavlink_msg_gimbal_factory_parameters_loaded_pack_chan(system_id, component_id,
MAVLINK_COMM_0, &msg , packet1.
dummy );
2177 mavlink_msg_gimbal_factory_parameters_loaded_decode(&msg, &packet2);
2178 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2180 memset(&packet2, 0,
sizeof(packet2));
2182 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
2185 mavlink_msg_gimbal_factory_parameters_loaded_decode(last_msg, &packet2);
2186 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2188 memset(&packet2, 0,
sizeof(packet2));
2190 mavlink_msg_gimbal_factory_parameters_loaded_decode(last_msg, &packet2);
2191 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2194 static void mavlink_test_gimbal_erase_firmware_and_config(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
2196 mavlink_message_t msg;
2203 memset(&packet1, 0,
sizeof(packet1));
2210 memset(&packet2, 0,
sizeof(packet2));
2211 mavlink_msg_gimbal_erase_firmware_and_config_encode(system_id, component_id, &msg, &packet1);
2212 mavlink_msg_gimbal_erase_firmware_and_config_decode(&msg, &packet2);
2213 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2215 memset(&packet2, 0,
sizeof(packet2));
2217 mavlink_msg_gimbal_erase_firmware_and_config_decode(&msg, &packet2);
2218 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2220 memset(&packet2, 0,
sizeof(packet2));
2222 mavlink_msg_gimbal_erase_firmware_and_config_decode(&msg, &packet2);
2223 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2225 memset(&packet2, 0,
sizeof(packet2));
2227 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
2230 mavlink_msg_gimbal_erase_firmware_and_config_decode(last_msg, &packet2);
2231 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2233 memset(&packet2, 0,
sizeof(packet2));
2235 mavlink_msg_gimbal_erase_firmware_and_config_decode(last_msg, &packet2);
2236 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2239 static void mavlink_test_gimbal_perform_factory_tests(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
2241 mavlink_message_t msg;
2248 memset(&packet1, 0,
sizeof(packet1));
2254 memset(&packet2, 0,
sizeof(packet2));
2255 mavlink_msg_gimbal_perform_factory_tests_encode(system_id, component_id, &msg, &packet1);
2256 mavlink_msg_gimbal_perform_factory_tests_decode(&msg, &packet2);
2257 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2259 memset(&packet2, 0,
sizeof(packet2));
2261 mavlink_msg_gimbal_perform_factory_tests_decode(&msg, &packet2);
2262 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2264 memset(&packet2, 0,
sizeof(packet2));
2266 mavlink_msg_gimbal_perform_factory_tests_decode(&msg, &packet2);
2267 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2269 memset(&packet2, 0,
sizeof(packet2));
2271 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
2274 mavlink_msg_gimbal_perform_factory_tests_decode(last_msg, &packet2);
2275 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2277 memset(&packet2, 0,
sizeof(packet2));
2279 mavlink_msg_gimbal_perform_factory_tests_decode(last_msg, &packet2);
2280 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2283 static void mavlink_test_gimbal_report_factory_tests_progress(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
2285 mavlink_message_t msg;
2292 memset(&packet1, 0,
sizeof(packet1));
2300 memset(&packet2, 0,
sizeof(packet2));
2301 mavlink_msg_gimbal_report_factory_tests_progress_encode(system_id, component_id, &msg, &packet1);
2302 mavlink_msg_gimbal_report_factory_tests_progress_decode(&msg, &packet2);
2303 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2305 memset(&packet2, 0,
sizeof(packet2));
2307 mavlink_msg_gimbal_report_factory_tests_progress_decode(&msg, &packet2);
2308 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2310 memset(&packet2, 0,
sizeof(packet2));
2312 mavlink_msg_gimbal_report_factory_tests_progress_decode(&msg, &packet2);
2313 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2315 memset(&packet2, 0,
sizeof(packet2));
2317 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
2320 mavlink_msg_gimbal_report_factory_tests_progress_decode(last_msg, &packet2);
2321 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2323 memset(&packet2, 0,
sizeof(packet2));
2325 mavlink_msg_gimbal_report_factory_tests_progress_decode(last_msg, &packet2);
2326 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2329 static void mavlink_test_gopro_power_on(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
2331 mavlink_message_t msg;
2338 memset(&packet1, 0,
sizeof(packet1));
2344 memset(&packet2, 0,
sizeof(packet2));
2345 mavlink_msg_gopro_power_on_encode(system_id, component_id, &msg, &packet1);
2346 mavlink_msg_gopro_power_on_decode(&msg, &packet2);
2347 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2349 memset(&packet2, 0,
sizeof(packet2));
2351 mavlink_msg_gopro_power_on_decode(&msg, &packet2);
2352 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2354 memset(&packet2, 0,
sizeof(packet2));
2356 mavlink_msg_gopro_power_on_decode(&msg, &packet2);
2357 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2359 memset(&packet2, 0,
sizeof(packet2));
2361 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
2364 mavlink_msg_gopro_power_on_decode(last_msg, &packet2);
2365 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2367 memset(&packet2, 0,
sizeof(packet2));
2369 mavlink_msg_gopro_power_on_decode(last_msg, &packet2);
2370 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2373 static void mavlink_test_gopro_power_off(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
2375 mavlink_message_t msg;
2382 memset(&packet1, 0,
sizeof(packet1));
2388 memset(&packet2, 0,
sizeof(packet2));
2389 mavlink_msg_gopro_power_off_encode(system_id, component_id, &msg, &packet1);
2390 mavlink_msg_gopro_power_off_decode(&msg, &packet2);
2391 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2393 memset(&packet2, 0,
sizeof(packet2));
2395 mavlink_msg_gopro_power_off_decode(&msg, &packet2);
2396 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2398 memset(&packet2, 0,
sizeof(packet2));
2400 mavlink_msg_gopro_power_off_decode(&msg, &packet2);
2401 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2403 memset(&packet2, 0,
sizeof(packet2));
2405 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
2408 mavlink_msg_gopro_power_off_decode(last_msg, &packet2);
2409 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2411 memset(&packet2, 0,
sizeof(packet2));
2413 mavlink_msg_gopro_power_off_decode(last_msg, &packet2);
2414 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2417 static void mavlink_test_gopro_command(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
2419 mavlink_message_t msg;
2426 memset(&packet1, 0,
sizeof(packet1));
2435 memset(&packet2, 0,
sizeof(packet2));
2436 mavlink_msg_gopro_command_encode(system_id, component_id, &msg, &packet1);
2437 mavlink_msg_gopro_command_decode(&msg, &packet2);
2438 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2440 memset(&packet2, 0,
sizeof(packet2));
2442 mavlink_msg_gopro_command_decode(&msg, &packet2);
2443 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2445 memset(&packet2, 0,
sizeof(packet2));
2447 mavlink_msg_gopro_command_decode(&msg, &packet2);
2448 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2450 memset(&packet2, 0,
sizeof(packet2));
2452 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
2455 mavlink_msg_gopro_command_decode(last_msg, &packet2);
2456 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2458 memset(&packet2, 0,
sizeof(packet2));
2460 mavlink_msg_gopro_command_decode(last_msg, &packet2);
2461 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2464 static void mavlink_test_gopro_response(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
2466 mavlink_message_t msg;
2473 memset(&packet1, 0,
sizeof(packet1));
2482 memset(&packet2, 0,
sizeof(packet2));
2483 mavlink_msg_gopro_response_encode(system_id, component_id, &msg, &packet1);
2484 mavlink_msg_gopro_response_decode(&msg, &packet2);
2485 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2487 memset(&packet2, 0,
sizeof(packet2));
2489 mavlink_msg_gopro_response_decode(&msg, &packet2);
2490 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2492 memset(&packet2, 0,
sizeof(packet2));
2494 mavlink_msg_gopro_response_decode(&msg, &packet2);
2495 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2497 memset(&packet2, 0,
sizeof(packet2));
2499 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
2502 mavlink_msg_gopro_response_decode(last_msg, &packet2);
2503 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2505 memset(&packet2, 0,
sizeof(packet2));
2507 mavlink_msg_gopro_response_decode(last_msg, &packet2);
2508 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2511 static void mavlink_test_ardupilotmega(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
2513 mavlink_test_sensor_offsets(system_id, component_id, last_msg);
2514 mavlink_test_set_mag_offsets(system_id, component_id, last_msg);
2515 mavlink_test_meminfo(system_id, component_id, last_msg);
2516 mavlink_test_ap_adc(system_id, component_id, last_msg);
2517 mavlink_test_digicam_configure(system_id, component_id, last_msg);
2518 mavlink_test_digicam_control(system_id, component_id, last_msg);
2519 mavlink_test_mount_configure(system_id, component_id, last_msg);
2520 mavlink_test_mount_control(system_id, component_id, last_msg);
2521 mavlink_test_mount_status(system_id, component_id, last_msg);
2522 mavlink_test_fence_point(system_id, component_id, last_msg);
2523 mavlink_test_fence_fetch_point(system_id, component_id, last_msg);
2524 mavlink_test_fence_status(system_id, component_id, last_msg);
2525 mavlink_test_ahrs(system_id, component_id, last_msg);
2526 mavlink_test_simstate(system_id, component_id, last_msg);
2527 mavlink_test_hwstatus(system_id, component_id, last_msg);
2528 mavlink_test_radio(system_id, component_id, last_msg);
2529 mavlink_test_limits_status(system_id, component_id, last_msg);
2530 mavlink_test_wind(system_id, component_id, last_msg);
2531 mavlink_test_data16(system_id, component_id, last_msg);
2532 mavlink_test_data32(system_id, component_id, last_msg);
2533 mavlink_test_data64(system_id, component_id, last_msg);
2534 mavlink_test_data96(system_id, component_id, last_msg);
2535 mavlink_test_rangefinder(system_id, component_id, last_msg);
2536 mavlink_test_airspeed_autocal(system_id, component_id, last_msg);
2537 mavlink_test_rally_point(system_id, component_id, last_msg);
2538 mavlink_test_rally_fetch_point(system_id, component_id, last_msg);
2539 mavlink_test_compassmot_status(system_id, component_id, last_msg);
2540 mavlink_test_ahrs2(system_id, component_id, last_msg);
2541 mavlink_test_camera_status(system_id, component_id, last_msg);
2542 mavlink_test_camera_feedback(system_id, component_id, last_msg);
2543 mavlink_test_battery2(system_id, component_id, last_msg);
2544 mavlink_test_ahrs3(system_id, component_id, last_msg);
2545 mavlink_test_autopilot_version_request(system_id, component_id, last_msg);
2546 mavlink_test_led_control(system_id, component_id, last_msg);
2547 mavlink_test_mag_cal_progress(system_id, component_id, last_msg);
2548 mavlink_test_mag_cal_report(system_id, component_id, last_msg);
2549 mavlink_test_ekf_status_report(system_id, component_id, last_msg);
2550 mavlink_test_gimbal_report(system_id, component_id, last_msg);
2551 mavlink_test_gimbal_control(system_id, component_id, last_msg);
2552 mavlink_test_gimbal_reset(system_id, component_id, last_msg);
2553 mavlink_test_gimbal_axis_calibration_progress(system_id, component_id, last_msg);
2554 mavlink_test_gimbal_set_home_offsets(system_id, component_id, last_msg);
2555 mavlink_test_gimbal_home_offset_calibration_result(system_id, component_id, last_msg);
2556 mavlink_test_gimbal_set_factory_parameters(system_id, component_id, last_msg);
2557 mavlink_test_gimbal_factory_parameters_loaded(system_id, component_id, last_msg);
2558 mavlink_test_gimbal_erase_firmware_and_config(system_id, component_id, last_msg);
2559 mavlink_test_gimbal_perform_factory_tests(system_id, component_id, last_msg);
2560 mavlink_test_gimbal_report_factory_tests_progress(system_id, component_id, last_msg);
2561 mavlink_test_gopro_power_on(system_id, component_id, last_msg);
2562 mavlink_test_gopro_power_off(system_id, component_id, last_msg);
2563 mavlink_test_gopro_command(system_id, component_id, last_msg);
2564 mavlink_test_gopro_response(system_id, component_id, last_msg);
2569 #endif // __cplusplus
2570 #endif // ARDUPILOTMEGA_TESTSUITE_H
uint8_t test_section
Which section of the test is currently running. The meaning of this is test-dependent.
Definition: mavlink_msg_gimbal_report_factory_tests_progress.h:8
uint8_t target_system
System ID.
Definition: mavlink_msg_gimbal_report.h:17
Definition: mavlink_msg_gimbal_home_offset_calibration_result.h:5
Definition: mavlink_types.h:180
float accel_cal_z
accel Z calibration
Definition: mavlink_msg_sensor_offsets.h:15
float p4
Parameter 4 (meaning depends on event, see CAMERA_STATUS_TYPES enum)
Definition: mavlink_msg_camera_status.h:11
uint8_t target_system
System ID.
Definition: mavlink_msg_gopro_power_on.h:7
uint16_t throttle
throttle (percent*10)
Definition: mavlink_msg_compassmot_status.h:11
Definition: mavlink_msg_fence_fetch_point.h:5
Definition: mavlink_msg_gimbal_set_factory_parameters.h:5
Definition: mavlink_types.h:179
uint8_t len
data length
Definition: mavlink_msg_data32.h:8
Definition: mavlink_msg_gopro_command.h:5
float Pcz
EKF Pcz.
Definition: mavlink_msg_airspeed_autocal.h:18
uint16_t flags
Flags.
Definition: mavlink_msg_ekf_status_report.h:12
uint8_t target_system
System ID.
Definition: mavlink_msg_set_mag_offsets.h:10
Definition: mavlink_msg_data32.h:5
uint8_t target_system
System ID.
Definition: mavlink_msg_digicam_control.h:8
uint8_t target_component
Component ID.
Definition: mavlink_msg_fence_fetch_point.h:8
float gyro_cal_y
gyro Y calibration
Definition: mavlink_msg_sensor_offsets.h:11
float joint_az
Joint AZ (radians)
Definition: mavlink_msg_gimbal_report.h:16
uint8_t target_system
System ID.
Definition: mavlink_msg_gimbal_reset.h:7
uint8_t cal_mask
Bitmask of compasses being calibrated.
Definition: mavlink_msg_mag_cal_progress.h:11
uint8_t assembly_month
Assembly Date Month.
Definition: mavlink_msg_gimbal_set_factory_parameters.h:16
uint8_t instance
Instance (LED instance to control or 255 for all LEDs)
Definition: mavlink_msg_led_control.h:9
uint8_t target_system
System ID.
Definition: mavlink_msg_mount_control.h:10
float delta_time
Time since last update (seconds)
Definition: mavlink_msg_gimbal_report.h:7
float pos_horiz_variance
Horizontal Position variance.
Definition: mavlink_msg_ekf_status_report.h:8
float delta_velocity_y
Delta velocity Y (m/s)
Definition: mavlink_msg_gimbal_report.h:12
uint8_t idx
point index (first point is 0)
Definition: mavlink_msg_rally_fetch_point.h:9
Definition: mavlink_msg_fence_status.h:5
int16_t current_battery
Battery current, in 10*milliamperes (1 = 10 milliampere), -1: autopilot does not measure the current...
Definition: mavlink_msg_battery2.h:8
uint16_t rxerrors
receive errors
Definition: mavlink_msg_radio.h:7
uint8_t shot
0: ignore, 1: shot or start filming
Definition: mavlink_msg_digicam_control.h:14
uint16_t adc5
ADC output 5.
Definition: mavlink_msg_ap_adc.h:11
Definition: mavlink_msg_compassmot_status.h:5
uint8_t len
data length
Definition: mavlink_msg_data96.h:8
uint32_t last_recovery
time of last successful recovery in milliseconds since boot
Definition: mavlink_msg_limits_status.h:9
int32_t input_c
yaw(deg*100) or alt (in cm) depending on mount mode
Definition: mavlink_msg_mount_control.h:9
uint32_t knock
Knock value to confirm this is a valid request.
Definition: mavlink_msg_gimbal_erase_firmware_and_config.h:7
float EAS2TAS
Estimated to true airspeed ratio.
Definition: mavlink_msg_airspeed_autocal.h:11
float ofs_z
Z offset.
Definition: mavlink_msg_mag_cal_report.h:10
uint8_t cam_idx
Camera ID.
Definition: mavlink_msg_camera_status.h:14
Definition: mavlink_msg_set_mag_offsets.h:5
float ratio
Airspeed ratio.
Definition: mavlink_msg_airspeed_autocal.h:12
float offdiag_y
Y off-diagonal (matrix 13 and 31)
Definition: mavlink_msg_mag_cal_report.h:15
float yaw
Camera Yaw (earth frame, degrees, 0-360, true)
Definition: mavlink_msg_camera_feedback.h:14
float roll
Camera Roll angle (earth frame, degrees, +-180)
Definition: mavlink_msg_camera_feedback.h:12
float diag_x
X diagonal (matrix 11)
Definition: mavlink_msg_mag_cal_report.h:11
float error_rp
average error_roll_pitch value
Definition: mavlink_msg_ahrs.h:12
uint8_t data[32]
raw data
Definition: mavlink_msg_data32.h:9
float voltage
raw voltage if available, zero otherwise
Definition: mavlink_msg_rangefinder.h:8
float delta_velocity_x
Delta velocity X (m/s)
Definition: mavlink_msg_gimbal_report.h:11
uint8_t target_component
Component ID.
Definition: mavlink_msg_mount_control.h:11
float pitch
Camera Pitch angle (earth frame, degrees, +-180)
Definition: mavlink_msg_camera_feedback.h:13
uint8_t target_component
Component ID.
Definition: mavlink_msg_gimbal_set_factory_parameters.h:15
float fitness
RMS milligauss residuals.
Definition: mavlink_msg_mag_cal_report.h:7
float pitch
Pitch angle (rad)
Definition: mavlink_msg_simstate.h:8
float ofs_x
X offset.
Definition: mavlink_msg_mag_cal_report.h:8
uint8_t assembly_second
Assembly Time Second.
Definition: mavlink_msg_gimbal_set_factory_parameters.h:20
int32_t lat
Latitude in degrees * 1E7.
Definition: mavlink_msg_simstate.h:16
uint32_t magic_2
Magic number 2 for validation.
Definition: mavlink_msg_gimbal_set_factory_parameters.h:8
uint8_t target_system
System ID.
Definition: mavlink_msg_gimbal_set_home_offsets.h:7
uint8_t mods_triggered
AP_Limit_Module bitfield of triggered modules, (see enum moduleid or LIMIT_MODULE) ...
Definition: mavlink_msg_limits_status.h:15
uint8_t command_id
Command Identity (incremental loop: 0 to 255)//A command sent multiple times will be executed or pool...
Definition: mavlink_msg_digicam_control.h:15
Definition: mavlink_msg_gimbal_erase_firmware_and_config.h:5
uint8_t target_system
System ID.
Definition: mavlink_msg_gopro_power_off.h:7
float vz
GPS velocity down m/s.
Definition: mavlink_msg_airspeed_autocal.h:9
Definition: mavlink_msg_led_control.h:5
Definition: mavlink_msg_sensor_offsets.h:5
float gyro_cal_x
gyro X calibration
Definition: mavlink_msg_sensor_offsets.h:10
uint8_t focus_lock
0: unlock focus or keep unlocked, 1: lock focus or keep locked, 3: re-lock focus
Definition: mavlink_msg_digicam_control.h:13
uint8_t target_component
Component ID.
Definition: mavlink_msg_gopro_command.h:8
float ofs_y
Y offset.
Definition: mavlink_msg_mag_cal_report.h:9
float v3
test variable3
Definition: mavlink_msg_ahrs3.h:15
uint8_t idx
point index (first point is 1, 0 is for return point)
Definition: mavlink_msg_fence_fetch_point.h:9
Definition: mavlink_msg_camera_status.h:5
uint16_t Vcc
board voltage (mV)
Definition: mavlink_msg_hwstatus.h:7
uint64_t time_usec
Image timestamp (microseconds since UNIX epoch, according to camera clock)
Definition: mavlink_msg_camera_status.h:7
uint8_t event_id
See CAMERA_STATUS_TYPES enum for definition of the bitmask.
Definition: mavlink_msg_camera_status.h:15
uint8_t target_component
Component ID.
Definition: mavlink_msg_gimbal_control.h:11
uint8_t compass_id
Compass being calibrated.
Definition: mavlink_msg_mag_cal_report.h:17
uint8_t calibration_axis
Which gimbal axis we're reporting calibration progress for.
Definition: mavlink_msg_gimbal_axis_calibration_progress.h:7
uint8_t remrssi
remote signal strength
Definition: mavlink_msg_radio.h:10
float state_z
EKF state z.
Definition: mavlink_msg_airspeed_autocal.h:15
float direction_z
Body frame direction vector for display.
Definition: mavlink_msg_mag_cal_progress.h:9
float roll
Roll angle (rad)
Definition: mavlink_msg_simstate.h:7
uint16_t img_idx
Image index.
Definition: mavlink_msg_camera_feedback.h:16
float current
current (amps)
Definition: mavlink_msg_compassmot_status.h:7
Definition: mavlink_msg_ekf_status_report.h:5
Definition: mavlink_msg_gopro_response.h:5
Definition: mavlink_msg_data64.h:5
int16_t mag_ofs_z
magnetometer Z offset
Definition: mavlink_msg_sensor_offsets.h:18
uint8_t gp_cmd_name_1
First character of the 2 character GoPro command.
Definition: mavlink_msg_gopro_command.h:9
uint8_t calibration_result
The result of the home offset calibration.
Definition: mavlink_msg_gimbal_home_offset_calibration_result.h:7
uint8_t cal_status
Status (see MAG_CAL_STATUS enum)
Definition: mavlink_msg_mag_cal_progress.h:12
uint16_t adc4
ADC output 4.
Definition: mavlink_msg_ap_adc.h:10
float CompensationZ
Motor Compensation Z.
Definition: mavlink_msg_compassmot_status.h:10
Definition: mavlink_msg_mag_cal_progress.h:5
uint8_t pattern
Pattern (see LED_PATTERN_ENUM)
Definition: mavlink_msg_led_control.h:10
uint8_t target_component
Component ID.
Definition: mavlink_msg_gimbal_report.h:18
uint8_t target_system
System ID.
Definition: mavlink_msg_gimbal_control.h:10
float state_x
EKF state x.
Definition: mavlink_msg_airspeed_autocal.h:13
uint8_t test_status
The status of the currently executing test section. The meaning of this is test and section-dependent...
Definition: mavlink_msg_gimbal_report_factory_tests_progress.h:10
int32_t lat
Latitude of point in degrees * 1E7.
Definition: mavlink_msg_rally_point.h:7
uint8_t len
data length
Definition: mavlink_msg_data16.h:8
Definition: mavlink_msg_fence_point.h:5
float yaw
Yaw angle (rad)
Definition: mavlink_msg_ahrs2.h:9
uint8_t custom_bytes[24]
Custom Bytes.
Definition: mavlink_msg_led_control.h:12
float altitude
Altitude (MSL)
Definition: mavlink_msg_ahrs3.h:10
Definition: mavlink_msg_limits_status.h:5
uint8_t test_section_progress
The progress of the current test section, 0x64=100%.
Definition: mavlink_msg_gimbal_report_factory_tests_progress.h:9
uint8_t len
data length
Definition: mavlink_msg_data64.h:8
uint8_t target_component
Component ID.
Definition: mavlink_msg_led_control.h:8
Definition: mavlink_msg_meminfo.h:5
float delta_angle_z
Delta angle X (radians)
Definition: mavlink_msg_gimbal_report.h:10
float roll
Roll angle (rad)
Definition: mavlink_msg_ahrs2.h:7
int32_t input_b
roll(deg*100) or lon depending on mount mode
Definition: mavlink_msg_mount_control.h:8
Definition: mavlink_msg_gimbal_reset.h:5
uint8_t assembly_minute
Assembly Time Minute.
Definition: mavlink_msg_gimbal_set_factory_parameters.h:19
uint32_t serial_number_pt_1
Unit Serial Number Part 1 (part code, design, language/country)
Definition: mavlink_msg_gimbal_set_factory_parameters.h:10
float diff_pressure
Differential pressure pascals.
Definition: mavlink_msg_airspeed_autocal.h:10
uint8_t count
total number of points (for sanity checking)
Definition: mavlink_msg_rally_point.h:15
float direction_y
Body frame direction vector for display.
Definition: mavlink_msg_mag_cal_progress.h:8
int32_t lng
Longitude in degrees * 1E7.
Definition: mavlink_msg_simstate.h:17
uint8_t target_system
System ID.
Definition: mavlink_msg_mount_status.h:10
Definition: mavlink_msg_rangefinder.h:5
uint8_t target_component
Component ID.
Definition: mavlink_msg_gopro_power_off.h:8
Definition: mavlink_msg_hwstatus.h:5
uint8_t flags
See RALLY_FLAGS enum for definition of the bitmask.
Definition: mavlink_msg_rally_point.h:16
float error_yaw
average error_yaw value
Definition: mavlink_msg_ahrs.h:13
Definition: mavlink_msg_data16.h:5
float terrain_alt_variance
Terrain Altitude variance.
Definition: mavlink_msg_ekf_status_report.h:11
uint8_t gp_cmd_name_1
First character of the 2 character GoPro command that generated this response.
Definition: mavlink_msg_gopro_response.h:8
Definition: mavlink_msg_mount_control.h:5
uint8_t idx
point index (first point is 1, 0 is for return point)
Definition: mavlink_msg_fence_point.h:11
float speed_z
vertical wind speed (m/s)
Definition: mavlink_msg_wind.h:9
float distance
distance in meters
Definition: mavlink_msg_rangefinder.h:7
uint8_t target_system
System ID.
Definition: mavlink_msg_fence_fetch_point.h:7
int16_t break_alt
Break altitude in meters relative to home.
Definition: mavlink_msg_rally_point.h:10
float roll
Roll angle (rad)
Definition: mavlink_msg_ahrs3.h:7
uint8_t rssi
local signal strength
Definition: mavlink_msg_radio.h:9
float lng
Longitude of point.
Definition: mavlink_msg_fence_point.h:8
float p3
Parameter 3 (meaning depends on event, see CAMERA_STATUS_TYPES enum)
Definition: mavlink_msg_camera_status.h:10
uint8_t custom_len
Custom Byte Length.
Definition: mavlink_msg_led_control.h:11
float accel_cal_x
accel X calibration
Definition: mavlink_msg_sensor_offsets.h:13
Definition: mavlink_msg_autopilot_version_request.h:5
Definition: mavlink_msg_mag_cal_report.h:5
int32_t lat
Latitude in (deg * 1E7)
Definition: mavlink_msg_camera_feedback.h:8
int32_t pointing_a
pitch(deg*100)
Definition: mavlink_msg_mount_status.h:7
float accel_weight
average accel_weight
Definition: mavlink_msg_ahrs.h:10
float p2
Parameter 2 (meaning depends on event, see CAMERA_STATUS_TYPES enum)
Definition: mavlink_msg_camera_status.h:9
float vy
GPS velocity east m/s.
Definition: mavlink_msg_airspeed_autocal.h:8
uint8_t target_system
System ID.
Definition: mavlink_msg_fence_point.h:9
uint8_t target_system
System ID.
Definition: mavlink_msg_rally_fetch_point.h:7
float CompensationY
Motor Compensation Y.
Definition: mavlink_msg_compassmot_status.h:9
float xgyro
Angular speed around X axis rad/s.
Definition: mavlink_msg_simstate.h:13
uint8_t breach_type
last breach type (see FENCE_BREACH_* enum)
Definition: mavlink_msg_fence_status.h:10
uint8_t target_system
System ID.
Definition: mavlink_msg_rally_point.h:12
uint8_t target_component
Component ID.
Definition: mavlink_msg_mount_status.h:11
#define MAVLINK_ASSERT(x)
Definition: protocol.h:26
int32_t lng
Longitude in degrees * 1E7.
Definition: mavlink_msg_ahrs2.h:12
float ygyro
Angular speed around Y axis rad/s.
Definition: mavlink_msg_simstate.h:14
float yacc
Y acceleration m/s/s.
Definition: mavlink_msg_simstate.h:11
uint32_t magic_3
Magic number 3 for validation.
Definition: mavlink_msg_gimbal_set_factory_parameters.h:9
float yaw
Yaw angle (rad)
Definition: mavlink_msg_ahrs3.h:9
float joint_el
Joint EL (radians)
Definition: mavlink_msg_gimbal_report.h:15
int16_t mag_ofs_z
magnetometer Z offset
Definition: mavlink_msg_set_mag_offsets.h:9
uint8_t data[96]
raw data
Definition: mavlink_msg_data96.h:9
int16_t mag_ofs_y
magnetometer Y offset
Definition: mavlink_msg_sensor_offsets.h:17
uint8_t autosaved
0=requires a MAV_CMD_DO_ACCEPT_MAG_CAL, 1=saved to parameters
Definition: mavlink_msg_mag_cal_report.h:20
Definition: mavlink_msg_camera_feedback.h:5
uint32_t magic_1
Magic number 1 for validation.
Definition: mavlink_msg_gimbal_set_factory_parameters.h:7
int32_t pointing_c
yaw(deg*100)
Definition: mavlink_msg_mount_status.h:9
#define MAVLINK_MAX_PACKET_LEN
Maximum packet length.
Definition: mavlink_types.h:33
float lat
Latitude of point.
Definition: mavlink_msg_fence_point.h:7
float delta_angle_x
Delta angle X (radians)
Definition: mavlink_msg_gimbal_report.h:8
uint8_t target_component
Component ID.
Definition: mavlink_msg_digicam_control.h:9
uint8_t test
Which factory test is currently running.
Definition: mavlink_msg_gimbal_report_factory_tests_progress.h:7
float omegaIx
X gyro drift estimate rad/s.
Definition: mavlink_msg_ahrs.h:7
float v1
test variable1
Definition: mavlink_msg_ahrs3.h:13
uint8_t target_component
Component ID.
Definition: mavlink_msg_autopilot_version_request.h:8
float mag_declination
magnetic declination (radians)
Definition: mavlink_msg_sensor_offsets.h:7
Definition: mavlink_msg_gimbal_factory_parameters_loaded.h:5
float offdiag_x
X off-diagonal (matrix 12 and 21)
Definition: mavlink_msg_mag_cal_report.h:14
uint32_t serial_number_pt_3
Unit Serial Number Part 3 (incrementing serial number per month)
Definition: mavlink_msg_gimbal_set_factory_parameters.h:12
int8_t zoom_step
-100 to 100 //Zooming step value to offset zoom from the current position
Definition: mavlink_msg_digicam_control.h:12
uint8_t target_component
Component ID.
Definition: mavlink_msg_fence_point.h:10
uint8_t target_system
System ID.
Definition: mavlink_msg_led_control.h:7
uint8_t remnoise
remote background noise level
Definition: mavlink_msg_radio.h:13
uint8_t gp_cmd_response_status
Response byte from the GoPro's response to the command. 0 = Success, 1 = Failure. ...
Definition: mavlink_msg_gopro_response.h:10
uint8_t extra_param
Extra parameters enumeration (0 means ignore)
Definition: mavlink_msg_digicam_control.h:16
Definition: mavlink_msg_gimbal_axis_calibration_progress.h:5
Definition: mavlink_msg_gimbal_report.h:5
uint8_t breach_status
0 if currently inside fence, 1 if outside
Definition: mavlink_msg_fence_status.h:9
float p1
Parameter 1 (meaning depends on event, see CAMERA_STATUS_TYPES enum)
Definition: mavlink_msg_camera_status.h:8
float delta_velocity_z
Delta velocity Z (m/s)
Definition: mavlink_msg_gimbal_report.h:13
uint8_t gp_cmd_name_2
Second character of the 2 character GoPro command that generated this response.
Definition: mavlink_msg_gopro_response.h:9
float accel_cal_y
accel Y calibration
Definition: mavlink_msg_sensor_offsets.h:14
float extra_value
Correspondent value to given extra_param.
Definition: mavlink_msg_digicam_control.h:7
Definition: mavlink_msg_ahrs.h:5
int16_t mag_ofs_x
magnetometer X offset
Definition: mavlink_msg_sensor_offsets.h:16
uint16_t brkval
heap top
Definition: mavlink_msg_meminfo.h:7
uint8_t data[64]
raw data
Definition: mavlink_msg_data64.h:9
uint64_t time_usec
Image timestamp (microseconds since UNIX epoch), as passed in by CAMERA_STATUS message (or autopilot ...
Definition: mavlink_msg_camera_feedback.h:7
float joint_roll
Joint ROLL (radians)
Definition: mavlink_msg_gimbal_report.h:14
float Pby
EKF Pby.
Definition: mavlink_msg_airspeed_autocal.h:17
uint32_t serial_number_pt_2
Unit Serial Number Part 2 (option, year, month)
Definition: mavlink_msg_gimbal_set_factory_parameters.h:11
float state_y
EKF state y.
Definition: mavlink_msg_airspeed_autocal.h:14
int32_t input_a
pitch(deg*100) or lat, depending on mount mode
Definition: mavlink_msg_mount_control.h:7
uint8_t I2Cerr
I2C error count.
Definition: mavlink_msg_hwstatus.h:8
uint8_t target_system
System ID.
Definition: mavlink_msg_gimbal_erase_firmware_and_config.h:8
float zacc
Z acceleration m/s/s.
Definition: mavlink_msg_simstate.h:12
int32_t pointing_b
roll(deg*100)
Definition: mavlink_msg_mount_status.h:8
int16_t mag_ofs_y
magnetometer Y offset
Definition: mavlink_msg_set_mag_offsets.h:8
uint8_t idx
point index (first point is 0)
Definition: mavlink_msg_rally_point.h:14
uint8_t compass_id
Compass being calibrated.
Definition: mavlink_msg_mag_cal_progress.h:10
float omegaIy
Y gyro drift estimate rad/s.
Definition: mavlink_msg_ahrs.h:8
Definition: mavlink_msg_ahrs2.h:5
uint8_t type
data type
Definition: mavlink_msg_data96.h:7
uint8_t data[16]
raw data
Definition: mavlink_msg_data16.h:9
uint16_t assembly_year
Assembly Date Year.
Definition: mavlink_msg_gimbal_set_factory_parameters.h:13
uint8_t gp_cmd_name_2
Second character of the 2 character GoPro command.
Definition: mavlink_msg_gopro_command.h:10
Definition: mavlink_msg_data96.h:5
float speed
wind speed in ground plane (m/s)
Definition: mavlink_msg_wind.h:8
uint16_t breach_count
number of fence breaches
Definition: mavlink_msg_limits_status.h:11
uint8_t target_system
System ID.
Definition: mavlink_msg_gopro_command.h:7
float pitch
Pitch angle (rad)
Definition: mavlink_msg_ahrs3.h:8
uint8_t txbuf
how full the tx buffer is as a percentage
Definition: mavlink_msg_radio.h:11
float v2
test variable2
Definition: mavlink_msg_ahrs3.h:14
uint8_t limits_state
state of AP_Limits, (see enum LimitState, LIMITS_STATE)
Definition: mavlink_msg_limits_status.h:12
uint8_t target_system
System ID.
Definition: mavlink_msg_gimbal_set_factory_parameters.h:14
uint8_t target_component
Component ID.
Definition: mavlink_msg_gimbal_erase_firmware_and_config.h:9
float offdiag_z
Z off-diagonal (matrix 32 and 23)
Definition: mavlink_msg_mag_cal_report.h:16
float compass_variance
Compass variance.
Definition: mavlink_msg_ekf_status_report.h:10
uint8_t mods_enabled
AP_Limit_Module bitfield of enabled modules, (see enum moduleid or LIMIT_MODULE)
Definition: mavlink_msg_limits_status.h:13
uint32_t breach_time
time of last breach in milliseconds since boot
Definition: mavlink_msg_fence_status.h:7
Definition: mavlink_msg_gopro_power_off.h:5
int32_t raw_temp
raw temperature from barometer
Definition: mavlink_msg_sensor_offsets.h:9
uint8_t target_component
Component ID.
Definition: mavlink_msg_gimbal_reset.h:8
uint8_t type
data type
Definition: mavlink_msg_data16.h:7
uint8_t cal_status
Status (see MAG_CAL_STATUS enum)
Definition: mavlink_msg_mag_cal_report.h:19
float direction_x
Body frame direction vector for display.
Definition: mavlink_msg_mag_cal_progress.h:7
uint16_t land_dir
Heading to aim for when landing. In centi-degrees.
Definition: mavlink_msg_rally_point.h:11
float demanded_rate_y
Demanded angular rate Y (rad/s)
Definition: mavlink_msg_gimbal_control.h:8
uint8_t target_system
System ID.
Definition: mavlink_msg_autopilot_version_request.h:7
uint8_t target_system
System ID.
Definition: mavlink_msg_camera_status.h:13
uint8_t count
total number of points (for sanity checking)
Definition: mavlink_msg_fence_point.h:12
uint8_t cam_idx
Camera ID.
Definition: mavlink_msg_camera_feedback.h:18
int32_t lng
Longitude in (deg * 1E7)
Definition: mavlink_msg_camera_feedback.h:9
uint8_t target_component
Component ID.
Definition: mavlink_msg_set_mag_offsets.h:11
Definition: mavlink_msg_rally_fetch_point.h:5
MAVLINK_HELPER uint16_t mavlink_msg_to_send_buffer(uint8_t *buffer, const mavlink_message_t *msg)
Pack a message to send it over a serial byte stream.
Definition: mavlink_helpers.h:174
int16_t alt
Transit / loiter altitude in meters relative to home.
Definition: mavlink_msg_rally_point.h:9
Definition: mavlink_msg_airspeed_autocal.h:5
uint8_t calibration_status
The status of the running calibration.
Definition: mavlink_msg_gimbal_axis_calibration_progress.h:9
float foc_len
Focal Length (mm)
Definition: mavlink_msg_camera_feedback.h:15
Definition: mavlink_msg_radio.h:5
Definition: mavlink_msg_mount_status.h:5
Definition: mavlink_msg_digicam_control.h:5
int32_t lng
Longitude in degrees * 1E7.
Definition: mavlink_msg_ahrs3.h:12
uint32_t last_clear
time of last all-clear in milliseconds since boot
Definition: mavlink_msg_limits_status.h:10
float velocity_variance
Velocity variance.
Definition: mavlink_msg_ekf_status_report.h:7
float delta_angle_y
Delta angle Y (radians)
Definition: mavlink_msg_gimbal_report.h:9
Definition: mavlink_msg_ap_adc.h:5
uint8_t attempt
Attempt number.
Definition: mavlink_msg_mag_cal_progress.h:13
uint8_t save_position
if "1" it will save current trimmed position on EEPROM (just valid for NEUTRAL and LANDING) ...
Definition: mavlink_msg_mount_control.h:12
float pos_vert_variance
Vertical Position variance.
Definition: mavlink_msg_ekf_status_report.h:9
uint16_t interference
interference (percent)
Definition: mavlink_msg_compassmot_status.h:12
uint16_t breach_count
number of fence breaches
Definition: mavlink_msg_fence_status.h:8
uint8_t flags
See CAMERA_FEEDBACK_FLAGS enum for definition of the bitmask.
Definition: mavlink_msg_camera_feedback.h:19
float alt_msl
Altitude Absolute (meters AMSL)
Definition: mavlink_msg_camera_feedback.h:10
uint8_t dummy
Dummy field because mavgen doesn't allow messages with no fields.
Definition: mavlink_msg_gimbal_factory_parameters_loaded.h:7
uint16_t adc3
ADC output 3.
Definition: mavlink_msg_ap_adc.h:9
float omegaIz
Z gyro drift estimate rad/s.
Definition: mavlink_msg_ahrs.h:9
uint8_t mods_required
AP_Limit_Module bitfield of required modules, (see enum moduleid or LIMIT_MODULE) ...
Definition: mavlink_msg_limits_status.h:14
Definition: mavlink_msg_rally_point.h:5
Definition: mavlink_msg_gimbal_control.h:5
uint32_t last_action
time of last recovery action in milliseconds since boot
Definition: mavlink_msg_limits_status.h:8
float zgyro
Angular speed around Z axis rad/s.
Definition: mavlink_msg_simstate.h:15
Definition: mavlink_msg_gimbal_report_factory_tests_progress.h:5
float pitch
Pitch angle (rad)
Definition: mavlink_msg_ahrs2.h:8
uint16_t fixed
count of error corrected packets
Definition: mavlink_msg_radio.h:8
Definition: mavlink_msg_battery2.h:5
uint8_t cal_mask
Bitmask of compasses being calibrated.
Definition: mavlink_msg_mag_cal_report.h:18
uint16_t adc1
ADC output 1.
Definition: mavlink_msg_ap_adc.h:7
int32_t lat
Latitude in degrees * 1E7.
Definition: mavlink_msg_ahrs3.h:11
float altitude
Altitude (MSL)
Definition: mavlink_msg_ahrs2.h:10
float yaw
Yaw angle (rad)
Definition: mavlink_msg_simstate.h:9
uint8_t gp_cmd_response_argument
Response argument from the GoPro's response to the command.
Definition: mavlink_msg_gopro_response.h:11
float demanded_rate_z
Demanded angular rate Z (rad/s)
Definition: mavlink_msg_gimbal_control.h:9
Definition: mavlink_msg_wind.h:5
uint16_t voltage
voltage in millivolts
Definition: mavlink_msg_battery2.h:7
uint8_t type
data type
Definition: mavlink_msg_data64.h:7
float diag_y
Y diagonal (matrix 22)
Definition: mavlink_msg_mag_cal_report.h:12
uint8_t session
0: stop, 1: start or keep it up //Session control e.g. show/hide lens
Definition: mavlink_msg_digicam_control.h:10
uint16_t img_idx
Image index.
Definition: mavlink_msg_camera_status.h:12
uint8_t completion_pct
Completion percentage.
Definition: mavlink_msg_mag_cal_progress.h:14
uint8_t noise
background noise level
Definition: mavlink_msg_radio.h:12
uint8_t assembly_hour
Assembly Time Hour.
Definition: mavlink_msg_gimbal_set_factory_parameters.h:18
uint8_t target_system
System ID.
Definition: mavlink_msg_camera_feedback.h:17
Definition: mavlink_msg_gimbal_set_home_offsets.h:5
float xacc
X acceleration m/s/s.
Definition: mavlink_msg_simstate.h:10
uint8_t target_component
Component ID.
Definition: mavlink_msg_gopro_power_on.h:8
int32_t lng
Longitude of point in degrees * 1E7.
Definition: mavlink_msg_rally_point.h:8
uint8_t target_component
Component ID.
Definition: mavlink_msg_rally_fetch_point.h:8
uint8_t target_component
Component ID.
Definition: mavlink_msg_rally_point.h:13
float renorm_val
average renormalisation value
Definition: mavlink_msg_ahrs.h:11
uint8_t target_component
Component ID.
Definition: mavlink_msg_gimbal_set_home_offsets.h:8
uint32_t last_trigger
time of last breach in milliseconds since boot
Definition: mavlink_msg_limits_status.h:7
uint16_t freemem
free memory
Definition: mavlink_msg_meminfo.h:8
uint8_t gp_cmd_parm
Parameter for the command.
Definition: mavlink_msg_gopro_command.h:11
uint8_t completion_mask[10]
Bitmask of sphere sections (see http://en.wikipedia.org/wiki/Geodesic_grid)
Definition: mavlink_msg_mag_cal_progress.h:15
float diag_z
Z diagonal (matrix 33)
Definition: mavlink_msg_mag_cal_report.h:13
uint16_t adc6
ADC output 6.
Definition: mavlink_msg_ap_adc.h:12
int16_t mag_ofs_x
magnetometer X offset
Definition: mavlink_msg_set_mag_offsets.h:7
Definition: mavlink_msg_ahrs3.h:5
float direction
wind direction that wind is coming from (degrees)
Definition: mavlink_msg_wind.h:7
uint8_t assembly_day
Assembly Date Day.
Definition: mavlink_msg_gimbal_set_factory_parameters.h:17
float alt_rel
Altitude Relative (meters above HOME location)
Definition: mavlink_msg_camera_feedback.h:11
uint16_t adc2
ADC output 2.
Definition: mavlink_msg_ap_adc.h:8
float gyro_cal_z
gyro Z calibration
Definition: mavlink_msg_sensor_offsets.h:12
float v4
test variable4
Definition: mavlink_msg_ahrs3.h:16
uint8_t type
data type
Definition: mavlink_msg_data32.h:7
uint8_t calibration_progress
The current calibration progress for this axis, 0x64=100%.
Definition: mavlink_msg_gimbal_axis_calibration_progress.h:8
Definition: mavlink_msg_simstate.h:5
Definition: mavlink_msg_gopro_power_on.h:5
uint16_t gp_cmd_result
Result of the command attempt to the GoPro, as defined by GOPRO_CMD_RESULT enum.
Definition: mavlink_msg_gopro_response.h:7
uint8_t zoom_pos
1 to N //Zoom's absolute position (0 means ignore)
Definition: mavlink_msg_digicam_control.h:11
float demanded_rate_x
Demanded angular rate X (rad/s)
Definition: mavlink_msg_gimbal_control.h:7
int32_t lat
Latitude in degrees * 1E7.
Definition: mavlink_msg_ahrs2.h:11
int32_t raw_press
raw pressure from barometer
Definition: mavlink_msg_sensor_offsets.h:8
float CompensationX
Motor Compensation X.
Definition: mavlink_msg_compassmot_status.h:8
float Pax
EKF Pax.
Definition: mavlink_msg_airspeed_autocal.h:16
float vx
GPS velocity north m/s.
Definition: mavlink_msg_airspeed_autocal.h:7