5 #ifndef COMMON_TESTSUITE_H
6 #define COMMON_TESTSUITE_H
12 #ifndef MAVLINK_TEST_ALL
13 #define MAVLINK_TEST_ALL
15 static void mavlink_test_common(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)
20 mavlink_test_common(system_id, component_id, last_msg);
27 static void mavlink_test_heartbeat(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
29 mavlink_message_t msg;
33 963497464,17,84,151,218,3
36 memset(&packet1, 0,
sizeof(packet1));
46 memset(&packet2, 0,
sizeof(packet2));
47 mavlink_msg_heartbeat_encode(system_id, component_id, &msg, &packet1);
48 mavlink_msg_heartbeat_decode(&msg, &packet2);
51 memset(&packet2, 0,
sizeof(packet2));
53 mavlink_msg_heartbeat_decode(&msg, &packet2);
56 memset(&packet2, 0,
sizeof(packet2));
58 mavlink_msg_heartbeat_decode(&msg, &packet2);
61 memset(&packet2, 0,
sizeof(packet2));
63 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
66 mavlink_msg_heartbeat_decode(last_msg, &packet2);
69 memset(&packet2, 0,
sizeof(packet2));
71 mavlink_msg_heartbeat_decode(last_msg, &packet2);
75 static void mavlink_test_sys_status(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
77 mavlink_message_t msg;
81 963497464,963497672,963497880,17859,17963,18067,18171,18275,18379,18483,18587,18691,223
84 memset(&packet1, 0,
sizeof(packet1));
101 memset(&packet2, 0,
sizeof(packet2));
102 mavlink_msg_sys_status_encode(system_id, component_id, &msg, &packet1);
103 mavlink_msg_sys_status_decode(&msg, &packet2);
106 memset(&packet2, 0,
sizeof(packet2));
107 mavlink_msg_sys_status_pack(system_id, component_id, &msg , packet1.
onboard_control_sensors_present , packet1.
onboard_control_sensors_enabled , packet1.
onboard_control_sensors_health , packet1.
load , packet1.
voltage_battery , packet1.
current_battery , packet1.
battery_remaining , packet1.
drop_rate_comm , packet1.
errors_comm , packet1.
errors_count1 , packet1.
errors_count2 , packet1.
errors_count3 , packet1.
errors_count4 );
108 mavlink_msg_sys_status_decode(&msg, &packet2);
111 memset(&packet2, 0,
sizeof(packet2));
112 mavlink_msg_sys_status_pack_chan(system_id, component_id,
MAVLINK_COMM_0, &msg , packet1.
onboard_control_sensors_present , packet1.
onboard_control_sensors_enabled , packet1.
onboard_control_sensors_health , packet1.
load , packet1.
voltage_battery , packet1.
current_battery , packet1.
battery_remaining , packet1.
drop_rate_comm , packet1.
errors_comm , packet1.
errors_count1 , packet1.
errors_count2 , packet1.
errors_count3 , packet1.
errors_count4 );
113 mavlink_msg_sys_status_decode(&msg, &packet2);
116 memset(&packet2, 0,
sizeof(packet2));
118 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
121 mavlink_msg_sys_status_decode(last_msg, &packet2);
124 memset(&packet2, 0,
sizeof(packet2));
125 mavlink_msg_sys_status_send(
MAVLINK_COMM_1 , packet1.
onboard_control_sensors_present , packet1.
onboard_control_sensors_enabled , packet1.
onboard_control_sensors_health , packet1.
load , packet1.
voltage_battery , packet1.
current_battery , packet1.
battery_remaining , packet1.
drop_rate_comm , packet1.
errors_comm , packet1.
errors_count1 , packet1.
errors_count2 , packet1.
errors_count3 , packet1.
errors_count4 );
126 mavlink_msg_sys_status_decode(last_msg, &packet2);
130 static void mavlink_test_system_time(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
132 mavlink_message_t msg;
136 93372036854775807ULL,963497880
139 memset(&packet1, 0,
sizeof(packet1));
145 memset(&packet2, 0,
sizeof(packet2));
146 mavlink_msg_system_time_encode(system_id, component_id, &msg, &packet1);
147 mavlink_msg_system_time_decode(&msg, &packet2);
150 memset(&packet2, 0,
sizeof(packet2));
152 mavlink_msg_system_time_decode(&msg, &packet2);
155 memset(&packet2, 0,
sizeof(packet2));
157 mavlink_msg_system_time_decode(&msg, &packet2);
160 memset(&packet2, 0,
sizeof(packet2));
162 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
165 mavlink_msg_system_time_decode(last_msg, &packet2);
168 memset(&packet2, 0,
sizeof(packet2));
170 mavlink_msg_system_time_decode(last_msg, &packet2);
174 static void mavlink_test_ping(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
176 mavlink_message_t msg;
180 93372036854775807ULL,963497880,41,108
183 memset(&packet1, 0,
sizeof(packet1));
185 packet1.
seq = packet_in.
seq;
191 memset(&packet2, 0,
sizeof(packet2));
192 mavlink_msg_ping_encode(system_id, component_id, &msg, &packet1);
193 mavlink_msg_ping_decode(&msg, &packet2);
196 memset(&packet2, 0,
sizeof(packet2));
198 mavlink_msg_ping_decode(&msg, &packet2);
201 memset(&packet2, 0,
sizeof(packet2));
203 mavlink_msg_ping_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_ping_decode(last_msg, &packet2);
214 memset(&packet2, 0,
sizeof(packet2));
216 mavlink_msg_ping_decode(last_msg, &packet2);
220 static void mavlink_test_change_operator_control(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
222 mavlink_message_t msg;
226 5,72,139,
"DEFGHIJKLMNOPQRSTUVWXYZA"
229 memset(&packet1, 0,
sizeof(packet1));
234 mav_array_memcpy(packet1.
passkey, packet_in.
passkey,
sizeof(
char)*25);
237 memset(&packet2, 0,
sizeof(packet2));
238 mavlink_msg_change_operator_control_encode(system_id, component_id, &msg, &packet1);
239 mavlink_msg_change_operator_control_decode(&msg, &packet2);
242 memset(&packet2, 0,
sizeof(packet2));
244 mavlink_msg_change_operator_control_decode(&msg, &packet2);
247 memset(&packet2, 0,
sizeof(packet2));
249 mavlink_msg_change_operator_control_decode(&msg, &packet2);
252 memset(&packet2, 0,
sizeof(packet2));
254 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
257 mavlink_msg_change_operator_control_decode(last_msg, &packet2);
260 memset(&packet2, 0,
sizeof(packet2));
262 mavlink_msg_change_operator_control_decode(last_msg, &packet2);
266 static void mavlink_test_change_operator_control_ack(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
268 mavlink_message_t msg;
275 memset(&packet1, 0,
sizeof(packet1));
278 packet1.
ack = packet_in.
ack;
282 memset(&packet2, 0,
sizeof(packet2));
283 mavlink_msg_change_operator_control_ack_encode(system_id, component_id, &msg, &packet1);
284 mavlink_msg_change_operator_control_ack_decode(&msg, &packet2);
287 memset(&packet2, 0,
sizeof(packet2));
289 mavlink_msg_change_operator_control_ack_decode(&msg, &packet2);
292 memset(&packet2, 0,
sizeof(packet2));
294 mavlink_msg_change_operator_control_ack_decode(&msg, &packet2);
297 memset(&packet2, 0,
sizeof(packet2));
299 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
302 mavlink_msg_change_operator_control_ack_decode(last_msg, &packet2);
305 memset(&packet2, 0,
sizeof(packet2));
307 mavlink_msg_change_operator_control_ack_decode(last_msg, &packet2);
311 static void mavlink_test_auth_key(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
313 mavlink_message_t msg;
317 "ABCDEFGHIJKLMNOPQRSTUVWXYZABCDE"
320 memset(&packet1, 0,
sizeof(packet1));
322 mav_array_memcpy(packet1.
key, packet_in.
key,
sizeof(
char)*32);
325 memset(&packet2, 0,
sizeof(packet2));
326 mavlink_msg_auth_key_encode(system_id, component_id, &msg, &packet1);
327 mavlink_msg_auth_key_decode(&msg, &packet2);
330 memset(&packet2, 0,
sizeof(packet2));
331 mavlink_msg_auth_key_pack(system_id, component_id, &msg , packet1.
key );
332 mavlink_msg_auth_key_decode(&msg, &packet2);
335 memset(&packet2, 0,
sizeof(packet2));
336 mavlink_msg_auth_key_pack_chan(system_id, component_id,
MAVLINK_COMM_0, &msg , packet1.
key );
337 mavlink_msg_auth_key_decode(&msg, &packet2);
340 memset(&packet2, 0,
sizeof(packet2));
342 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
345 mavlink_msg_auth_key_decode(last_msg, &packet2);
348 memset(&packet2, 0,
sizeof(packet2));
350 mavlink_msg_auth_key_decode(last_msg, &packet2);
354 static void mavlink_test_set_mode(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
356 mavlink_message_t msg;
363 memset(&packet1, 0,
sizeof(packet1));
370 memset(&packet2, 0,
sizeof(packet2));
371 mavlink_msg_set_mode_encode(system_id, component_id, &msg, &packet1);
372 mavlink_msg_set_mode_decode(&msg, &packet2);
375 memset(&packet2, 0,
sizeof(packet2));
377 mavlink_msg_set_mode_decode(&msg, &packet2);
380 memset(&packet2, 0,
sizeof(packet2));
382 mavlink_msg_set_mode_decode(&msg, &packet2);
385 memset(&packet2, 0,
sizeof(packet2));
387 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
390 mavlink_msg_set_mode_decode(last_msg, &packet2);
393 memset(&packet2, 0,
sizeof(packet2));
395 mavlink_msg_set_mode_decode(last_msg, &packet2);
399 static void mavlink_test_param_request_read(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
401 mavlink_message_t msg;
405 17235,139,206,
"EFGHIJKLMNOPQRS"
408 memset(&packet1, 0,
sizeof(packet1));
416 memset(&packet2, 0,
sizeof(packet2));
417 mavlink_msg_param_request_read_encode(system_id, component_id, &msg, &packet1);
418 mavlink_msg_param_request_read_decode(&msg, &packet2);
421 memset(&packet2, 0,
sizeof(packet2));
423 mavlink_msg_param_request_read_decode(&msg, &packet2);
426 memset(&packet2, 0,
sizeof(packet2));
428 mavlink_msg_param_request_read_decode(&msg, &packet2);
431 memset(&packet2, 0,
sizeof(packet2));
433 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
436 mavlink_msg_param_request_read_decode(last_msg, &packet2);
439 memset(&packet2, 0,
sizeof(packet2));
441 mavlink_msg_param_request_read_decode(last_msg, &packet2);
445 static void mavlink_test_param_request_list(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
447 mavlink_message_t msg;
454 memset(&packet1, 0,
sizeof(packet1));
460 memset(&packet2, 0,
sizeof(packet2));
461 mavlink_msg_param_request_list_encode(system_id, component_id, &msg, &packet1);
462 mavlink_msg_param_request_list_decode(&msg, &packet2);
465 memset(&packet2, 0,
sizeof(packet2));
467 mavlink_msg_param_request_list_decode(&msg, &packet2);
470 memset(&packet2, 0,
sizeof(packet2));
472 mavlink_msg_param_request_list_decode(&msg, &packet2);
475 memset(&packet2, 0,
sizeof(packet2));
477 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
480 mavlink_msg_param_request_list_decode(last_msg, &packet2);
483 memset(&packet2, 0,
sizeof(packet2));
485 mavlink_msg_param_request_list_decode(last_msg, &packet2);
489 static void mavlink_test_param_value(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
491 mavlink_message_t msg;
495 17.0,17443,17547,
"IJKLMNOPQRSTUVW",77
498 memset(&packet1, 0,
sizeof(packet1));
507 memset(&packet2, 0,
sizeof(packet2));
508 mavlink_msg_param_value_encode(system_id, component_id, &msg, &packet1);
509 mavlink_msg_param_value_decode(&msg, &packet2);
512 memset(&packet2, 0,
sizeof(packet2));
514 mavlink_msg_param_value_decode(&msg, &packet2);
517 memset(&packet2, 0,
sizeof(packet2));
519 mavlink_msg_param_value_decode(&msg, &packet2);
522 memset(&packet2, 0,
sizeof(packet2));
524 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
527 mavlink_msg_param_value_decode(last_msg, &packet2);
530 memset(&packet2, 0,
sizeof(packet2));
532 mavlink_msg_param_value_decode(last_msg, &packet2);
536 static void mavlink_test_param_set(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
538 mavlink_message_t msg;
542 17.0,17,84,
"GHIJKLMNOPQRSTU",199
545 memset(&packet1, 0,
sizeof(packet1));
554 memset(&packet2, 0,
sizeof(packet2));
555 mavlink_msg_param_set_encode(system_id, component_id, &msg, &packet1);
556 mavlink_msg_param_set_decode(&msg, &packet2);
559 memset(&packet2, 0,
sizeof(packet2));
561 mavlink_msg_param_set_decode(&msg, &packet2);
564 memset(&packet2, 0,
sizeof(packet2));
566 mavlink_msg_param_set_decode(&msg, &packet2);
569 memset(&packet2, 0,
sizeof(packet2));
571 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
574 mavlink_msg_param_set_decode(last_msg, &packet2);
577 memset(&packet2, 0,
sizeof(packet2));
579 mavlink_msg_param_set_decode(last_msg, &packet2);
583 static void mavlink_test_gps_raw_int(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
585 mavlink_message_t msg;
589 93372036854775807ULL,963497880,963498088,963498296,18275,18379,18483,18587,89,156
592 memset(&packet1, 0,
sizeof(packet1));
594 packet1.
lat = packet_in.
lat;
595 packet1.
lon = packet_in.
lon;
596 packet1.
alt = packet_in.
alt;
597 packet1.
eph = packet_in.
eph;
598 packet1.
epv = packet_in.
epv;
599 packet1.
vel = packet_in.
vel;
600 packet1.
cog = packet_in.
cog;
606 memset(&packet2, 0,
sizeof(packet2));
607 mavlink_msg_gps_raw_int_encode(system_id, component_id, &msg, &packet1);
608 mavlink_msg_gps_raw_int_decode(&msg, &packet2);
611 memset(&packet2, 0,
sizeof(packet2));
612 mavlink_msg_gps_raw_int_pack(system_id, component_id, &msg , packet1.
time_usec , packet1.
fix_type , packet1.
lat , packet1.
lon , packet1.
alt , packet1.
eph , packet1.
epv , packet1.
vel , packet1.
cog , packet1.
satellites_visible );
613 mavlink_msg_gps_raw_int_decode(&msg, &packet2);
616 memset(&packet2, 0,
sizeof(packet2));
617 mavlink_msg_gps_raw_int_pack_chan(system_id, component_id,
MAVLINK_COMM_0, &msg , packet1.
time_usec , packet1.
fix_type , packet1.
lat , packet1.
lon , packet1.
alt , packet1.
eph , packet1.
epv , packet1.
vel , packet1.
cog , packet1.
satellites_visible );
618 mavlink_msg_gps_raw_int_decode(&msg, &packet2);
621 memset(&packet2, 0,
sizeof(packet2));
623 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
626 mavlink_msg_gps_raw_int_decode(last_msg, &packet2);
629 memset(&packet2, 0,
sizeof(packet2));
630 mavlink_msg_gps_raw_int_send(
MAVLINK_COMM_1 , packet1.
time_usec , packet1.
fix_type , packet1.
lat , packet1.
lon , packet1.
alt , packet1.
eph , packet1.
epv , packet1.
vel , packet1.
cog , packet1.
satellites_visible );
631 mavlink_msg_gps_raw_int_decode(last_msg, &packet2);
635 static void mavlink_test_gps_status(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
637 mavlink_message_t msg;
641 5,{ 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91 },{ 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151 },{ 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211 },{ 252, 253, 254, 255, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 },{ 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75 }
644 memset(&packet1, 0,
sizeof(packet1));
654 memset(&packet2, 0,
sizeof(packet2));
655 mavlink_msg_gps_status_encode(system_id, component_id, &msg, &packet1);
656 mavlink_msg_gps_status_decode(&msg, &packet2);
659 memset(&packet2, 0,
sizeof(packet2));
661 mavlink_msg_gps_status_decode(&msg, &packet2);
664 memset(&packet2, 0,
sizeof(packet2));
666 mavlink_msg_gps_status_decode(&msg, &packet2);
669 memset(&packet2, 0,
sizeof(packet2));
671 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
674 mavlink_msg_gps_status_decode(last_msg, &packet2);
677 memset(&packet2, 0,
sizeof(packet2));
679 mavlink_msg_gps_status_decode(last_msg, &packet2);
683 static void mavlink_test_scaled_imu(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
685 mavlink_message_t msg;
689 963497464,17443,17547,17651,17755,17859,17963,18067,18171,18275
692 memset(&packet1, 0,
sizeof(packet1));
706 memset(&packet2, 0,
sizeof(packet2));
707 mavlink_msg_scaled_imu_encode(system_id, component_id, &msg, &packet1);
708 mavlink_msg_scaled_imu_decode(&msg, &packet2);
711 memset(&packet2, 0,
sizeof(packet2));
712 mavlink_msg_scaled_imu_pack(system_id, component_id, &msg , packet1.
time_boot_ms , packet1.
xacc , packet1.
yacc , packet1.
zacc , packet1.
xgyro , packet1.
ygyro , packet1.
zgyro , packet1.
xmag , packet1.
ymag , packet1.
zmag );
713 mavlink_msg_scaled_imu_decode(&msg, &packet2);
716 memset(&packet2, 0,
sizeof(packet2));
717 mavlink_msg_scaled_imu_pack_chan(system_id, component_id,
MAVLINK_COMM_0, &msg , packet1.
time_boot_ms , packet1.
xacc , packet1.
yacc , packet1.
zacc , packet1.
xgyro , packet1.
ygyro , packet1.
zgyro , packet1.
xmag , packet1.
ymag , packet1.
zmag );
718 mavlink_msg_scaled_imu_decode(&msg, &packet2);
721 memset(&packet2, 0,
sizeof(packet2));
723 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
726 mavlink_msg_scaled_imu_decode(last_msg, &packet2);
729 memset(&packet2, 0,
sizeof(packet2));
730 mavlink_msg_scaled_imu_send(
MAVLINK_COMM_1 , packet1.
time_boot_ms , packet1.
xacc , packet1.
yacc , packet1.
zacc , packet1.
xgyro , packet1.
ygyro , packet1.
zgyro , packet1.
xmag , packet1.
ymag , packet1.
zmag );
731 mavlink_msg_scaled_imu_decode(last_msg, &packet2);
735 static void mavlink_test_raw_imu(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
737 mavlink_message_t msg;
741 93372036854775807ULL,17651,17755,17859,17963,18067,18171,18275,18379,18483
744 memset(&packet1, 0,
sizeof(packet1));
758 memset(&packet2, 0,
sizeof(packet2));
759 mavlink_msg_raw_imu_encode(system_id, component_id, &msg, &packet1);
760 mavlink_msg_raw_imu_decode(&msg, &packet2);
763 memset(&packet2, 0,
sizeof(packet2));
764 mavlink_msg_raw_imu_pack(system_id, component_id, &msg , packet1.
time_usec , packet1.
xacc , packet1.
yacc , packet1.
zacc , packet1.
xgyro , packet1.
ygyro , packet1.
zgyro , packet1.
xmag , packet1.
ymag , packet1.
zmag );
765 mavlink_msg_raw_imu_decode(&msg, &packet2);
768 memset(&packet2, 0,
sizeof(packet2));
769 mavlink_msg_raw_imu_pack_chan(system_id, component_id,
MAVLINK_COMM_0, &msg , packet1.
time_usec , packet1.
xacc , packet1.
yacc , packet1.
zacc , packet1.
xgyro , packet1.
ygyro , packet1.
zgyro , packet1.
xmag , packet1.
ymag , packet1.
zmag );
770 mavlink_msg_raw_imu_decode(&msg, &packet2);
773 memset(&packet2, 0,
sizeof(packet2));
775 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
778 mavlink_msg_raw_imu_decode(last_msg, &packet2);
781 memset(&packet2, 0,
sizeof(packet2));
782 mavlink_msg_raw_imu_send(
MAVLINK_COMM_1 , packet1.
time_usec , packet1.
xacc , packet1.
yacc , packet1.
zacc , packet1.
xgyro , packet1.
ygyro , packet1.
zgyro , packet1.
xmag , packet1.
ymag , packet1.
zmag );
783 mavlink_msg_raw_imu_decode(last_msg, &packet2);
787 static void mavlink_test_raw_pressure(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
789 mavlink_message_t msg;
793 93372036854775807ULL,17651,17755,17859,17963
796 memset(&packet1, 0,
sizeof(packet1));
805 memset(&packet2, 0,
sizeof(packet2));
806 mavlink_msg_raw_pressure_encode(system_id, component_id, &msg, &packet1);
807 mavlink_msg_raw_pressure_decode(&msg, &packet2);
810 memset(&packet2, 0,
sizeof(packet2));
812 mavlink_msg_raw_pressure_decode(&msg, &packet2);
815 memset(&packet2, 0,
sizeof(packet2));
817 mavlink_msg_raw_pressure_decode(&msg, &packet2);
820 memset(&packet2, 0,
sizeof(packet2));
822 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
825 mavlink_msg_raw_pressure_decode(last_msg, &packet2);
828 memset(&packet2, 0,
sizeof(packet2));
830 mavlink_msg_raw_pressure_decode(last_msg, &packet2);
834 static void mavlink_test_scaled_pressure(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
836 mavlink_message_t msg;
840 963497464,45.0,73.0,17859
843 memset(&packet1, 0,
sizeof(packet1));
851 memset(&packet2, 0,
sizeof(packet2));
852 mavlink_msg_scaled_pressure_encode(system_id, component_id, &msg, &packet1);
853 mavlink_msg_scaled_pressure_decode(&msg, &packet2);
856 memset(&packet2, 0,
sizeof(packet2));
858 mavlink_msg_scaled_pressure_decode(&msg, &packet2);
861 memset(&packet2, 0,
sizeof(packet2));
863 mavlink_msg_scaled_pressure_decode(&msg, &packet2);
866 memset(&packet2, 0,
sizeof(packet2));
868 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
871 mavlink_msg_scaled_pressure_decode(last_msg, &packet2);
874 memset(&packet2, 0,
sizeof(packet2));
876 mavlink_msg_scaled_pressure_decode(last_msg, &packet2);
880 static void mavlink_test_attitude(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
882 mavlink_message_t msg;
886 963497464,45.0,73.0,101.0,129.0,157.0,185.0
889 memset(&packet1, 0,
sizeof(packet1));
893 packet1.
yaw = packet_in.
yaw;
900 memset(&packet2, 0,
sizeof(packet2));
901 mavlink_msg_attitude_encode(system_id, component_id, &msg, &packet1);
902 mavlink_msg_attitude_decode(&msg, &packet2);
905 memset(&packet2, 0,
sizeof(packet2));
907 mavlink_msg_attitude_decode(&msg, &packet2);
910 memset(&packet2, 0,
sizeof(packet2));
911 mavlink_msg_attitude_pack_chan(system_id, component_id,
MAVLINK_COMM_0, &msg , packet1.
time_boot_ms , packet1.
roll , packet1.
pitch , packet1.
yaw , packet1.
rollspeed , packet1.
pitchspeed , packet1.
yawspeed );
912 mavlink_msg_attitude_decode(&msg, &packet2);
915 memset(&packet2, 0,
sizeof(packet2));
917 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
920 mavlink_msg_attitude_decode(last_msg, &packet2);
923 memset(&packet2, 0,
sizeof(packet2));
925 mavlink_msg_attitude_decode(last_msg, &packet2);
929 static void mavlink_test_attitude_quaternion(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
931 mavlink_message_t msg;
935 963497464,45.0,73.0,101.0,129.0,157.0,185.0,213.0
938 memset(&packet1, 0,
sizeof(packet1));
940 packet1.
q1 = packet_in.
q1;
941 packet1.
q2 = packet_in.
q2;
942 packet1.
q3 = packet_in.
q3;
943 packet1.
q4 = packet_in.
q4;
950 memset(&packet2, 0,
sizeof(packet2));
951 mavlink_msg_attitude_quaternion_encode(system_id, component_id, &msg, &packet1);
952 mavlink_msg_attitude_quaternion_decode(&msg, &packet2);
955 memset(&packet2, 0,
sizeof(packet2));
956 mavlink_msg_attitude_quaternion_pack(system_id, component_id, &msg , packet1.
time_boot_ms , packet1.
q1 , packet1.
q2 , packet1.
q3 , packet1.
q4 , packet1.
rollspeed , packet1.
pitchspeed , packet1.
yawspeed );
957 mavlink_msg_attitude_quaternion_decode(&msg, &packet2);
960 memset(&packet2, 0,
sizeof(packet2));
961 mavlink_msg_attitude_quaternion_pack_chan(system_id, component_id,
MAVLINK_COMM_0, &msg , packet1.
time_boot_ms , packet1.
q1 , packet1.
q2 , packet1.
q3 , packet1.
q4 , packet1.
rollspeed , packet1.
pitchspeed , packet1.
yawspeed );
962 mavlink_msg_attitude_quaternion_decode(&msg, &packet2);
965 memset(&packet2, 0,
sizeof(packet2));
967 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
970 mavlink_msg_attitude_quaternion_decode(last_msg, &packet2);
973 memset(&packet2, 0,
sizeof(packet2));
975 mavlink_msg_attitude_quaternion_decode(last_msg, &packet2);
979 static void mavlink_test_local_position_ned(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
981 mavlink_message_t msg;
985 963497464,45.0,73.0,101.0,129.0,157.0,185.0
988 memset(&packet1, 0,
sizeof(packet1));
990 packet1.
x = packet_in.
x;
991 packet1.
y = packet_in.
y;
992 packet1.
z = packet_in.
z;
993 packet1.
vx = packet_in.
vx;
994 packet1.
vy = packet_in.
vy;
995 packet1.
vz = packet_in.
vz;
999 memset(&packet2, 0,
sizeof(packet2));
1000 mavlink_msg_local_position_ned_encode(system_id, component_id, &msg, &packet1);
1001 mavlink_msg_local_position_ned_decode(&msg, &packet2);
1002 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1004 memset(&packet2, 0,
sizeof(packet2));
1005 mavlink_msg_local_position_ned_pack(system_id, component_id, &msg , packet1.
time_boot_ms , packet1.
x , packet1.
y , packet1.
z , packet1.
vx , packet1.
vy , packet1.
vz );
1006 mavlink_msg_local_position_ned_decode(&msg, &packet2);
1007 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1009 memset(&packet2, 0,
sizeof(packet2));
1010 mavlink_msg_local_position_ned_pack_chan(system_id, component_id,
MAVLINK_COMM_0, &msg , packet1.
time_boot_ms , packet1.
x , packet1.
y , packet1.
z , packet1.
vx , packet1.
vy , packet1.
vz );
1011 mavlink_msg_local_position_ned_decode(&msg, &packet2);
1012 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1014 memset(&packet2, 0,
sizeof(packet2));
1016 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
1019 mavlink_msg_local_position_ned_decode(last_msg, &packet2);
1020 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1022 memset(&packet2, 0,
sizeof(packet2));
1024 mavlink_msg_local_position_ned_decode(last_msg, &packet2);
1025 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1028 static void mavlink_test_global_position_int(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
1030 mavlink_message_t msg;
1034 963497464,963497672,963497880,963498088,963498296,18275,18379,18483,18587
1037 memset(&packet1, 0,
sizeof(packet1));
1039 packet1.
lat = packet_in.
lat;
1040 packet1.
lon = packet_in.
lon;
1041 packet1.
alt = packet_in.
alt;
1043 packet1.
vx = packet_in.
vx;
1044 packet1.
vy = packet_in.
vy;
1045 packet1.
vz = packet_in.
vz;
1046 packet1.
hdg = packet_in.
hdg;
1050 memset(&packet2, 0,
sizeof(packet2));
1051 mavlink_msg_global_position_int_encode(system_id, component_id, &msg, &packet1);
1052 mavlink_msg_global_position_int_decode(&msg, &packet2);
1053 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1055 memset(&packet2, 0,
sizeof(packet2));
1056 mavlink_msg_global_position_int_pack(system_id, component_id, &msg , packet1.
time_boot_ms , packet1.
lat , packet1.
lon , packet1.
alt , packet1.
relative_alt , packet1.
vx , packet1.
vy , packet1.
vz , packet1.
hdg );
1057 mavlink_msg_global_position_int_decode(&msg, &packet2);
1058 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1060 memset(&packet2, 0,
sizeof(packet2));
1061 mavlink_msg_global_position_int_pack_chan(system_id, component_id,
MAVLINK_COMM_0, &msg , packet1.
time_boot_ms , packet1.
lat , packet1.
lon , packet1.
alt , packet1.
relative_alt , packet1.
vx , packet1.
vy , packet1.
vz , packet1.
hdg );
1062 mavlink_msg_global_position_int_decode(&msg, &packet2);
1063 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1065 memset(&packet2, 0,
sizeof(packet2));
1067 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
1070 mavlink_msg_global_position_int_decode(last_msg, &packet2);
1071 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1073 memset(&packet2, 0,
sizeof(packet2));
1075 mavlink_msg_global_position_int_decode(last_msg, &packet2);
1076 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1079 static void mavlink_test_rc_channels_scaled(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
1081 mavlink_message_t msg;
1085 963497464,17443,17547,17651,17755,17859,17963,18067,18171,65,132
1088 memset(&packet1, 0,
sizeof(packet1));
1103 memset(&packet2, 0,
sizeof(packet2));
1104 mavlink_msg_rc_channels_scaled_encode(system_id, component_id, &msg, &packet1);
1105 mavlink_msg_rc_channels_scaled_decode(&msg, &packet2);
1106 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1108 memset(&packet2, 0,
sizeof(packet2));
1109 mavlink_msg_rc_channels_scaled_pack(system_id, component_id, &msg , packet1.
time_boot_ms , packet1.
port , packet1.
chan1_scaled , packet1.
chan2_scaled , packet1.
chan3_scaled , packet1.
chan4_scaled , packet1.
chan5_scaled , packet1.
chan6_scaled , packet1.
chan7_scaled , packet1.
chan8_scaled , packet1.
rssi );
1110 mavlink_msg_rc_channels_scaled_decode(&msg, &packet2);
1111 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1113 memset(&packet2, 0,
sizeof(packet2));
1114 mavlink_msg_rc_channels_scaled_pack_chan(system_id, component_id,
MAVLINK_COMM_0, &msg , packet1.
time_boot_ms , packet1.
port , packet1.
chan1_scaled , packet1.
chan2_scaled , packet1.
chan3_scaled , packet1.
chan4_scaled , packet1.
chan5_scaled , packet1.
chan6_scaled , packet1.
chan7_scaled , packet1.
chan8_scaled , packet1.
rssi );
1115 mavlink_msg_rc_channels_scaled_decode(&msg, &packet2);
1116 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1118 memset(&packet2, 0,
sizeof(packet2));
1120 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
1123 mavlink_msg_rc_channels_scaled_decode(last_msg, &packet2);
1124 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1126 memset(&packet2, 0,
sizeof(packet2));
1127 mavlink_msg_rc_channels_scaled_send(
MAVLINK_COMM_1 , packet1.
time_boot_ms , packet1.
port , packet1.
chan1_scaled , packet1.
chan2_scaled , packet1.
chan3_scaled , packet1.
chan4_scaled , packet1.
chan5_scaled , packet1.
chan6_scaled , packet1.
chan7_scaled , packet1.
chan8_scaled , packet1.
rssi );
1128 mavlink_msg_rc_channels_scaled_decode(last_msg, &packet2);
1129 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1132 static void mavlink_test_rc_channels_raw(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
1134 mavlink_message_t msg;
1138 963497464,17443,17547,17651,17755,17859,17963,18067,18171,65,132
1141 memset(&packet1, 0,
sizeof(packet1));
1156 memset(&packet2, 0,
sizeof(packet2));
1157 mavlink_msg_rc_channels_raw_encode(system_id, component_id, &msg, &packet1);
1158 mavlink_msg_rc_channels_raw_decode(&msg, &packet2);
1159 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1161 memset(&packet2, 0,
sizeof(packet2));
1162 mavlink_msg_rc_channels_raw_pack(system_id, component_id, &msg , packet1.
time_boot_ms , packet1.
port , packet1.
chan1_raw , packet1.
chan2_raw , packet1.
chan3_raw , packet1.
chan4_raw , packet1.
chan5_raw , packet1.
chan6_raw , packet1.
chan7_raw , packet1.
chan8_raw , packet1.
rssi );
1163 mavlink_msg_rc_channels_raw_decode(&msg, &packet2);
1164 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1166 memset(&packet2, 0,
sizeof(packet2));
1167 mavlink_msg_rc_channels_raw_pack_chan(system_id, component_id,
MAVLINK_COMM_0, &msg , packet1.
time_boot_ms , packet1.
port , packet1.
chan1_raw , packet1.
chan2_raw , packet1.
chan3_raw , packet1.
chan4_raw , packet1.
chan5_raw , packet1.
chan6_raw , packet1.
chan7_raw , packet1.
chan8_raw , packet1.
rssi );
1168 mavlink_msg_rc_channels_raw_decode(&msg, &packet2);
1169 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1171 memset(&packet2, 0,
sizeof(packet2));
1173 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
1176 mavlink_msg_rc_channels_raw_decode(last_msg, &packet2);
1177 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1179 memset(&packet2, 0,
sizeof(packet2));
1180 mavlink_msg_rc_channels_raw_send(
MAVLINK_COMM_1 , packet1.
time_boot_ms , packet1.
port , packet1.
chan1_raw , packet1.
chan2_raw , packet1.
chan3_raw , packet1.
chan4_raw , packet1.
chan5_raw , packet1.
chan6_raw , packet1.
chan7_raw , packet1.
chan8_raw , packet1.
rssi );
1181 mavlink_msg_rc_channels_raw_decode(last_msg, &packet2);
1182 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1185 static void mavlink_test_servo_output_raw(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
1187 mavlink_message_t msg;
1191 963497464,17443,17547,17651,17755,17859,17963,18067,18171,65
1194 memset(&packet1, 0,
sizeof(packet1));
1208 memset(&packet2, 0,
sizeof(packet2));
1209 mavlink_msg_servo_output_raw_encode(system_id, component_id, &msg, &packet1);
1210 mavlink_msg_servo_output_raw_decode(&msg, &packet2);
1211 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1213 memset(&packet2, 0,
sizeof(packet2));
1214 mavlink_msg_servo_output_raw_pack(system_id, component_id, &msg , packet1.
time_usec , packet1.
port , packet1.
servo1_raw , packet1.
servo2_raw , packet1.
servo3_raw , packet1.
servo4_raw , packet1.
servo5_raw , packet1.
servo6_raw , packet1.
servo7_raw , packet1.
servo8_raw );
1215 mavlink_msg_servo_output_raw_decode(&msg, &packet2);
1216 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1218 memset(&packet2, 0,
sizeof(packet2));
1219 mavlink_msg_servo_output_raw_pack_chan(system_id, component_id,
MAVLINK_COMM_0, &msg , packet1.
time_usec , packet1.
port , packet1.
servo1_raw , packet1.
servo2_raw , packet1.
servo3_raw , packet1.
servo4_raw , packet1.
servo5_raw , packet1.
servo6_raw , packet1.
servo7_raw , packet1.
servo8_raw );
1220 mavlink_msg_servo_output_raw_decode(&msg, &packet2);
1221 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1223 memset(&packet2, 0,
sizeof(packet2));
1225 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
1228 mavlink_msg_servo_output_raw_decode(last_msg, &packet2);
1229 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1231 memset(&packet2, 0,
sizeof(packet2));
1232 mavlink_msg_servo_output_raw_send(
MAVLINK_COMM_1 , packet1.
time_usec , packet1.
port , packet1.
servo1_raw , packet1.
servo2_raw , packet1.
servo3_raw , packet1.
servo4_raw , packet1.
servo5_raw , packet1.
servo6_raw , packet1.
servo7_raw , packet1.
servo8_raw );
1233 mavlink_msg_servo_output_raw_decode(last_msg, &packet2);
1234 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1237 static void mavlink_test_mission_request_partial_list(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
1239 mavlink_message_t msg;
1246 memset(&packet1, 0,
sizeof(packet1));
1254 memset(&packet2, 0,
sizeof(packet2));
1255 mavlink_msg_mission_request_partial_list_encode(system_id, component_id, &msg, &packet1);
1256 mavlink_msg_mission_request_partial_list_decode(&msg, &packet2);
1257 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1259 memset(&packet2, 0,
sizeof(packet2));
1261 mavlink_msg_mission_request_partial_list_decode(&msg, &packet2);
1262 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1264 memset(&packet2, 0,
sizeof(packet2));
1266 mavlink_msg_mission_request_partial_list_decode(&msg, &packet2);
1267 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1269 memset(&packet2, 0,
sizeof(packet2));
1271 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
1274 mavlink_msg_mission_request_partial_list_decode(last_msg, &packet2);
1275 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1277 memset(&packet2, 0,
sizeof(packet2));
1279 mavlink_msg_mission_request_partial_list_decode(last_msg, &packet2);
1280 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1283 static void mavlink_test_mission_write_partial_list(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
1285 mavlink_message_t msg;
1292 memset(&packet1, 0,
sizeof(packet1));
1300 memset(&packet2, 0,
sizeof(packet2));
1301 mavlink_msg_mission_write_partial_list_encode(system_id, component_id, &msg, &packet1);
1302 mavlink_msg_mission_write_partial_list_decode(&msg, &packet2);
1303 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1305 memset(&packet2, 0,
sizeof(packet2));
1307 mavlink_msg_mission_write_partial_list_decode(&msg, &packet2);
1308 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1310 memset(&packet2, 0,
sizeof(packet2));
1312 mavlink_msg_mission_write_partial_list_decode(&msg, &packet2);
1313 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1315 memset(&packet2, 0,
sizeof(packet2));
1317 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
1320 mavlink_msg_mission_write_partial_list_decode(last_msg, &packet2);
1321 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1323 memset(&packet2, 0,
sizeof(packet2));
1325 mavlink_msg_mission_write_partial_list_decode(last_msg, &packet2);
1326 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1329 static void mavlink_test_mission_item(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
1331 mavlink_message_t msg;
1335 17.0,45.0,73.0,101.0,129.0,157.0,185.0,18691,18795,101,168,235,46,113
1338 memset(&packet1, 0,
sizeof(packet1));
1343 packet1.
x = packet_in.
x;
1344 packet1.
y = packet_in.
y;
1345 packet1.
z = packet_in.
z;
1346 packet1.
seq = packet_in.
seq;
1356 memset(&packet2, 0,
sizeof(packet2));
1357 mavlink_msg_mission_item_encode(system_id, component_id, &msg, &packet1);
1358 mavlink_msg_mission_item_decode(&msg, &packet2);
1359 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1361 memset(&packet2, 0,
sizeof(packet2));
1362 mavlink_msg_mission_item_pack(system_id, component_id, &msg , packet1.
target_system , packet1.
target_component , packet1.
seq , packet1.
frame , packet1.
command , packet1.
current , packet1.
autocontinue , packet1.
param1 , packet1.
param2 , packet1.
param3 , packet1.
param4 , packet1.
x , packet1.
y , packet1.
z );
1363 mavlink_msg_mission_item_decode(&msg, &packet2);
1364 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1366 memset(&packet2, 0,
sizeof(packet2));
1367 mavlink_msg_mission_item_pack_chan(system_id, component_id,
MAVLINK_COMM_0, &msg , packet1.
target_system , packet1.
target_component , packet1.
seq , packet1.
frame , packet1.
command , packet1.
current , packet1.
autocontinue , packet1.
param1 , packet1.
param2 , packet1.
param3 , packet1.
param4 , packet1.
x , packet1.
y , packet1.
z );
1368 mavlink_msg_mission_item_decode(&msg, &packet2);
1369 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1371 memset(&packet2, 0,
sizeof(packet2));
1373 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
1376 mavlink_msg_mission_item_decode(last_msg, &packet2);
1377 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1379 memset(&packet2, 0,
sizeof(packet2));
1380 mavlink_msg_mission_item_send(
MAVLINK_COMM_1 , packet1.
target_system , packet1.
target_component , packet1.
seq , packet1.
frame , packet1.
command , packet1.
current , packet1.
autocontinue , packet1.
param1 , packet1.
param2 , packet1.
param3 , packet1.
param4 , packet1.
x , packet1.
y , packet1.
z );
1381 mavlink_msg_mission_item_decode(last_msg, &packet2);
1382 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1385 static void mavlink_test_mission_request(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
1387 mavlink_message_t msg;
1394 memset(&packet1, 0,
sizeof(packet1));
1395 packet1.
seq = packet_in.
seq;
1401 memset(&packet2, 0,
sizeof(packet2));
1402 mavlink_msg_mission_request_encode(system_id, component_id, &msg, &packet1);
1403 mavlink_msg_mission_request_decode(&msg, &packet2);
1404 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1406 memset(&packet2, 0,
sizeof(packet2));
1408 mavlink_msg_mission_request_decode(&msg, &packet2);
1409 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1411 memset(&packet2, 0,
sizeof(packet2));
1413 mavlink_msg_mission_request_decode(&msg, &packet2);
1414 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1416 memset(&packet2, 0,
sizeof(packet2));
1418 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
1421 mavlink_msg_mission_request_decode(last_msg, &packet2);
1422 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1424 memset(&packet2, 0,
sizeof(packet2));
1426 mavlink_msg_mission_request_decode(last_msg, &packet2);
1427 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1430 static void mavlink_test_mission_set_current(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
1432 mavlink_message_t msg;
1439 memset(&packet1, 0,
sizeof(packet1));
1440 packet1.
seq = packet_in.
seq;
1446 memset(&packet2, 0,
sizeof(packet2));
1447 mavlink_msg_mission_set_current_encode(system_id, component_id, &msg, &packet1);
1448 mavlink_msg_mission_set_current_decode(&msg, &packet2);
1449 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1451 memset(&packet2, 0,
sizeof(packet2));
1453 mavlink_msg_mission_set_current_decode(&msg, &packet2);
1454 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1456 memset(&packet2, 0,
sizeof(packet2));
1458 mavlink_msg_mission_set_current_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_mission_set_current_decode(last_msg, &packet2);
1467 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1469 memset(&packet2, 0,
sizeof(packet2));
1471 mavlink_msg_mission_set_current_decode(last_msg, &packet2);
1472 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1475 static void mavlink_test_mission_current(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
1477 mavlink_message_t msg;
1484 memset(&packet1, 0,
sizeof(packet1));
1485 packet1.
seq = packet_in.
seq;
1489 memset(&packet2, 0,
sizeof(packet2));
1490 mavlink_msg_mission_current_encode(system_id, component_id, &msg, &packet1);
1491 mavlink_msg_mission_current_decode(&msg, &packet2);
1492 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1494 memset(&packet2, 0,
sizeof(packet2));
1495 mavlink_msg_mission_current_pack(system_id, component_id, &msg , packet1.
seq );
1496 mavlink_msg_mission_current_decode(&msg, &packet2);
1497 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1499 memset(&packet2, 0,
sizeof(packet2));
1500 mavlink_msg_mission_current_pack_chan(system_id, component_id,
MAVLINK_COMM_0, &msg , packet1.
seq );
1501 mavlink_msg_mission_current_decode(&msg, &packet2);
1502 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1504 memset(&packet2, 0,
sizeof(packet2));
1506 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
1509 mavlink_msg_mission_current_decode(last_msg, &packet2);
1510 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1512 memset(&packet2, 0,
sizeof(packet2));
1514 mavlink_msg_mission_current_decode(last_msg, &packet2);
1515 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1518 static void mavlink_test_mission_request_list(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
1520 mavlink_message_t msg;
1527 memset(&packet1, 0,
sizeof(packet1));
1533 memset(&packet2, 0,
sizeof(packet2));
1534 mavlink_msg_mission_request_list_encode(system_id, component_id, &msg, &packet1);
1535 mavlink_msg_mission_request_list_decode(&msg, &packet2);
1536 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1538 memset(&packet2, 0,
sizeof(packet2));
1540 mavlink_msg_mission_request_list_decode(&msg, &packet2);
1541 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1543 memset(&packet2, 0,
sizeof(packet2));
1545 mavlink_msg_mission_request_list_decode(&msg, &packet2);
1546 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1548 memset(&packet2, 0,
sizeof(packet2));
1550 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
1553 mavlink_msg_mission_request_list_decode(last_msg, &packet2);
1554 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1556 memset(&packet2, 0,
sizeof(packet2));
1558 mavlink_msg_mission_request_list_decode(last_msg, &packet2);
1559 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1562 static void mavlink_test_mission_count(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
1564 mavlink_message_t msg;
1571 memset(&packet1, 0,
sizeof(packet1));
1578 memset(&packet2, 0,
sizeof(packet2));
1579 mavlink_msg_mission_count_encode(system_id, component_id, &msg, &packet1);
1580 mavlink_msg_mission_count_decode(&msg, &packet2);
1581 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1583 memset(&packet2, 0,
sizeof(packet2));
1585 mavlink_msg_mission_count_decode(&msg, &packet2);
1586 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1588 memset(&packet2, 0,
sizeof(packet2));
1590 mavlink_msg_mission_count_decode(&msg, &packet2);
1591 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1593 memset(&packet2, 0,
sizeof(packet2));
1595 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
1598 mavlink_msg_mission_count_decode(last_msg, &packet2);
1599 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1601 memset(&packet2, 0,
sizeof(packet2));
1603 mavlink_msg_mission_count_decode(last_msg, &packet2);
1604 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1607 static void mavlink_test_mission_clear_all(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
1609 mavlink_message_t msg;
1616 memset(&packet1, 0,
sizeof(packet1));
1622 memset(&packet2, 0,
sizeof(packet2));
1623 mavlink_msg_mission_clear_all_encode(system_id, component_id, &msg, &packet1);
1624 mavlink_msg_mission_clear_all_decode(&msg, &packet2);
1625 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1627 memset(&packet2, 0,
sizeof(packet2));
1629 mavlink_msg_mission_clear_all_decode(&msg, &packet2);
1630 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1632 memset(&packet2, 0,
sizeof(packet2));
1634 mavlink_msg_mission_clear_all_decode(&msg, &packet2);
1635 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1637 memset(&packet2, 0,
sizeof(packet2));
1639 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
1642 mavlink_msg_mission_clear_all_decode(last_msg, &packet2);
1643 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1645 memset(&packet2, 0,
sizeof(packet2));
1647 mavlink_msg_mission_clear_all_decode(last_msg, &packet2);
1648 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1651 static void mavlink_test_mission_item_reached(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
1653 mavlink_message_t msg;
1660 memset(&packet1, 0,
sizeof(packet1));
1661 packet1.
seq = packet_in.
seq;
1665 memset(&packet2, 0,
sizeof(packet2));
1666 mavlink_msg_mission_item_reached_encode(system_id, component_id, &msg, &packet1);
1667 mavlink_msg_mission_item_reached_decode(&msg, &packet2);
1668 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1670 memset(&packet2, 0,
sizeof(packet2));
1671 mavlink_msg_mission_item_reached_pack(system_id, component_id, &msg , packet1.
seq );
1672 mavlink_msg_mission_item_reached_decode(&msg, &packet2);
1673 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1675 memset(&packet2, 0,
sizeof(packet2));
1676 mavlink_msg_mission_item_reached_pack_chan(system_id, component_id,
MAVLINK_COMM_0, &msg , packet1.
seq );
1677 mavlink_msg_mission_item_reached_decode(&msg, &packet2);
1678 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1680 memset(&packet2, 0,
sizeof(packet2));
1682 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
1685 mavlink_msg_mission_item_reached_decode(last_msg, &packet2);
1686 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1688 memset(&packet2, 0,
sizeof(packet2));
1690 mavlink_msg_mission_item_reached_decode(last_msg, &packet2);
1691 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1694 static void mavlink_test_mission_ack(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
1696 mavlink_message_t msg;
1703 memset(&packet1, 0,
sizeof(packet1));
1710 memset(&packet2, 0,
sizeof(packet2));
1711 mavlink_msg_mission_ack_encode(system_id, component_id, &msg, &packet1);
1712 mavlink_msg_mission_ack_decode(&msg, &packet2);
1713 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1715 memset(&packet2, 0,
sizeof(packet2));
1717 mavlink_msg_mission_ack_decode(&msg, &packet2);
1718 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1720 memset(&packet2, 0,
sizeof(packet2));
1722 mavlink_msg_mission_ack_decode(&msg, &packet2);
1723 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1725 memset(&packet2, 0,
sizeof(packet2));
1727 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
1730 mavlink_msg_mission_ack_decode(last_msg, &packet2);
1731 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1733 memset(&packet2, 0,
sizeof(packet2));
1735 mavlink_msg_mission_ack_decode(last_msg, &packet2);
1736 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1739 static void mavlink_test_set_gps_global_origin(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
1741 mavlink_message_t msg;
1745 963497464,963497672,963497880,41
1748 memset(&packet1, 0,
sizeof(packet1));
1756 memset(&packet2, 0,
sizeof(packet2));
1757 mavlink_msg_set_gps_global_origin_encode(system_id, component_id, &msg, &packet1);
1758 mavlink_msg_set_gps_global_origin_decode(&msg, &packet2);
1759 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1761 memset(&packet2, 0,
sizeof(packet2));
1763 mavlink_msg_set_gps_global_origin_decode(&msg, &packet2);
1764 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1766 memset(&packet2, 0,
sizeof(packet2));
1768 mavlink_msg_set_gps_global_origin_decode(&msg, &packet2);
1769 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1771 memset(&packet2, 0,
sizeof(packet2));
1773 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
1776 mavlink_msg_set_gps_global_origin_decode(last_msg, &packet2);
1777 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1779 memset(&packet2, 0,
sizeof(packet2));
1781 mavlink_msg_set_gps_global_origin_decode(last_msg, &packet2);
1782 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1785 static void mavlink_test_gps_global_origin(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
1787 mavlink_message_t msg;
1791 963497464,963497672,963497880
1794 memset(&packet1, 0,
sizeof(packet1));
1801 memset(&packet2, 0,
sizeof(packet2));
1802 mavlink_msg_gps_global_origin_encode(system_id, component_id, &msg, &packet1);
1803 mavlink_msg_gps_global_origin_decode(&msg, &packet2);
1804 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1806 memset(&packet2, 0,
sizeof(packet2));
1807 mavlink_msg_gps_global_origin_pack(system_id, component_id, &msg , packet1.
latitude , packet1.
longitude , packet1.
altitude );
1808 mavlink_msg_gps_global_origin_decode(&msg, &packet2);
1809 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1811 memset(&packet2, 0,
sizeof(packet2));
1813 mavlink_msg_gps_global_origin_decode(&msg, &packet2);
1814 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1816 memset(&packet2, 0,
sizeof(packet2));
1818 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
1821 mavlink_msg_gps_global_origin_decode(last_msg, &packet2);
1822 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1824 memset(&packet2, 0,
sizeof(packet2));
1826 mavlink_msg_gps_global_origin_decode(last_msg, &packet2);
1827 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1830 static void mavlink_test_param_map_rc(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
1832 mavlink_message_t msg;
1836 17.0,45.0,73.0,101.0,18067,187,254,
"UVWXYZABCDEFGHI",113
1839 memset(&packet1, 0,
sizeof(packet1));
1852 memset(&packet2, 0,
sizeof(packet2));
1853 mavlink_msg_param_map_rc_encode(system_id, component_id, &msg, &packet1);
1854 mavlink_msg_param_map_rc_decode(&msg, &packet2);
1855 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1857 memset(&packet2, 0,
sizeof(packet2));
1858 mavlink_msg_param_map_rc_pack(system_id, component_id, &msg , packet1.
target_system , packet1.
target_component , packet1.
param_id , packet1.
param_index , packet1.
parameter_rc_channel_index , packet1.
param_value0 , packet1.
scale , packet1.
param_value_min , packet1.
param_value_max );
1859 mavlink_msg_param_map_rc_decode(&msg, &packet2);
1860 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1862 memset(&packet2, 0,
sizeof(packet2));
1863 mavlink_msg_param_map_rc_pack_chan(system_id, component_id,
MAVLINK_COMM_0, &msg , packet1.
target_system , packet1.
target_component , packet1.
param_id , packet1.
param_index , packet1.
parameter_rc_channel_index , packet1.
param_value0 , packet1.
scale , packet1.
param_value_min , packet1.
param_value_max );
1864 mavlink_msg_param_map_rc_decode(&msg, &packet2);
1865 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1867 memset(&packet2, 0,
sizeof(packet2));
1869 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
1872 mavlink_msg_param_map_rc_decode(last_msg, &packet2);
1873 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1875 memset(&packet2, 0,
sizeof(packet2));
1877 mavlink_msg_param_map_rc_decode(last_msg, &packet2);
1878 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1881 static void mavlink_test_safety_set_allowed_area(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
1883 mavlink_message_t msg;
1887 17.0,45.0,73.0,101.0,129.0,157.0,77,144,211
1890 memset(&packet1, 0,
sizeof(packet1));
1891 packet1.
p1x = packet_in.
p1x;
1892 packet1.
p1y = packet_in.
p1y;
1893 packet1.
p1z = packet_in.
p1z;
1894 packet1.
p2x = packet_in.
p2x;
1895 packet1.
p2y = packet_in.
p2y;
1896 packet1.
p2z = packet_in.
p2z;
1903 memset(&packet2, 0,
sizeof(packet2));
1904 mavlink_msg_safety_set_allowed_area_encode(system_id, component_id, &msg, &packet1);
1905 mavlink_msg_safety_set_allowed_area_decode(&msg, &packet2);
1906 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1908 memset(&packet2, 0,
sizeof(packet2));
1909 mavlink_msg_safety_set_allowed_area_pack(system_id, component_id, &msg , packet1.
target_system , packet1.
target_component , packet1.
frame , packet1.
p1x , packet1.
p1y , packet1.
p1z , packet1.
p2x , packet1.
p2y , packet1.
p2z );
1910 mavlink_msg_safety_set_allowed_area_decode(&msg, &packet2);
1911 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1913 memset(&packet2, 0,
sizeof(packet2));
1914 mavlink_msg_safety_set_allowed_area_pack_chan(system_id, component_id,
MAVLINK_COMM_0, &msg , packet1.
target_system , packet1.
target_component , packet1.
frame , packet1.
p1x , packet1.
p1y , packet1.
p1z , packet1.
p2x , packet1.
p2y , packet1.
p2z );
1915 mavlink_msg_safety_set_allowed_area_decode(&msg, &packet2);
1916 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1918 memset(&packet2, 0,
sizeof(packet2));
1920 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
1923 mavlink_msg_safety_set_allowed_area_decode(last_msg, &packet2);
1924 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1926 memset(&packet2, 0,
sizeof(packet2));
1928 mavlink_msg_safety_set_allowed_area_decode(last_msg, &packet2);
1929 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1932 static void mavlink_test_safety_allowed_area(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
1934 mavlink_message_t msg;
1938 17.0,45.0,73.0,101.0,129.0,157.0,77
1941 memset(&packet1, 0,
sizeof(packet1));
1942 packet1.
p1x = packet_in.
p1x;
1943 packet1.
p1y = packet_in.
p1y;
1944 packet1.
p1z = packet_in.
p1z;
1945 packet1.
p2x = packet_in.
p2x;
1946 packet1.
p2y = packet_in.
p2y;
1947 packet1.
p2z = packet_in.
p2z;
1952 memset(&packet2, 0,
sizeof(packet2));
1953 mavlink_msg_safety_allowed_area_encode(system_id, component_id, &msg, &packet1);
1954 mavlink_msg_safety_allowed_area_decode(&msg, &packet2);
1955 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1957 memset(&packet2, 0,
sizeof(packet2));
1958 mavlink_msg_safety_allowed_area_pack(system_id, component_id, &msg , packet1.
frame , packet1.
p1x , packet1.
p1y , packet1.
p1z , packet1.
p2x , packet1.
p2y , packet1.
p2z );
1959 mavlink_msg_safety_allowed_area_decode(&msg, &packet2);
1960 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1962 memset(&packet2, 0,
sizeof(packet2));
1963 mavlink_msg_safety_allowed_area_pack_chan(system_id, component_id,
MAVLINK_COMM_0, &msg , packet1.
frame , packet1.
p1x , packet1.
p1y , packet1.
p1z , packet1.
p2x , packet1.
p2y , packet1.
p2z );
1964 mavlink_msg_safety_allowed_area_decode(&msg, &packet2);
1965 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1967 memset(&packet2, 0,
sizeof(packet2));
1969 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
1972 mavlink_msg_safety_allowed_area_decode(last_msg, &packet2);
1973 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1975 memset(&packet2, 0,
sizeof(packet2));
1977 mavlink_msg_safety_allowed_area_decode(last_msg, &packet2);
1978 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1981 static void mavlink_test_attitude_quaternion_cov(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
1983 mavlink_message_t msg;
1987 963497464,{ 45.0, 46.0, 47.0, 48.0 },157.0,185.0,213.0,{ 241.0, 242.0, 243.0, 244.0, 245.0, 246.0, 247.0, 248.0, 249.0 }
1990 memset(&packet1, 0,
sizeof(packet1));
1996 mav_array_memcpy(packet1.
q, packet_in.
q,
sizeof(
float)*4);
2000 memset(&packet2, 0,
sizeof(packet2));
2001 mavlink_msg_attitude_quaternion_cov_encode(system_id, component_id, &msg, &packet1);
2002 mavlink_msg_attitude_quaternion_cov_decode(&msg, &packet2);
2003 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2005 memset(&packet2, 0,
sizeof(packet2));
2007 mavlink_msg_attitude_quaternion_cov_decode(&msg, &packet2);
2008 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2010 memset(&packet2, 0,
sizeof(packet2));
2012 mavlink_msg_attitude_quaternion_cov_decode(&msg, &packet2);
2013 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2015 memset(&packet2, 0,
sizeof(packet2));
2017 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
2020 mavlink_msg_attitude_quaternion_cov_decode(last_msg, &packet2);
2021 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2023 memset(&packet2, 0,
sizeof(packet2));
2025 mavlink_msg_attitude_quaternion_cov_decode(last_msg, &packet2);
2026 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2029 static void mavlink_test_nav_controller_output(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
2031 mavlink_message_t msg;
2035 17.0,45.0,73.0,101.0,129.0,18275,18379,18483
2038 memset(&packet1, 0,
sizeof(packet1));
2050 memset(&packet2, 0,
sizeof(packet2));
2051 mavlink_msg_nav_controller_output_encode(system_id, component_id, &msg, &packet1);
2052 mavlink_msg_nav_controller_output_decode(&msg, &packet2);
2053 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2055 memset(&packet2, 0,
sizeof(packet2));
2056 mavlink_msg_nav_controller_output_pack(system_id, component_id, &msg , packet1.
nav_roll , packet1.
nav_pitch , packet1.
nav_bearing , packet1.
target_bearing , packet1.
wp_dist , packet1.
alt_error , packet1.
aspd_error , packet1.
xtrack_error );
2057 mavlink_msg_nav_controller_output_decode(&msg, &packet2);
2058 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2060 memset(&packet2, 0,
sizeof(packet2));
2061 mavlink_msg_nav_controller_output_pack_chan(system_id, component_id,
MAVLINK_COMM_0, &msg , packet1.
nav_roll , packet1.
nav_pitch , packet1.
nav_bearing , packet1.
target_bearing , packet1.
wp_dist , packet1.
alt_error , packet1.
aspd_error , packet1.
xtrack_error );
2062 mavlink_msg_nav_controller_output_decode(&msg, &packet2);
2063 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2065 memset(&packet2, 0,
sizeof(packet2));
2067 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
2070 mavlink_msg_nav_controller_output_decode(last_msg, &packet2);
2071 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2073 memset(&packet2, 0,
sizeof(packet2));
2075 mavlink_msg_nav_controller_output_decode(last_msg, &packet2);
2076 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2079 static void mavlink_test_global_position_int_cov(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
2081 mavlink_message_t msg;
2085 93372036854775807ULL,963497880,963498088,963498296,963498504,963498712,213.0,241.0,269.0,{ 297.0, 298.0, 299.0, 300.0, 301.0, 302.0, 303.0, 304.0, 305.0, 306.0, 307.0, 308.0, 309.0, 310.0, 311.0, 312.0, 313.0, 314.0, 315.0, 316.0, 317.0, 318.0, 319.0, 320.0, 321.0, 322.0, 323.0, 324.0, 325.0, 326.0, 327.0, 328.0, 329.0, 330.0, 331.0, 332.0 },45
2088 memset(&packet1, 0,
sizeof(packet1));
2091 packet1.
lat = packet_in.
lat;
2092 packet1.
lon = packet_in.
lon;
2093 packet1.
alt = packet_in.
alt;
2095 packet1.
vx = packet_in.
vx;
2096 packet1.
vy = packet_in.
vy;
2097 packet1.
vz = packet_in.
vz;
2103 memset(&packet2, 0,
sizeof(packet2));
2104 mavlink_msg_global_position_int_cov_encode(system_id, component_id, &msg, &packet1);
2105 mavlink_msg_global_position_int_cov_decode(&msg, &packet2);
2106 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2108 memset(&packet2, 0,
sizeof(packet2));
2109 mavlink_msg_global_position_int_cov_pack(system_id, component_id, &msg , packet1.
time_boot_ms , packet1.
time_utc , packet1.
estimator_type , packet1.
lat , packet1.
lon , packet1.
alt , packet1.
relative_alt , packet1.
vx , packet1.
vy , packet1.
vz , packet1.
covariance );
2110 mavlink_msg_global_position_int_cov_decode(&msg, &packet2);
2111 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2113 memset(&packet2, 0,
sizeof(packet2));
2114 mavlink_msg_global_position_int_cov_pack_chan(system_id, component_id,
MAVLINK_COMM_0, &msg , packet1.
time_boot_ms , packet1.
time_utc , packet1.
estimator_type , packet1.
lat , packet1.
lon , packet1.
alt , packet1.
relative_alt , packet1.
vx , packet1.
vy , packet1.
vz , packet1.
covariance );
2115 mavlink_msg_global_position_int_cov_decode(&msg, &packet2);
2116 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2118 memset(&packet2, 0,
sizeof(packet2));
2120 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
2123 mavlink_msg_global_position_int_cov_decode(last_msg, &packet2);
2124 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2126 memset(&packet2, 0,
sizeof(packet2));
2127 mavlink_msg_global_position_int_cov_send(
MAVLINK_COMM_1 , packet1.
time_boot_ms , packet1.
time_utc , packet1.
estimator_type , packet1.
lat , packet1.
lon , packet1.
alt , packet1.
relative_alt , packet1.
vx , packet1.
vy , packet1.
vz , packet1.
covariance );
2128 mavlink_msg_global_position_int_cov_decode(last_msg, &packet2);
2129 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2132 static void mavlink_test_local_position_ned_cov(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
2134 mavlink_message_t msg;
2138 93372036854775807ULL,963497880,101.0,129.0,157.0,185.0,213.0,241.0,269.0,297.0,325.0,{ 353.0, 354.0, 355.0, 356.0, 357.0, 358.0, 359.0, 360.0, 361.0, 362.0, 363.0, 364.0, 365.0, 366.0, 367.0, 368.0, 369.0, 370.0, 371.0, 372.0, 373.0, 374.0, 375.0, 376.0, 377.0, 378.0, 379.0, 380.0, 381.0, 382.0, 383.0, 384.0, 385.0, 386.0, 387.0, 388.0, 389.0, 390.0, 391.0, 392.0, 393.0, 394.0, 395.0, 396.0, 397.0 },177
2141 memset(&packet1, 0,
sizeof(packet1));
2144 packet1.
x = packet_in.
x;
2145 packet1.
y = packet_in.
y;
2146 packet1.
z = packet_in.
z;
2147 packet1.
vx = packet_in.
vx;
2148 packet1.
vy = packet_in.
vy;
2149 packet1.
vz = packet_in.
vz;
2150 packet1.
ax = packet_in.
ax;
2151 packet1.
ay = packet_in.
ay;
2152 packet1.
az = packet_in.
az;
2158 memset(&packet2, 0,
sizeof(packet2));
2159 mavlink_msg_local_position_ned_cov_encode(system_id, component_id, &msg, &packet1);
2160 mavlink_msg_local_position_ned_cov_decode(&msg, &packet2);
2161 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2163 memset(&packet2, 0,
sizeof(packet2));
2164 mavlink_msg_local_position_ned_cov_pack(system_id, component_id, &msg , packet1.
time_boot_ms , packet1.
time_utc , packet1.
estimator_type , packet1.
x , packet1.
y , packet1.
z , packet1.
vx , packet1.
vy , packet1.
vz , packet1.
ax , packet1.
ay , packet1.
az , packet1.
covariance );
2165 mavlink_msg_local_position_ned_cov_decode(&msg, &packet2);
2166 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2168 memset(&packet2, 0,
sizeof(packet2));
2169 mavlink_msg_local_position_ned_cov_pack_chan(system_id, component_id,
MAVLINK_COMM_0, &msg , packet1.
time_boot_ms , packet1.
time_utc , packet1.
estimator_type , packet1.
x , packet1.
y , packet1.
z , packet1.
vx , packet1.
vy , packet1.
vz , packet1.
ax , packet1.
ay , packet1.
az , packet1.
covariance );
2170 mavlink_msg_local_position_ned_cov_decode(&msg, &packet2);
2171 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2173 memset(&packet2, 0,
sizeof(packet2));
2175 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
2178 mavlink_msg_local_position_ned_cov_decode(last_msg, &packet2);
2179 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2181 memset(&packet2, 0,
sizeof(packet2));
2182 mavlink_msg_local_position_ned_cov_send(
MAVLINK_COMM_1 , packet1.
time_boot_ms , packet1.
time_utc , packet1.
estimator_type , packet1.
x , packet1.
y , packet1.
z , packet1.
vx , packet1.
vy , packet1.
vz , packet1.
ax , packet1.
ay , packet1.
az , packet1.
covariance );
2183 mavlink_msg_local_position_ned_cov_decode(last_msg, &packet2);
2184 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2187 static void mavlink_test_rc_channels(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
2189 mavlink_message_t msg;
2193 963497464,17443,17547,17651,17755,17859,17963,18067,18171,18275,18379,18483,18587,18691,18795,18899,19003,19107,19211,125,192
2196 memset(&packet1, 0,
sizeof(packet1));
2221 memset(&packet2, 0,
sizeof(packet2));
2222 mavlink_msg_rc_channels_encode(system_id, component_id, &msg, &packet1);
2223 mavlink_msg_rc_channels_decode(&msg, &packet2);
2224 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2226 memset(&packet2, 0,
sizeof(packet2));
2227 mavlink_msg_rc_channels_pack(system_id, component_id, &msg , packet1.
time_boot_ms , packet1.
chancount , packet1.
chan1_raw , packet1.
chan2_raw , packet1.
chan3_raw , packet1.
chan4_raw , packet1.
chan5_raw , packet1.
chan6_raw , packet1.
chan7_raw , packet1.
chan8_raw , packet1.
chan9_raw , packet1.
chan10_raw , packet1.
chan11_raw , packet1.
chan12_raw , packet1.
chan13_raw , packet1.
chan14_raw , packet1.
chan15_raw , packet1.
chan16_raw , packet1.
chan17_raw , packet1.
chan18_raw , packet1.
rssi );
2228 mavlink_msg_rc_channels_decode(&msg, &packet2);
2229 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2231 memset(&packet2, 0,
sizeof(packet2));
2232 mavlink_msg_rc_channels_pack_chan(system_id, component_id,
MAVLINK_COMM_0, &msg , packet1.
time_boot_ms , packet1.
chancount , packet1.
chan1_raw , packet1.
chan2_raw , packet1.
chan3_raw , packet1.
chan4_raw , packet1.
chan5_raw , packet1.
chan6_raw , packet1.
chan7_raw , packet1.
chan8_raw , packet1.
chan9_raw , packet1.
chan10_raw , packet1.
chan11_raw , packet1.
chan12_raw , packet1.
chan13_raw , packet1.
chan14_raw , packet1.
chan15_raw , packet1.
chan16_raw , packet1.
chan17_raw , packet1.
chan18_raw , packet1.
rssi );
2233 mavlink_msg_rc_channels_decode(&msg, &packet2);
2234 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2236 memset(&packet2, 0,
sizeof(packet2));
2238 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
2241 mavlink_msg_rc_channels_decode(last_msg, &packet2);
2242 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2244 memset(&packet2, 0,
sizeof(packet2));
2245 mavlink_msg_rc_channels_send(
MAVLINK_COMM_1 , packet1.
time_boot_ms , packet1.
chancount , packet1.
chan1_raw , packet1.
chan2_raw , packet1.
chan3_raw , packet1.
chan4_raw , packet1.
chan5_raw , packet1.
chan6_raw , packet1.
chan7_raw , packet1.
chan8_raw , packet1.
chan9_raw , packet1.
chan10_raw , packet1.
chan11_raw , packet1.
chan12_raw , packet1.
chan13_raw , packet1.
chan14_raw , packet1.
chan15_raw , packet1.
chan16_raw , packet1.
chan17_raw , packet1.
chan18_raw , packet1.
rssi );
2246 mavlink_msg_rc_channels_decode(last_msg, &packet2);
2247 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2250 static void mavlink_test_request_data_stream(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
2252 mavlink_message_t msg;
2259 memset(&packet1, 0,
sizeof(packet1));
2268 memset(&packet2, 0,
sizeof(packet2));
2269 mavlink_msg_request_data_stream_encode(system_id, component_id, &msg, &packet1);
2270 mavlink_msg_request_data_stream_decode(&msg, &packet2);
2271 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2273 memset(&packet2, 0,
sizeof(packet2));
2275 mavlink_msg_request_data_stream_decode(&msg, &packet2);
2276 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2278 memset(&packet2, 0,
sizeof(packet2));
2280 mavlink_msg_request_data_stream_decode(&msg, &packet2);
2281 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2283 memset(&packet2, 0,
sizeof(packet2));
2285 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
2288 mavlink_msg_request_data_stream_decode(last_msg, &packet2);
2289 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2291 memset(&packet2, 0,
sizeof(packet2));
2293 mavlink_msg_request_data_stream_decode(last_msg, &packet2);
2294 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2297 static void mavlink_test_data_stream(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
2299 mavlink_message_t msg;
2306 memset(&packet1, 0,
sizeof(packet1));
2313 memset(&packet2, 0,
sizeof(packet2));
2314 mavlink_msg_data_stream_encode(system_id, component_id, &msg, &packet1);
2315 mavlink_msg_data_stream_decode(&msg, &packet2);
2316 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2318 memset(&packet2, 0,
sizeof(packet2));
2320 mavlink_msg_data_stream_decode(&msg, &packet2);
2321 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2323 memset(&packet2, 0,
sizeof(packet2));
2325 mavlink_msg_data_stream_decode(&msg, &packet2);
2326 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2328 memset(&packet2, 0,
sizeof(packet2));
2330 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
2333 mavlink_msg_data_stream_decode(last_msg, &packet2);
2334 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2336 memset(&packet2, 0,
sizeof(packet2));
2338 mavlink_msg_data_stream_decode(last_msg, &packet2);
2339 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2342 static void mavlink_test_manual_control(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
2344 mavlink_message_t msg;
2348 17235,17339,17443,17547,17651,163
2351 memset(&packet1, 0,
sizeof(packet1));
2352 packet1.
x = packet_in.
x;
2353 packet1.
y = packet_in.
y;
2354 packet1.
z = packet_in.
z;
2355 packet1.
r = packet_in.
r;
2361 memset(&packet2, 0,
sizeof(packet2));
2362 mavlink_msg_manual_control_encode(system_id, component_id, &msg, &packet1);
2363 mavlink_msg_manual_control_decode(&msg, &packet2);
2364 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2366 memset(&packet2, 0,
sizeof(packet2));
2367 mavlink_msg_manual_control_pack(system_id, component_id, &msg , packet1.
target , packet1.
x , packet1.
y , packet1.
z , packet1.
r , packet1.
buttons );
2368 mavlink_msg_manual_control_decode(&msg, &packet2);
2369 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2371 memset(&packet2, 0,
sizeof(packet2));
2372 mavlink_msg_manual_control_pack_chan(system_id, component_id,
MAVLINK_COMM_0, &msg , packet1.
target , packet1.
x , packet1.
y , packet1.
z , packet1.
r , packet1.
buttons );
2373 mavlink_msg_manual_control_decode(&msg, &packet2);
2374 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2376 memset(&packet2, 0,
sizeof(packet2));
2378 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
2381 mavlink_msg_manual_control_decode(last_msg, &packet2);
2382 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2384 memset(&packet2, 0,
sizeof(packet2));
2386 mavlink_msg_manual_control_decode(last_msg, &packet2);
2387 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2390 static void mavlink_test_rc_channels_override(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
2392 mavlink_message_t msg;
2396 17235,17339,17443,17547,17651,17755,17859,17963,53,120
2399 memset(&packet1, 0,
sizeof(packet1));
2413 memset(&packet2, 0,
sizeof(packet2));
2414 mavlink_msg_rc_channels_override_encode(system_id, component_id, &msg, &packet1);
2415 mavlink_msg_rc_channels_override_decode(&msg, &packet2);
2416 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2418 memset(&packet2, 0,
sizeof(packet2));
2419 mavlink_msg_rc_channels_override_pack(system_id, component_id, &msg , packet1.
target_system , packet1.
target_component , packet1.
chan1_raw , packet1.
chan2_raw , packet1.
chan3_raw , packet1.
chan4_raw , packet1.
chan5_raw , packet1.
chan6_raw , packet1.
chan7_raw , packet1.
chan8_raw );
2420 mavlink_msg_rc_channels_override_decode(&msg, &packet2);
2421 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2423 memset(&packet2, 0,
sizeof(packet2));
2424 mavlink_msg_rc_channels_override_pack_chan(system_id, component_id,
MAVLINK_COMM_0, &msg , packet1.
target_system , packet1.
target_component , packet1.
chan1_raw , packet1.
chan2_raw , packet1.
chan3_raw , packet1.
chan4_raw , packet1.
chan5_raw , packet1.
chan6_raw , packet1.
chan7_raw , packet1.
chan8_raw );
2425 mavlink_msg_rc_channels_override_decode(&msg, &packet2);
2426 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2428 memset(&packet2, 0,
sizeof(packet2));
2430 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
2433 mavlink_msg_rc_channels_override_decode(last_msg, &packet2);
2434 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2436 memset(&packet2, 0,
sizeof(packet2));
2437 mavlink_msg_rc_channels_override_send(
MAVLINK_COMM_1 , packet1.
target_system , packet1.
target_component , packet1.
chan1_raw , packet1.
chan2_raw , packet1.
chan3_raw , packet1.
chan4_raw , packet1.
chan5_raw , packet1.
chan6_raw , packet1.
chan7_raw , packet1.
chan8_raw );
2438 mavlink_msg_rc_channels_override_decode(last_msg, &packet2);
2439 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2442 static void mavlink_test_mission_item_int(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
2444 mavlink_message_t msg;
2448 17.0,45.0,73.0,101.0,963498296,963498504,185.0,18691,18795,101,168,235,46,113
2451 memset(&packet1, 0,
sizeof(packet1));
2456 packet1.
x = packet_in.
x;
2457 packet1.
y = packet_in.
y;
2458 packet1.
z = packet_in.
z;
2459 packet1.
seq = packet_in.
seq;
2469 memset(&packet2, 0,
sizeof(packet2));
2470 mavlink_msg_mission_item_int_encode(system_id, component_id, &msg, &packet1);
2471 mavlink_msg_mission_item_int_decode(&msg, &packet2);
2472 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2474 memset(&packet2, 0,
sizeof(packet2));
2475 mavlink_msg_mission_item_int_pack(system_id, component_id, &msg , packet1.
target_system , packet1.
target_component , packet1.
seq , packet1.
frame , packet1.
command , packet1.
current , packet1.
autocontinue , packet1.
param1 , packet1.
param2 , packet1.
param3 , packet1.
param4 , packet1.
x , packet1.
y , packet1.
z );
2476 mavlink_msg_mission_item_int_decode(&msg, &packet2);
2477 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2479 memset(&packet2, 0,
sizeof(packet2));
2480 mavlink_msg_mission_item_int_pack_chan(system_id, component_id,
MAVLINK_COMM_0, &msg , packet1.
target_system , packet1.
target_component , packet1.
seq , packet1.
frame , packet1.
command , packet1.
current , packet1.
autocontinue , packet1.
param1 , packet1.
param2 , packet1.
param3 , packet1.
param4 , packet1.
x , packet1.
y , packet1.
z );
2481 mavlink_msg_mission_item_int_decode(&msg, &packet2);
2482 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2484 memset(&packet2, 0,
sizeof(packet2));
2486 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
2489 mavlink_msg_mission_item_int_decode(last_msg, &packet2);
2490 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2492 memset(&packet2, 0,
sizeof(packet2));
2493 mavlink_msg_mission_item_int_send(
MAVLINK_COMM_1 , packet1.
target_system , packet1.
target_component , packet1.
seq , packet1.
frame , packet1.
command , packet1.
current , packet1.
autocontinue , packet1.
param1 , packet1.
param2 , packet1.
param3 , packet1.
param4 , packet1.
x , packet1.
y , packet1.
z );
2494 mavlink_msg_mission_item_int_decode(last_msg, &packet2);
2495 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2498 static void mavlink_test_vfr_hud(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
2500 mavlink_message_t msg;
2504 17.0,45.0,73.0,101.0,18067,18171
2507 memset(&packet1, 0,
sizeof(packet1));
2510 packet1.
alt = packet_in.
alt;
2517 memset(&packet2, 0,
sizeof(packet2));
2518 mavlink_msg_vfr_hud_encode(system_id, component_id, &msg, &packet1);
2519 mavlink_msg_vfr_hud_decode(&msg, &packet2);
2520 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2522 memset(&packet2, 0,
sizeof(packet2));
2524 mavlink_msg_vfr_hud_decode(&msg, &packet2);
2525 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2527 memset(&packet2, 0,
sizeof(packet2));
2529 mavlink_msg_vfr_hud_decode(&msg, &packet2);
2530 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2532 memset(&packet2, 0,
sizeof(packet2));
2534 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
2537 mavlink_msg_vfr_hud_decode(last_msg, &packet2);
2538 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2540 memset(&packet2, 0,
sizeof(packet2));
2542 mavlink_msg_vfr_hud_decode(last_msg, &packet2);
2543 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2546 static void mavlink_test_command_int(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
2548 mavlink_message_t msg;
2552 17.0,45.0,73.0,101.0,963498296,963498504,185.0,18691,223,34,101,168,235
2555 memset(&packet1, 0,
sizeof(packet1));
2560 packet1.
x = packet_in.
x;
2561 packet1.
y = packet_in.
y;
2562 packet1.
z = packet_in.
z;
2572 memset(&packet2, 0,
sizeof(packet2));
2573 mavlink_msg_command_int_encode(system_id, component_id, &msg, &packet1);
2574 mavlink_msg_command_int_decode(&msg, &packet2);
2575 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2577 memset(&packet2, 0,
sizeof(packet2));
2578 mavlink_msg_command_int_pack(system_id, component_id, &msg , packet1.
target_system , packet1.
target_component , packet1.
frame , packet1.
command , packet1.
current , packet1.
autocontinue , packet1.
param1 , packet1.
param2 , packet1.
param3 , packet1.
param4 , packet1.
x , packet1.
y , packet1.
z );
2579 mavlink_msg_command_int_decode(&msg, &packet2);
2580 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2582 memset(&packet2, 0,
sizeof(packet2));
2583 mavlink_msg_command_int_pack_chan(system_id, component_id,
MAVLINK_COMM_0, &msg , packet1.
target_system , packet1.
target_component , packet1.
frame , packet1.
command , packet1.
current , packet1.
autocontinue , packet1.
param1 , packet1.
param2 , packet1.
param3 , packet1.
param4 , packet1.
x , packet1.
y , packet1.
z );
2584 mavlink_msg_command_int_decode(&msg, &packet2);
2585 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2587 memset(&packet2, 0,
sizeof(packet2));
2589 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
2592 mavlink_msg_command_int_decode(last_msg, &packet2);
2593 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2595 memset(&packet2, 0,
sizeof(packet2));
2596 mavlink_msg_command_int_send(
MAVLINK_COMM_1 , packet1.
target_system , packet1.
target_component , packet1.
frame , packet1.
command , packet1.
current , packet1.
autocontinue , packet1.
param1 , packet1.
param2 , packet1.
param3 , packet1.
param4 , packet1.
x , packet1.
y , packet1.
z );
2597 mavlink_msg_command_int_decode(last_msg, &packet2);
2598 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2601 static void mavlink_test_command_long(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
2603 mavlink_message_t msg;
2607 17.0,45.0,73.0,101.0,129.0,157.0,185.0,18691,223,34,101
2610 memset(&packet1, 0,
sizeof(packet1));
2625 memset(&packet2, 0,
sizeof(packet2));
2626 mavlink_msg_command_long_encode(system_id, component_id, &msg, &packet1);
2627 mavlink_msg_command_long_decode(&msg, &packet2);
2628 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2630 memset(&packet2, 0,
sizeof(packet2));
2631 mavlink_msg_command_long_pack(system_id, component_id, &msg , packet1.
target_system , packet1.
target_component , packet1.
command , packet1.
confirmation , packet1.
param1 , packet1.
param2 , packet1.
param3 , packet1.
param4 , packet1.
param5 , packet1.
param6 , packet1.
param7 );
2632 mavlink_msg_command_long_decode(&msg, &packet2);
2633 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2635 memset(&packet2, 0,
sizeof(packet2));
2636 mavlink_msg_command_long_pack_chan(system_id, component_id,
MAVLINK_COMM_0, &msg , packet1.
target_system , packet1.
target_component , packet1.
command , packet1.
confirmation , packet1.
param1 , packet1.
param2 , packet1.
param3 , packet1.
param4 , packet1.
param5 , packet1.
param6 , packet1.
param7 );
2637 mavlink_msg_command_long_decode(&msg, &packet2);
2638 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2640 memset(&packet2, 0,
sizeof(packet2));
2642 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
2645 mavlink_msg_command_long_decode(last_msg, &packet2);
2646 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2648 memset(&packet2, 0,
sizeof(packet2));
2649 mavlink_msg_command_long_send(
MAVLINK_COMM_1 , packet1.
target_system , packet1.
target_component , packet1.
command , packet1.
confirmation , packet1.
param1 , packet1.
param2 , packet1.
param3 , packet1.
param4 , packet1.
param5 , packet1.
param6 , packet1.
param7 );
2650 mavlink_msg_command_long_decode(last_msg, &packet2);
2651 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2654 static void mavlink_test_command_ack(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
2656 mavlink_message_t msg;
2663 memset(&packet1, 0,
sizeof(packet1));
2669 memset(&packet2, 0,
sizeof(packet2));
2670 mavlink_msg_command_ack_encode(system_id, component_id, &msg, &packet1);
2671 mavlink_msg_command_ack_decode(&msg, &packet2);
2672 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2674 memset(&packet2, 0,
sizeof(packet2));
2675 mavlink_msg_command_ack_pack(system_id, component_id, &msg , packet1.
command , packet1.
result );
2676 mavlink_msg_command_ack_decode(&msg, &packet2);
2677 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2679 memset(&packet2, 0,
sizeof(packet2));
2681 mavlink_msg_command_ack_decode(&msg, &packet2);
2682 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2684 memset(&packet2, 0,
sizeof(packet2));
2686 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
2689 mavlink_msg_command_ack_decode(last_msg, &packet2);
2690 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2692 memset(&packet2, 0,
sizeof(packet2));
2694 mavlink_msg_command_ack_decode(last_msg, &packet2);
2695 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2698 static void mavlink_test_manual_setpoint(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
2700 mavlink_message_t msg;
2704 963497464,45.0,73.0,101.0,129.0,65,132
2707 memset(&packet1, 0,
sizeof(packet1));
2711 packet1.
yaw = packet_in.
yaw;
2718 memset(&packet2, 0,
sizeof(packet2));
2719 mavlink_msg_manual_setpoint_encode(system_id, component_id, &msg, &packet1);
2720 mavlink_msg_manual_setpoint_decode(&msg, &packet2);
2721 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2723 memset(&packet2, 0,
sizeof(packet2));
2725 mavlink_msg_manual_setpoint_decode(&msg, &packet2);
2726 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2728 memset(&packet2, 0,
sizeof(packet2));
2729 mavlink_msg_manual_setpoint_pack_chan(system_id, component_id,
MAVLINK_COMM_0, &msg , packet1.
time_boot_ms , packet1.
roll , packet1.
pitch , packet1.
yaw , packet1.
thrust , packet1.
mode_switch , packet1.
manual_override_switch );
2730 mavlink_msg_manual_setpoint_decode(&msg, &packet2);
2731 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2733 memset(&packet2, 0,
sizeof(packet2));
2735 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
2738 mavlink_msg_manual_setpoint_decode(last_msg, &packet2);
2739 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2741 memset(&packet2, 0,
sizeof(packet2));
2743 mavlink_msg_manual_setpoint_decode(last_msg, &packet2);
2744 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2747 static void mavlink_test_set_attitude_target(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
2749 mavlink_message_t msg;
2753 963497464,{ 45.0, 46.0, 47.0, 48.0 },157.0,185.0,213.0,241.0,113,180,247
2756 memset(&packet1, 0,
sizeof(packet1));
2766 mav_array_memcpy(packet1.
q, packet_in.
q,
sizeof(
float)*4);
2769 memset(&packet2, 0,
sizeof(packet2));
2770 mavlink_msg_set_attitude_target_encode(system_id, component_id, &msg, &packet1);
2771 mavlink_msg_set_attitude_target_decode(&msg, &packet2);
2772 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2774 memset(&packet2, 0,
sizeof(packet2));
2775 mavlink_msg_set_attitude_target_pack(system_id, component_id, &msg , packet1.
time_boot_ms , packet1.
target_system , packet1.
target_component , packet1.
type_mask , packet1.
q , packet1.
body_roll_rate , packet1.
body_pitch_rate , packet1.
body_yaw_rate , packet1.
thrust );
2776 mavlink_msg_set_attitude_target_decode(&msg, &packet2);
2777 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2779 memset(&packet2, 0,
sizeof(packet2));
2780 mavlink_msg_set_attitude_target_pack_chan(system_id, component_id,
MAVLINK_COMM_0, &msg , packet1.
time_boot_ms , packet1.
target_system , packet1.
target_component , packet1.
type_mask , packet1.
q , packet1.
body_roll_rate , packet1.
body_pitch_rate , packet1.
body_yaw_rate , packet1.
thrust );
2781 mavlink_msg_set_attitude_target_decode(&msg, &packet2);
2782 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2784 memset(&packet2, 0,
sizeof(packet2));
2786 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
2789 mavlink_msg_set_attitude_target_decode(last_msg, &packet2);
2790 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2792 memset(&packet2, 0,
sizeof(packet2));
2794 mavlink_msg_set_attitude_target_decode(last_msg, &packet2);
2795 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2798 static void mavlink_test_attitude_target(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
2800 mavlink_message_t msg;
2804 963497464,{ 45.0, 46.0, 47.0, 48.0 },157.0,185.0,213.0,241.0,113
2807 memset(&packet1, 0,
sizeof(packet1));
2815 mav_array_memcpy(packet1.
q, packet_in.
q,
sizeof(
float)*4);
2818 memset(&packet2, 0,
sizeof(packet2));
2819 mavlink_msg_attitude_target_encode(system_id, component_id, &msg, &packet1);
2820 mavlink_msg_attitude_target_decode(&msg, &packet2);
2821 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2823 memset(&packet2, 0,
sizeof(packet2));
2825 mavlink_msg_attitude_target_decode(&msg, &packet2);
2826 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2828 memset(&packet2, 0,
sizeof(packet2));
2829 mavlink_msg_attitude_target_pack_chan(system_id, component_id,
MAVLINK_COMM_0, &msg , packet1.
time_boot_ms , packet1.
type_mask , packet1.
q , packet1.
body_roll_rate , packet1.
body_pitch_rate , packet1.
body_yaw_rate , packet1.
thrust );
2830 mavlink_msg_attitude_target_decode(&msg, &packet2);
2831 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2833 memset(&packet2, 0,
sizeof(packet2));
2835 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
2838 mavlink_msg_attitude_target_decode(last_msg, &packet2);
2839 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2841 memset(&packet2, 0,
sizeof(packet2));
2843 mavlink_msg_attitude_target_decode(last_msg, &packet2);
2844 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2847 static void mavlink_test_set_position_target_local_ned(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
2849 mavlink_message_t msg;
2853 963497464,45.0,73.0,101.0,129.0,157.0,185.0,213.0,241.0,269.0,297.0,325.0,19731,27,94,161
2856 memset(&packet1, 0,
sizeof(packet1));
2858 packet1.
x = packet_in.
x;
2859 packet1.
y = packet_in.
y;
2860 packet1.
z = packet_in.
z;
2861 packet1.
vx = packet_in.
vx;
2862 packet1.
vy = packet_in.
vy;
2863 packet1.
vz = packet_in.
vz;
2864 packet1.
afx = packet_in.
afx;
2865 packet1.
afy = packet_in.
afy;
2866 packet1.
afz = packet_in.
afz;
2867 packet1.
yaw = packet_in.
yaw;
2876 memset(&packet2, 0,
sizeof(packet2));
2877 mavlink_msg_set_position_target_local_ned_encode(system_id, component_id, &msg, &packet1);
2878 mavlink_msg_set_position_target_local_ned_decode(&msg, &packet2);
2879 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2881 memset(&packet2, 0,
sizeof(packet2));
2882 mavlink_msg_set_position_target_local_ned_pack(system_id, component_id, &msg , packet1.
time_boot_ms , packet1.
target_system , packet1.
target_component , packet1.
coordinate_frame , packet1.
type_mask , packet1.
x , packet1.
y , packet1.
z , packet1.
vx , packet1.
vy , packet1.
vz , packet1.
afx , packet1.
afy , packet1.
afz , packet1.
yaw , packet1.
yaw_rate );
2883 mavlink_msg_set_position_target_local_ned_decode(&msg, &packet2);
2884 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2886 memset(&packet2, 0,
sizeof(packet2));
2887 mavlink_msg_set_position_target_local_ned_pack_chan(system_id, component_id,
MAVLINK_COMM_0, &msg , packet1.
time_boot_ms , packet1.
target_system , packet1.
target_component , packet1.
coordinate_frame , packet1.
type_mask , packet1.
x , packet1.
y , packet1.
z , packet1.
vx , packet1.
vy , packet1.
vz , packet1.
afx , packet1.
afy , packet1.
afz , packet1.
yaw , packet1.
yaw_rate );
2888 mavlink_msg_set_position_target_local_ned_decode(&msg, &packet2);
2889 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2891 memset(&packet2, 0,
sizeof(packet2));
2893 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
2896 mavlink_msg_set_position_target_local_ned_decode(last_msg, &packet2);
2897 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2899 memset(&packet2, 0,
sizeof(packet2));
2900 mavlink_msg_set_position_target_local_ned_send(
MAVLINK_COMM_1 , packet1.
time_boot_ms , packet1.
target_system , packet1.
target_component , packet1.
coordinate_frame , packet1.
type_mask , packet1.
x , packet1.
y , packet1.
z , packet1.
vx , packet1.
vy , packet1.
vz , packet1.
afx , packet1.
afy , packet1.
afz , packet1.
yaw , packet1.
yaw_rate );
2901 mavlink_msg_set_position_target_local_ned_decode(last_msg, &packet2);
2902 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2905 static void mavlink_test_position_target_local_ned(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
2907 mavlink_message_t msg;
2911 963497464,45.0,73.0,101.0,129.0,157.0,185.0,213.0,241.0,269.0,297.0,325.0,19731,27
2914 memset(&packet1, 0,
sizeof(packet1));
2916 packet1.
x = packet_in.
x;
2917 packet1.
y = packet_in.
y;
2918 packet1.
z = packet_in.
z;
2919 packet1.
vx = packet_in.
vx;
2920 packet1.
vy = packet_in.
vy;
2921 packet1.
vz = packet_in.
vz;
2922 packet1.
afx = packet_in.
afx;
2923 packet1.
afy = packet_in.
afy;
2924 packet1.
afz = packet_in.
afz;
2925 packet1.
yaw = packet_in.
yaw;
2932 memset(&packet2, 0,
sizeof(packet2));
2933 mavlink_msg_position_target_local_ned_encode(system_id, component_id, &msg, &packet1);
2934 mavlink_msg_position_target_local_ned_decode(&msg, &packet2);
2935 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2937 memset(&packet2, 0,
sizeof(packet2));
2938 mavlink_msg_position_target_local_ned_pack(system_id, component_id, &msg , packet1.
time_boot_ms , packet1.
coordinate_frame , packet1.
type_mask , packet1.
x , packet1.
y , packet1.
z , packet1.
vx , packet1.
vy , packet1.
vz , packet1.
afx , packet1.
afy , packet1.
afz , packet1.
yaw , packet1.
yaw_rate );
2939 mavlink_msg_position_target_local_ned_decode(&msg, &packet2);
2940 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2942 memset(&packet2, 0,
sizeof(packet2));
2943 mavlink_msg_position_target_local_ned_pack_chan(system_id, component_id,
MAVLINK_COMM_0, &msg , packet1.
time_boot_ms , packet1.
coordinate_frame , packet1.
type_mask , packet1.
x , packet1.
y , packet1.
z , packet1.
vx , packet1.
vy , packet1.
vz , packet1.
afx , packet1.
afy , packet1.
afz , packet1.
yaw , packet1.
yaw_rate );
2944 mavlink_msg_position_target_local_ned_decode(&msg, &packet2);
2945 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2947 memset(&packet2, 0,
sizeof(packet2));
2949 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
2952 mavlink_msg_position_target_local_ned_decode(last_msg, &packet2);
2953 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2955 memset(&packet2, 0,
sizeof(packet2));
2956 mavlink_msg_position_target_local_ned_send(
MAVLINK_COMM_1 , packet1.
time_boot_ms , packet1.
coordinate_frame , packet1.
type_mask , packet1.
x , packet1.
y , packet1.
z , packet1.
vx , packet1.
vy , packet1.
vz , packet1.
afx , packet1.
afy , packet1.
afz , packet1.
yaw , packet1.
yaw_rate );
2957 mavlink_msg_position_target_local_ned_decode(last_msg, &packet2);
2958 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2961 static void mavlink_test_set_position_target_global_int(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
2963 mavlink_message_t msg;
2967 963497464,963497672,963497880,101.0,129.0,157.0,185.0,213.0,241.0,269.0,297.0,325.0,19731,27,94,161
2970 memset(&packet1, 0,
sizeof(packet1));
2974 packet1.
alt = packet_in.
alt;
2975 packet1.
vx = packet_in.
vx;
2976 packet1.
vy = packet_in.
vy;
2977 packet1.
vz = packet_in.
vz;
2978 packet1.
afx = packet_in.
afx;
2979 packet1.
afy = packet_in.
afy;
2980 packet1.
afz = packet_in.
afz;
2981 packet1.
yaw = packet_in.
yaw;
2990 memset(&packet2, 0,
sizeof(packet2));
2991 mavlink_msg_set_position_target_global_int_encode(system_id, component_id, &msg, &packet1);
2992 mavlink_msg_set_position_target_global_int_decode(&msg, &packet2);
2993 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
2995 memset(&packet2, 0,
sizeof(packet2));
2996 mavlink_msg_set_position_target_global_int_pack(system_id, component_id, &msg , packet1.
time_boot_ms , packet1.
target_system , packet1.
target_component , packet1.
coordinate_frame , packet1.
type_mask , packet1.
lat_int , packet1.
lon_int , packet1.
alt , packet1.
vx , packet1.
vy , packet1.
vz , packet1.
afx , packet1.
afy , packet1.
afz , packet1.
yaw , packet1.
yaw_rate );
2997 mavlink_msg_set_position_target_global_int_decode(&msg, &packet2);
2998 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
3000 memset(&packet2, 0,
sizeof(packet2));
3001 mavlink_msg_set_position_target_global_int_pack_chan(system_id, component_id,
MAVLINK_COMM_0, &msg , packet1.
time_boot_ms , packet1.
target_system , packet1.
target_component , packet1.
coordinate_frame , packet1.
type_mask , packet1.
lat_int , packet1.
lon_int , packet1.
alt , packet1.
vx , packet1.
vy , packet1.
vz , packet1.
afx , packet1.
afy , packet1.
afz , packet1.
yaw , packet1.
yaw_rate );
3002 mavlink_msg_set_position_target_global_int_decode(&msg, &packet2);
3003 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
3005 memset(&packet2, 0,
sizeof(packet2));
3007 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
3010 mavlink_msg_set_position_target_global_int_decode(last_msg, &packet2);
3011 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
3013 memset(&packet2, 0,
sizeof(packet2));
3014 mavlink_msg_set_position_target_global_int_send(
MAVLINK_COMM_1 , packet1.
time_boot_ms , packet1.
target_system , packet1.
target_component , packet1.
coordinate_frame , packet1.
type_mask , packet1.
lat_int , packet1.
lon_int , packet1.
alt , packet1.
vx , packet1.
vy , packet1.
vz , packet1.
afx , packet1.
afy , packet1.
afz , packet1.
yaw , packet1.
yaw_rate );
3015 mavlink_msg_set_position_target_global_int_decode(last_msg, &packet2);
3016 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
3019 static void mavlink_test_position_target_global_int(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
3021 mavlink_message_t msg;
3025 963497464,963497672,963497880,101.0,129.0,157.0,185.0,213.0,241.0,269.0,297.0,325.0,19731,27
3028 memset(&packet1, 0,
sizeof(packet1));
3032 packet1.
alt = packet_in.
alt;
3033 packet1.
vx = packet_in.
vx;
3034 packet1.
vy = packet_in.
vy;
3035 packet1.
vz = packet_in.
vz;
3036 packet1.
afx = packet_in.
afx;
3037 packet1.
afy = packet_in.
afy;
3038 packet1.
afz = packet_in.
afz;
3039 packet1.
yaw = packet_in.
yaw;
3046 memset(&packet2, 0,
sizeof(packet2));
3047 mavlink_msg_position_target_global_int_encode(system_id, component_id, &msg, &packet1);
3048 mavlink_msg_position_target_global_int_decode(&msg, &packet2);
3049 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
3051 memset(&packet2, 0,
sizeof(packet2));
3052 mavlink_msg_position_target_global_int_pack(system_id, component_id, &msg , packet1.
time_boot_ms , packet1.
coordinate_frame , packet1.
type_mask , packet1.
lat_int , packet1.
lon_int , packet1.
alt , packet1.
vx , packet1.
vy , packet1.
vz , packet1.
afx , packet1.
afy , packet1.
afz , packet1.
yaw , packet1.
yaw_rate );
3053 mavlink_msg_position_target_global_int_decode(&msg, &packet2);
3054 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
3056 memset(&packet2, 0,
sizeof(packet2));
3057 mavlink_msg_position_target_global_int_pack_chan(system_id, component_id,
MAVLINK_COMM_0, &msg , packet1.
time_boot_ms , packet1.
coordinate_frame , packet1.
type_mask , packet1.
lat_int , packet1.
lon_int , packet1.
alt , packet1.
vx , packet1.
vy , packet1.
vz , packet1.
afx , packet1.
afy , packet1.
afz , packet1.
yaw , packet1.
yaw_rate );
3058 mavlink_msg_position_target_global_int_decode(&msg, &packet2);
3059 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
3061 memset(&packet2, 0,
sizeof(packet2));
3063 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
3066 mavlink_msg_position_target_global_int_decode(last_msg, &packet2);
3067 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
3069 memset(&packet2, 0,
sizeof(packet2));
3070 mavlink_msg_position_target_global_int_send(
MAVLINK_COMM_1 , packet1.
time_boot_ms , packet1.
coordinate_frame , packet1.
type_mask , packet1.
lat_int , packet1.
lon_int , packet1.
alt , packet1.
vx , packet1.
vy , packet1.
vz , packet1.
afx , packet1.
afy , packet1.
afz , packet1.
yaw , packet1.
yaw_rate );
3071 mavlink_msg_position_target_global_int_decode(last_msg, &packet2);
3072 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
3075 static void mavlink_test_local_position_ned_system_global_offset(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
3077 mavlink_message_t msg;
3081 963497464,45.0,73.0,101.0,129.0,157.0,185.0
3084 memset(&packet1, 0,
sizeof(packet1));
3086 packet1.
x = packet_in.
x;
3087 packet1.
y = packet_in.
y;
3088 packet1.
z = packet_in.
z;
3091 packet1.
yaw = packet_in.
yaw;
3095 memset(&packet2, 0,
sizeof(packet2));
3096 mavlink_msg_local_position_ned_system_global_offset_encode(system_id, component_id, &msg, &packet1);
3097 mavlink_msg_local_position_ned_system_global_offset_decode(&msg, &packet2);
3098 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
3100 memset(&packet2, 0,
sizeof(packet2));
3101 mavlink_msg_local_position_ned_system_global_offset_pack(system_id, component_id, &msg , packet1.
time_boot_ms , packet1.
x , packet1.
y , packet1.
z , packet1.
roll , packet1.
pitch , packet1.
yaw );
3102 mavlink_msg_local_position_ned_system_global_offset_decode(&msg, &packet2);
3103 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
3105 memset(&packet2, 0,
sizeof(packet2));
3106 mavlink_msg_local_position_ned_system_global_offset_pack_chan(system_id, component_id,
MAVLINK_COMM_0, &msg , packet1.
time_boot_ms , packet1.
x , packet1.
y , packet1.
z , packet1.
roll , packet1.
pitch , packet1.
yaw );
3107 mavlink_msg_local_position_ned_system_global_offset_decode(&msg, &packet2);
3108 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
3110 memset(&packet2, 0,
sizeof(packet2));
3112 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
3115 mavlink_msg_local_position_ned_system_global_offset_decode(last_msg, &packet2);
3116 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
3118 memset(&packet2, 0,
sizeof(packet2));
3120 mavlink_msg_local_position_ned_system_global_offset_decode(last_msg, &packet2);
3121 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
3124 static void mavlink_test_hil_state(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
3126 mavlink_message_t msg;
3130 93372036854775807ULL,73.0,101.0,129.0,157.0,185.0,213.0,963499128,963499336,963499544,19523,19627,19731,19835,19939,20043
3133 memset(&packet1, 0,
sizeof(packet1));
3137 packet1.
yaw = packet_in.
yaw;
3141 packet1.
lat = packet_in.
lat;
3142 packet1.
lon = packet_in.
lon;
3143 packet1.
alt = packet_in.
alt;
3144 packet1.
vx = packet_in.
vx;
3145 packet1.
vy = packet_in.
vy;
3146 packet1.
vz = packet_in.
vz;
3153 memset(&packet2, 0,
sizeof(packet2));
3154 mavlink_msg_hil_state_encode(system_id, component_id, &msg, &packet1);
3155 mavlink_msg_hil_state_decode(&msg, &packet2);
3156 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
3158 memset(&packet2, 0,
sizeof(packet2));
3159 mavlink_msg_hil_state_pack(system_id, component_id, &msg , packet1.
time_usec , packet1.
roll , packet1.
pitch , packet1.
yaw , packet1.
rollspeed , packet1.
pitchspeed , packet1.
yawspeed , packet1.
lat , packet1.
lon , packet1.
alt , packet1.
vx , packet1.
vy , packet1.
vz , packet1.
xacc , packet1.
yacc , packet1.
zacc );
3160 mavlink_msg_hil_state_decode(&msg, &packet2);
3161 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
3163 memset(&packet2, 0,
sizeof(packet2));
3164 mavlink_msg_hil_state_pack_chan(system_id, component_id,
MAVLINK_COMM_0, &msg , packet1.
time_usec , packet1.
roll , packet1.
pitch , packet1.
yaw , packet1.
rollspeed , packet1.
pitchspeed , packet1.
yawspeed , packet1.
lat , packet1.
lon , packet1.
alt , packet1.
vx , packet1.
vy , packet1.
vz , packet1.
xacc , packet1.
yacc , packet1.
zacc );
3165 mavlink_msg_hil_state_decode(&msg, &packet2);
3166 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
3168 memset(&packet2, 0,
sizeof(packet2));
3170 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
3173 mavlink_msg_hil_state_decode(last_msg, &packet2);
3174 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
3176 memset(&packet2, 0,
sizeof(packet2));
3177 mavlink_msg_hil_state_send(
MAVLINK_COMM_1 , packet1.
time_usec , packet1.
roll , packet1.
pitch , packet1.
yaw , packet1.
rollspeed , packet1.
pitchspeed , packet1.
yawspeed , packet1.
lat , packet1.
lon , packet1.
alt , packet1.
vx , packet1.
vy , packet1.
vz , packet1.
xacc , packet1.
yacc , packet1.
zacc );
3178 mavlink_msg_hil_state_decode(last_msg, &packet2);
3179 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
3182 static void mavlink_test_hil_controls(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
3184 mavlink_message_t msg;
3188 93372036854775807ULL,73.0,101.0,129.0,157.0,185.0,213.0,241.0,269.0,125,192
3191 memset(&packet1, 0,
sizeof(packet1));
3206 memset(&packet2, 0,
sizeof(packet2));
3207 mavlink_msg_hil_controls_encode(system_id, component_id, &msg, &packet1);
3208 mavlink_msg_hil_controls_decode(&msg, &packet2);
3209 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
3211 memset(&packet2, 0,
sizeof(packet2));
3212 mavlink_msg_hil_controls_pack(system_id, component_id, &msg , packet1.
time_usec , packet1.
roll_ailerons , packet1.
pitch_elevator , packet1.
yaw_rudder , packet1.
throttle , packet1.
aux1 , packet1.
aux2 , packet1.
aux3 , packet1.
aux4 , packet1.
mode , packet1.
nav_mode );
3213 mavlink_msg_hil_controls_decode(&msg, &packet2);
3214 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
3216 memset(&packet2, 0,
sizeof(packet2));
3217 mavlink_msg_hil_controls_pack_chan(system_id, component_id,
MAVLINK_COMM_0, &msg , packet1.
time_usec , packet1.
roll_ailerons , packet1.
pitch_elevator , packet1.
yaw_rudder , packet1.
throttle , packet1.
aux1 , packet1.
aux2 , packet1.
aux3 , packet1.
aux4 , packet1.
mode , packet1.
nav_mode );
3218 mavlink_msg_hil_controls_decode(&msg, &packet2);
3219 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
3221 memset(&packet2, 0,
sizeof(packet2));
3223 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
3226 mavlink_msg_hil_controls_decode(last_msg, &packet2);
3227 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
3229 memset(&packet2, 0,
sizeof(packet2));
3230 mavlink_msg_hil_controls_send(
MAVLINK_COMM_1 , packet1.
time_usec , packet1.
roll_ailerons , packet1.
pitch_elevator , packet1.
yaw_rudder , packet1.
throttle , packet1.
aux1 , packet1.
aux2 , packet1.
aux3 , packet1.
aux4 , packet1.
mode , packet1.
nav_mode );
3231 mavlink_msg_hil_controls_decode(last_msg, &packet2);
3232 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
3235 static void mavlink_test_hil_rc_inputs_raw(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
3237 mavlink_message_t msg;
3241 93372036854775807ULL,17651,17755,17859,17963,18067,18171,18275,18379,18483,18587,18691,18795,101
3244 memset(&packet1, 0,
sizeof(packet1));
3262 memset(&packet2, 0,
sizeof(packet2));
3263 mavlink_msg_hil_rc_inputs_raw_encode(system_id, component_id, &msg, &packet1);
3264 mavlink_msg_hil_rc_inputs_raw_decode(&msg, &packet2);
3265 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
3267 memset(&packet2, 0,
sizeof(packet2));
3268 mavlink_msg_hil_rc_inputs_raw_pack(system_id, component_id, &msg , packet1.
time_usec , packet1.
chan1_raw , packet1.
chan2_raw , packet1.
chan3_raw , packet1.
chan4_raw , packet1.
chan5_raw , packet1.
chan6_raw , packet1.
chan7_raw , packet1.
chan8_raw , packet1.
chan9_raw , packet1.
chan10_raw , packet1.
chan11_raw , packet1.
chan12_raw , packet1.
rssi );
3269 mavlink_msg_hil_rc_inputs_raw_decode(&msg, &packet2);
3270 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
3272 memset(&packet2, 0,
sizeof(packet2));
3273 mavlink_msg_hil_rc_inputs_raw_pack_chan(system_id, component_id,
MAVLINK_COMM_0, &msg , packet1.
time_usec , packet1.
chan1_raw , packet1.
chan2_raw , packet1.
chan3_raw , packet1.
chan4_raw , packet1.
chan5_raw , packet1.
chan6_raw , packet1.
chan7_raw , packet1.
chan8_raw , packet1.
chan9_raw , packet1.
chan10_raw , packet1.
chan11_raw , packet1.
chan12_raw , packet1.
rssi );
3274 mavlink_msg_hil_rc_inputs_raw_decode(&msg, &packet2);
3275 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
3277 memset(&packet2, 0,
sizeof(packet2));
3279 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
3282 mavlink_msg_hil_rc_inputs_raw_decode(last_msg, &packet2);
3283 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
3285 memset(&packet2, 0,
sizeof(packet2));
3286 mavlink_msg_hil_rc_inputs_raw_send(
MAVLINK_COMM_1 , packet1.
time_usec , packet1.
chan1_raw , packet1.
chan2_raw , packet1.
chan3_raw , packet1.
chan4_raw , packet1.
chan5_raw , packet1.
chan6_raw , packet1.
chan7_raw , packet1.
chan8_raw , packet1.
chan9_raw , packet1.
chan10_raw , packet1.
chan11_raw , packet1.
chan12_raw , packet1.
rssi );
3287 mavlink_msg_hil_rc_inputs_raw_decode(last_msg, &packet2);
3288 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
3291 static void mavlink_test_optical_flow(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
3293 mavlink_message_t msg;
3297 93372036854775807ULL,73.0,101.0,129.0,18275,18379,77,144
3300 memset(&packet1, 0,
sizeof(packet1));
3312 memset(&packet2, 0,
sizeof(packet2));
3313 mavlink_msg_optical_flow_encode(system_id, component_id, &msg, &packet1);
3314 mavlink_msg_optical_flow_decode(&msg, &packet2);
3315 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
3317 memset(&packet2, 0,
sizeof(packet2));
3318 mavlink_msg_optical_flow_pack(system_id, component_id, &msg , packet1.
time_usec , packet1.
sensor_id , packet1.
flow_x , packet1.
flow_y , packet1.
flow_comp_m_x , packet1.
flow_comp_m_y , packet1.
quality , packet1.
ground_distance );
3319 mavlink_msg_optical_flow_decode(&msg, &packet2);
3320 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
3322 memset(&packet2, 0,
sizeof(packet2));
3323 mavlink_msg_optical_flow_pack_chan(system_id, component_id,
MAVLINK_COMM_0, &msg , packet1.
time_usec , packet1.
sensor_id , packet1.
flow_x , packet1.
flow_y , packet1.
flow_comp_m_x , packet1.
flow_comp_m_y , packet1.
quality , packet1.
ground_distance );
3324 mavlink_msg_optical_flow_decode(&msg, &packet2);
3325 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
3327 memset(&packet2, 0,
sizeof(packet2));
3329 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
3332 mavlink_msg_optical_flow_decode(last_msg, &packet2);
3333 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
3335 memset(&packet2, 0,
sizeof(packet2));
3337 mavlink_msg_optical_flow_decode(last_msg, &packet2);
3338 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
3341 static void mavlink_test_global_vision_position_estimate(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
3343 mavlink_message_t msg;
3347 93372036854775807ULL,73.0,101.0,129.0,157.0,185.0,213.0
3350 memset(&packet1, 0,
sizeof(packet1));
3352 packet1.
x = packet_in.
x;
3353 packet1.
y = packet_in.
y;
3354 packet1.
z = packet_in.
z;
3357 packet1.
yaw = packet_in.
yaw;
3361 memset(&packet2, 0,
sizeof(packet2));
3362 mavlink_msg_global_vision_position_estimate_encode(system_id, component_id, &msg, &packet1);
3363 mavlink_msg_global_vision_position_estimate_decode(&msg, &packet2);
3364 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
3366 memset(&packet2, 0,
sizeof(packet2));
3367 mavlink_msg_global_vision_position_estimate_pack(system_id, component_id, &msg , packet1.
usec , packet1.
x , packet1.
y , packet1.
z , packet1.
roll , packet1.
pitch , packet1.
yaw );
3368 mavlink_msg_global_vision_position_estimate_decode(&msg, &packet2);
3369 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
3371 memset(&packet2, 0,
sizeof(packet2));
3372 mavlink_msg_global_vision_position_estimate_pack_chan(system_id, component_id,
MAVLINK_COMM_0, &msg , packet1.
usec , packet1.
x , packet1.
y , packet1.
z , packet1.
roll , packet1.
pitch , packet1.
yaw );
3373 mavlink_msg_global_vision_position_estimate_decode(&msg, &packet2);
3374 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
3376 memset(&packet2, 0,
sizeof(packet2));
3378 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
3381 mavlink_msg_global_vision_position_estimate_decode(last_msg, &packet2);
3382 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
3384 memset(&packet2, 0,
sizeof(packet2));
3385 mavlink_msg_global_vision_position_estimate_send(
MAVLINK_COMM_1 , packet1.
usec , packet1.
x , packet1.
y , packet1.
z , packet1.
roll , packet1.
pitch , packet1.
yaw );
3386 mavlink_msg_global_vision_position_estimate_decode(last_msg, &packet2);
3387 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
3390 static void mavlink_test_vision_position_estimate(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
3392 mavlink_message_t msg;
3396 93372036854775807ULL,73.0,101.0,129.0,157.0,185.0,213.0
3399 memset(&packet1, 0,
sizeof(packet1));
3401 packet1.
x = packet_in.
x;
3402 packet1.
y = packet_in.
y;
3403 packet1.
z = packet_in.
z;
3406 packet1.
yaw = packet_in.
yaw;
3410 memset(&packet2, 0,
sizeof(packet2));
3411 mavlink_msg_vision_position_estimate_encode(system_id, component_id, &msg, &packet1);
3412 mavlink_msg_vision_position_estimate_decode(&msg, &packet2);
3413 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
3415 memset(&packet2, 0,
sizeof(packet2));
3416 mavlink_msg_vision_position_estimate_pack(system_id, component_id, &msg , packet1.
usec , packet1.
x , packet1.
y , packet1.
z , packet1.
roll , packet1.
pitch , packet1.
yaw );
3417 mavlink_msg_vision_position_estimate_decode(&msg, &packet2);
3418 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
3420 memset(&packet2, 0,
sizeof(packet2));
3421 mavlink_msg_vision_position_estimate_pack_chan(system_id, component_id,
MAVLINK_COMM_0, &msg , packet1.
usec , packet1.
x , packet1.
y , packet1.
z , packet1.
roll , packet1.
pitch , packet1.
yaw );
3422 mavlink_msg_vision_position_estimate_decode(&msg, &packet2);
3423 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
3425 memset(&packet2, 0,
sizeof(packet2));
3427 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
3430 mavlink_msg_vision_position_estimate_decode(last_msg, &packet2);
3431 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
3433 memset(&packet2, 0,
sizeof(packet2));
3435 mavlink_msg_vision_position_estimate_decode(last_msg, &packet2);
3436 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
3439 static void mavlink_test_vision_speed_estimate(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
3441 mavlink_message_t msg;
3445 93372036854775807ULL,73.0,101.0,129.0
3448 memset(&packet1, 0,
sizeof(packet1));
3450 packet1.
x = packet_in.
x;
3451 packet1.
y = packet_in.
y;
3452 packet1.
z = packet_in.
z;
3456 memset(&packet2, 0,
sizeof(packet2));
3457 mavlink_msg_vision_speed_estimate_encode(system_id, component_id, &msg, &packet1);
3458 mavlink_msg_vision_speed_estimate_decode(&msg, &packet2);
3459 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
3461 memset(&packet2, 0,
sizeof(packet2));
3462 mavlink_msg_vision_speed_estimate_pack(system_id, component_id, &msg , packet1.
usec , packet1.
x , packet1.
y , packet1.
z );
3463 mavlink_msg_vision_speed_estimate_decode(&msg, &packet2);
3464 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
3466 memset(&packet2, 0,
sizeof(packet2));
3467 mavlink_msg_vision_speed_estimate_pack_chan(system_id, component_id,
MAVLINK_COMM_0, &msg , packet1.
usec , packet1.
x , packet1.
y , packet1.
z );
3468 mavlink_msg_vision_speed_estimate_decode(&msg, &packet2);
3469 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
3471 memset(&packet2, 0,
sizeof(packet2));
3473 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
3476 mavlink_msg_vision_speed_estimate_decode(last_msg, &packet2);
3477 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
3479 memset(&packet2, 0,
sizeof(packet2));
3480 mavlink_msg_vision_speed_estimate_send(
MAVLINK_COMM_1 , packet1.
usec , packet1.
x , packet1.
y , packet1.
z );
3481 mavlink_msg_vision_speed_estimate_decode(last_msg, &packet2);
3482 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
3485 static void mavlink_test_vicon_position_estimate(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
3487 mavlink_message_t msg;
3491 93372036854775807ULL,73.0,101.0,129.0,157.0,185.0,213.0
3494 memset(&packet1, 0,
sizeof(packet1));
3496 packet1.
x = packet_in.
x;
3497 packet1.
y = packet_in.
y;
3498 packet1.
z = packet_in.
z;
3501 packet1.
yaw = packet_in.
yaw;
3505 memset(&packet2, 0,
sizeof(packet2));
3506 mavlink_msg_vicon_position_estimate_encode(system_id, component_id, &msg, &packet1);
3507 mavlink_msg_vicon_position_estimate_decode(&msg, &packet2);
3508 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
3510 memset(&packet2, 0,
sizeof(packet2));
3511 mavlink_msg_vicon_position_estimate_pack(system_id, component_id, &msg , packet1.
usec , packet1.
x , packet1.
y , packet1.
z , packet1.
roll , packet1.
pitch , packet1.
yaw );
3512 mavlink_msg_vicon_position_estimate_decode(&msg, &packet2);
3513 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
3515 memset(&packet2, 0,
sizeof(packet2));
3516 mavlink_msg_vicon_position_estimate_pack_chan(system_id, component_id,
MAVLINK_COMM_0, &msg , packet1.
usec , packet1.
x , packet1.
y , packet1.
z , packet1.
roll , packet1.
pitch , packet1.
yaw );
3517 mavlink_msg_vicon_position_estimate_decode(&msg, &packet2);
3518 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
3520 memset(&packet2, 0,
sizeof(packet2));
3522 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
3525 mavlink_msg_vicon_position_estimate_decode(last_msg, &packet2);
3526 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
3528 memset(&packet2, 0,
sizeof(packet2));
3530 mavlink_msg_vicon_position_estimate_decode(last_msg, &packet2);
3531 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
3534 static void mavlink_test_highres_imu(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
3536 mavlink_message_t msg;
3540 93372036854775807ULL,73.0,101.0,129.0,157.0,185.0,213.0,241.0,269.0,297.0,325.0,353.0,381.0,409.0,20355
3543 memset(&packet1, 0,
sizeof(packet1));
3562 memset(&packet2, 0,
sizeof(packet2));
3563 mavlink_msg_highres_imu_encode(system_id, component_id, &msg, &packet1);
3564 mavlink_msg_highres_imu_decode(&msg, &packet2);
3565 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
3567 memset(&packet2, 0,
sizeof(packet2));
3568 mavlink_msg_highres_imu_pack(system_id, component_id, &msg , packet1.
time_usec , packet1.
xacc , packet1.
yacc , packet1.
zacc , packet1.
xgyro , packet1.
ygyro , packet1.
zgyro , packet1.
xmag , packet1.
ymag , packet1.
zmag , packet1.
abs_pressure , packet1.
diff_pressure , packet1.
pressure_alt , packet1.
temperature , packet1.
fields_updated );
3569 mavlink_msg_highres_imu_decode(&msg, &packet2);
3570 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
3572 memset(&packet2, 0,
sizeof(packet2));
3573 mavlink_msg_highres_imu_pack_chan(system_id, component_id,
MAVLINK_COMM_0, &msg , packet1.
time_usec , packet1.
xacc , packet1.
yacc , packet1.
zacc , packet1.
xgyro , packet1.
ygyro , packet1.
zgyro , packet1.
xmag , packet1.
ymag , packet1.
zmag , packet1.
abs_pressure , packet1.
diff_pressure , packet1.
pressure_alt , packet1.
temperature , packet1.
fields_updated );
3574 mavlink_msg_highres_imu_decode(&msg, &packet2);
3575 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
3577 memset(&packet2, 0,
sizeof(packet2));
3579 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
3582 mavlink_msg_highres_imu_decode(last_msg, &packet2);
3583 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
3585 memset(&packet2, 0,
sizeof(packet2));
3586 mavlink_msg_highres_imu_send(
MAVLINK_COMM_1 , packet1.
time_usec , packet1.
xacc , packet1.
yacc , packet1.
zacc , packet1.
xgyro , packet1.
ygyro , packet1.
zgyro , packet1.
xmag , packet1.
ymag , packet1.
zmag , packet1.
abs_pressure , packet1.
diff_pressure , packet1.
pressure_alt , packet1.
temperature , packet1.
fields_updated );
3587 mavlink_msg_highres_imu_decode(last_msg, &packet2);
3588 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
3591 static void mavlink_test_optical_flow_rad(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
3593 mavlink_message_t msg;
3597 93372036854775807ULL,963497880,101.0,129.0,157.0,185.0,213.0,963499128,269.0,19315,3,70
3600 memset(&packet1, 0,
sizeof(packet1));
3616 memset(&packet2, 0,
sizeof(packet2));
3617 mavlink_msg_optical_flow_rad_encode(system_id, component_id, &msg, &packet1);
3618 mavlink_msg_optical_flow_rad_decode(&msg, &packet2);
3619 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
3621 memset(&packet2, 0,
sizeof(packet2));
3622 mavlink_msg_optical_flow_rad_pack(system_id, component_id, &msg , packet1.
time_usec , packet1.
sensor_id , packet1.
integration_time_us , packet1.
integrated_x , packet1.
integrated_y , packet1.
integrated_xgyro , packet1.
integrated_ygyro , packet1.
integrated_zgyro , packet1.
temperature , packet1.
quality , packet1.
time_delta_distance_us , packet1.
distance );
3623 mavlink_msg_optical_flow_rad_decode(&msg, &packet2);
3624 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
3626 memset(&packet2, 0,
sizeof(packet2));
3627 mavlink_msg_optical_flow_rad_pack_chan(system_id, component_id,
MAVLINK_COMM_0, &msg , packet1.
time_usec , packet1.
sensor_id , packet1.
integration_time_us , packet1.
integrated_x , packet1.
integrated_y , packet1.
integrated_xgyro , packet1.
integrated_ygyro , packet1.
integrated_zgyro , packet1.
temperature , packet1.
quality , packet1.
time_delta_distance_us , packet1.
distance );
3628 mavlink_msg_optical_flow_rad_decode(&msg, &packet2);
3629 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
3631 memset(&packet2, 0,
sizeof(packet2));
3633 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
3636 mavlink_msg_optical_flow_rad_decode(last_msg, &packet2);
3637 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
3639 memset(&packet2, 0,
sizeof(packet2));
3640 mavlink_msg_optical_flow_rad_send(
MAVLINK_COMM_1 , packet1.
time_usec , packet1.
sensor_id , packet1.
integration_time_us , packet1.
integrated_x , packet1.
integrated_y , packet1.
integrated_xgyro , packet1.
integrated_ygyro , packet1.
integrated_zgyro , packet1.
temperature , packet1.
quality , packet1.
time_delta_distance_us , packet1.
distance );
3641 mavlink_msg_optical_flow_rad_decode(last_msg, &packet2);
3642 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
3645 static void mavlink_test_hil_sensor(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
3647 mavlink_message_t msg;
3651 93372036854775807ULL,73.0,101.0,129.0,157.0,185.0,213.0,241.0,269.0,297.0,325.0,353.0,381.0,409.0,963500584
3654 memset(&packet1, 0,
sizeof(packet1));
3673 memset(&packet2, 0,
sizeof(packet2));
3674 mavlink_msg_hil_sensor_encode(system_id, component_id, &msg, &packet1);
3675 mavlink_msg_hil_sensor_decode(&msg, &packet2);
3676 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
3678 memset(&packet2, 0,
sizeof(packet2));
3679 mavlink_msg_hil_sensor_pack(system_id, component_id, &msg , packet1.
time_usec , packet1.
xacc , packet1.
yacc , packet1.
zacc , packet1.
xgyro , packet1.
ygyro , packet1.
zgyro , packet1.
xmag , packet1.
ymag , packet1.
zmag , packet1.
abs_pressure , packet1.
diff_pressure , packet1.
pressure_alt , packet1.
temperature , packet1.
fields_updated );
3680 mavlink_msg_hil_sensor_decode(&msg, &packet2);
3681 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
3683 memset(&packet2, 0,
sizeof(packet2));
3684 mavlink_msg_hil_sensor_pack_chan(system_id, component_id,
MAVLINK_COMM_0, &msg , packet1.
time_usec , packet1.
xacc , packet1.
yacc , packet1.
zacc , packet1.
xgyro , packet1.
ygyro , packet1.
zgyro , packet1.
xmag , packet1.
ymag , packet1.
zmag , packet1.
abs_pressure , packet1.
diff_pressure , packet1.
pressure_alt , packet1.
temperature , packet1.
fields_updated );
3685 mavlink_msg_hil_sensor_decode(&msg, &packet2);
3686 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
3688 memset(&packet2, 0,
sizeof(packet2));
3690 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
3693 mavlink_msg_hil_sensor_decode(last_msg, &packet2);
3694 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
3696 memset(&packet2, 0,
sizeof(packet2));
3697 mavlink_msg_hil_sensor_send(
MAVLINK_COMM_1 , packet1.
time_usec , packet1.
xacc , packet1.
yacc , packet1.
zacc , packet1.
xgyro , packet1.
ygyro , packet1.
zgyro , packet1.
xmag , packet1.
ymag , packet1.
zmag , packet1.
abs_pressure , packet1.
diff_pressure , packet1.
pressure_alt , packet1.
temperature , packet1.
fields_updated );
3698 mavlink_msg_hil_sensor_decode(last_msg, &packet2);
3699 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
3702 static void mavlink_test_sim_state(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
3704 mavlink_message_t msg;
3708 17.0,45.0,73.0,101.0,129.0,157.0,185.0,213.0,241.0,269.0,297.0,325.0,353.0,381.0,409.0,437.0,465.0,493.0,521.0,549.0,577.0
3711 memset(&packet1, 0,
sizeof(packet1));
3712 packet1.
q1 = packet_in.
q1;
3713 packet1.
q2 = packet_in.
q2;
3714 packet1.
q3 = packet_in.
q3;
3715 packet1.
q4 = packet_in.
q4;
3718 packet1.
yaw = packet_in.
yaw;
3725 packet1.
lat = packet_in.
lat;
3726 packet1.
lon = packet_in.
lon;
3727 packet1.
alt = packet_in.
alt;
3730 packet1.
vn = packet_in.
vn;
3731 packet1.
ve = packet_in.
ve;
3732 packet1.
vd = packet_in.
vd;
3736 memset(&packet2, 0,
sizeof(packet2));
3737 mavlink_msg_sim_state_encode(system_id, component_id, &msg, &packet1);
3738 mavlink_msg_sim_state_decode(&msg, &packet2);
3739 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
3741 memset(&packet2, 0,
sizeof(packet2));
3742 mavlink_msg_sim_state_pack(system_id, component_id, &msg , packet1.
q1 , packet1.
q2 , packet1.
q3 , packet1.
q4 , packet1.
roll , packet1.
pitch , packet1.
yaw , packet1.
xacc , packet1.
yacc , packet1.
zacc , packet1.
xgyro , packet1.
ygyro , packet1.
zgyro , packet1.
lat , packet1.
lon , packet1.
alt , packet1.
std_dev_horz , packet1.
std_dev_vert , packet1.
vn , packet1.
ve , packet1.
vd );
3743 mavlink_msg_sim_state_decode(&msg, &packet2);
3744 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
3746 memset(&packet2, 0,
sizeof(packet2));
3747 mavlink_msg_sim_state_pack_chan(system_id, component_id,
MAVLINK_COMM_0, &msg , packet1.
q1 , packet1.
q2 , packet1.
q3 , packet1.
q4 , packet1.
roll , packet1.
pitch , packet1.
yaw , packet1.
xacc , packet1.
yacc , packet1.
zacc , packet1.
xgyro , packet1.
ygyro , packet1.
zgyro , packet1.
lat , packet1.
lon , packet1.
alt , packet1.
std_dev_horz , packet1.
std_dev_vert , packet1.
vn , packet1.
ve , packet1.
vd );
3748 mavlink_msg_sim_state_decode(&msg, &packet2);
3749 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
3751 memset(&packet2, 0,
sizeof(packet2));
3753 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
3756 mavlink_msg_sim_state_decode(last_msg, &packet2);
3757 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
3759 memset(&packet2, 0,
sizeof(packet2));
3760 mavlink_msg_sim_state_send(
MAVLINK_COMM_1 , packet1.
q1 , packet1.
q2 , packet1.
q3 , packet1.
q4 , packet1.
roll , packet1.
pitch , packet1.
yaw , packet1.
xacc , packet1.
yacc , packet1.
zacc , packet1.
xgyro , packet1.
ygyro , packet1.
zgyro , packet1.
lat , packet1.
lon , packet1.
alt , packet1.
std_dev_horz , packet1.
std_dev_vert , packet1.
vn , packet1.
ve , packet1.
vd );
3761 mavlink_msg_sim_state_decode(last_msg, &packet2);
3762 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
3765 static void mavlink_test_radio_status(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
3767 mavlink_message_t msg;
3771 17235,17339,17,84,151,218,29
3774 memset(&packet1, 0,
sizeof(packet1));
3785 memset(&packet2, 0,
sizeof(packet2));
3786 mavlink_msg_radio_status_encode(system_id, component_id, &msg, &packet1);
3787 mavlink_msg_radio_status_decode(&msg, &packet2);
3788 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
3790 memset(&packet2, 0,
sizeof(packet2));
3792 mavlink_msg_radio_status_decode(&msg, &packet2);
3793 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
3795 memset(&packet2, 0,
sizeof(packet2));
3796 mavlink_msg_radio_status_pack_chan(system_id, component_id,
MAVLINK_COMM_0, &msg , packet1.
rssi , packet1.
remrssi , packet1.
txbuf , packet1.
noise , packet1.
remnoise , packet1.
rxerrors , packet1.
fixed );
3797 mavlink_msg_radio_status_decode(&msg, &packet2);
3798 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
3800 memset(&packet2, 0,
sizeof(packet2));
3802 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
3805 mavlink_msg_radio_status_decode(last_msg, &packet2);
3806 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
3808 memset(&packet2, 0,
sizeof(packet2));
3810 mavlink_msg_radio_status_decode(last_msg, &packet2);
3811 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
3814 static void mavlink_test_file_transfer_protocol(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
3816 mavlink_message_t msg;
3820 5,72,139,{ 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200 }
3823 memset(&packet1, 0,
sizeof(packet1));
3828 mav_array_memcpy(packet1.
payload, packet_in.
payload,
sizeof(uint8_t)*251);
3831 memset(&packet2, 0,
sizeof(packet2));
3832 mavlink_msg_file_transfer_protocol_encode(system_id, component_id, &msg, &packet1);
3833 mavlink_msg_file_transfer_protocol_decode(&msg, &packet2);
3834 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
3836 memset(&packet2, 0,
sizeof(packet2));
3838 mavlink_msg_file_transfer_protocol_decode(&msg, &packet2);
3839 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
3841 memset(&packet2, 0,
sizeof(packet2));
3843 mavlink_msg_file_transfer_protocol_decode(&msg, &packet2);
3844 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
3846 memset(&packet2, 0,
sizeof(packet2));
3848 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
3851 mavlink_msg_file_transfer_protocol_decode(last_msg, &packet2);
3852 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
3854 memset(&packet2, 0,
sizeof(packet2));
3856 mavlink_msg_file_transfer_protocol_decode(last_msg, &packet2);
3857 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
3860 static void mavlink_test_timesync(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
3862 mavlink_message_t msg;
3866 93372036854775807LL,93372036854776311LL
3869 memset(&packet1, 0,
sizeof(packet1));
3870 packet1.
tc1 = packet_in.
tc1;
3871 packet1.
ts1 = packet_in.
ts1;
3875 memset(&packet2, 0,
sizeof(packet2));
3876 mavlink_msg_timesync_encode(system_id, component_id, &msg, &packet1);
3877 mavlink_msg_timesync_decode(&msg, &packet2);
3878 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
3880 memset(&packet2, 0,
sizeof(packet2));
3881 mavlink_msg_timesync_pack(system_id, component_id, &msg , packet1.
tc1 , packet1.
ts1 );
3882 mavlink_msg_timesync_decode(&msg, &packet2);
3883 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
3885 memset(&packet2, 0,
sizeof(packet2));
3886 mavlink_msg_timesync_pack_chan(system_id, component_id,
MAVLINK_COMM_0, &msg , packet1.
tc1 , packet1.
ts1 );
3887 mavlink_msg_timesync_decode(&msg, &packet2);
3888 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
3890 memset(&packet2, 0,
sizeof(packet2));
3892 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
3895 mavlink_msg_timesync_decode(last_msg, &packet2);
3896 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
3898 memset(&packet2, 0,
sizeof(packet2));
3900 mavlink_msg_timesync_decode(last_msg, &packet2);
3901 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
3904 static void mavlink_test_camera_trigger(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
3906 mavlink_message_t msg;
3910 93372036854775807ULL,963497880
3913 memset(&packet1, 0,
sizeof(packet1));
3915 packet1.
seq = packet_in.
seq;
3919 memset(&packet2, 0,
sizeof(packet2));
3920 mavlink_msg_camera_trigger_encode(system_id, component_id, &msg, &packet1);
3921 mavlink_msg_camera_trigger_decode(&msg, &packet2);
3922 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
3924 memset(&packet2, 0,
sizeof(packet2));
3925 mavlink_msg_camera_trigger_pack(system_id, component_id, &msg , packet1.
time_usec , packet1.
seq );
3926 mavlink_msg_camera_trigger_decode(&msg, &packet2);
3927 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
3929 memset(&packet2, 0,
sizeof(packet2));
3931 mavlink_msg_camera_trigger_decode(&msg, &packet2);
3932 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
3934 memset(&packet2, 0,
sizeof(packet2));
3936 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
3939 mavlink_msg_camera_trigger_decode(last_msg, &packet2);
3940 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
3942 memset(&packet2, 0,
sizeof(packet2));
3944 mavlink_msg_camera_trigger_decode(last_msg, &packet2);
3945 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
3948 static void mavlink_test_hil_gps(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
3950 mavlink_message_t msg;
3954 93372036854775807ULL,963497880,963498088,963498296,18275,18379,18483,18587,18691,18795,18899,235,46
3957 memset(&packet1, 0,
sizeof(packet1));
3959 packet1.
lat = packet_in.
lat;
3960 packet1.
lon = packet_in.
lon;
3961 packet1.
alt = packet_in.
alt;
3962 packet1.
eph = packet_in.
eph;
3963 packet1.
epv = packet_in.
epv;
3964 packet1.
vel = packet_in.
vel;
3965 packet1.
vn = packet_in.
vn;
3966 packet1.
ve = packet_in.
ve;
3967 packet1.
vd = packet_in.
vd;
3968 packet1.
cog = packet_in.
cog;
3974 memset(&packet2, 0,
sizeof(packet2));
3975 mavlink_msg_hil_gps_encode(system_id, component_id, &msg, &packet1);
3976 mavlink_msg_hil_gps_decode(&msg, &packet2);
3977 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
3979 memset(&packet2, 0,
sizeof(packet2));
3980 mavlink_msg_hil_gps_pack(system_id, component_id, &msg , packet1.
time_usec , packet1.
fix_type , packet1.
lat , packet1.
lon , packet1.
alt , packet1.
eph , packet1.
epv , packet1.
vel , packet1.
vn , packet1.
ve , packet1.
vd , packet1.
cog , packet1.
satellites_visible );
3981 mavlink_msg_hil_gps_decode(&msg, &packet2);
3982 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
3984 memset(&packet2, 0,
sizeof(packet2));
3985 mavlink_msg_hil_gps_pack_chan(system_id, component_id,
MAVLINK_COMM_0, &msg , packet1.
time_usec , packet1.
fix_type , packet1.
lat , packet1.
lon , packet1.
alt , packet1.
eph , packet1.
epv , packet1.
vel , packet1.
vn , packet1.
ve , packet1.
vd , packet1.
cog , packet1.
satellites_visible );
3986 mavlink_msg_hil_gps_decode(&msg, &packet2);
3987 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
3989 memset(&packet2, 0,
sizeof(packet2));
3991 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
3994 mavlink_msg_hil_gps_decode(last_msg, &packet2);
3995 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
3997 memset(&packet2, 0,
sizeof(packet2));
3998 mavlink_msg_hil_gps_send(
MAVLINK_COMM_1 , packet1.
time_usec , packet1.
fix_type , packet1.
lat , packet1.
lon , packet1.
alt , packet1.
eph , packet1.
epv , packet1.
vel , packet1.
vn , packet1.
ve , packet1.
vd , packet1.
cog , packet1.
satellites_visible );
3999 mavlink_msg_hil_gps_decode(last_msg, &packet2);
4000 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
4003 static void mavlink_test_hil_optical_flow(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
4005 mavlink_message_t msg;
4009 93372036854775807ULL,963497880,101.0,129.0,157.0,185.0,213.0,963499128,269.0,19315,3,70
4012 memset(&packet1, 0,
sizeof(packet1));
4028 memset(&packet2, 0,
sizeof(packet2));
4029 mavlink_msg_hil_optical_flow_encode(system_id, component_id, &msg, &packet1);
4030 mavlink_msg_hil_optical_flow_decode(&msg, &packet2);
4031 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
4033 memset(&packet2, 0,
sizeof(packet2));
4034 mavlink_msg_hil_optical_flow_pack(system_id, component_id, &msg , packet1.
time_usec , packet1.
sensor_id , packet1.
integration_time_us , packet1.
integrated_x , packet1.
integrated_y , packet1.
integrated_xgyro , packet1.
integrated_ygyro , packet1.
integrated_zgyro , packet1.
temperature , packet1.
quality , packet1.
time_delta_distance_us , packet1.
distance );
4035 mavlink_msg_hil_optical_flow_decode(&msg, &packet2);
4036 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
4038 memset(&packet2, 0,
sizeof(packet2));
4039 mavlink_msg_hil_optical_flow_pack_chan(system_id, component_id,
MAVLINK_COMM_0, &msg , packet1.
time_usec , packet1.
sensor_id , packet1.
integration_time_us , packet1.
integrated_x , packet1.
integrated_y , packet1.
integrated_xgyro , packet1.
integrated_ygyro , packet1.
integrated_zgyro , packet1.
temperature , packet1.
quality , packet1.
time_delta_distance_us , packet1.
distance );
4040 mavlink_msg_hil_optical_flow_decode(&msg, &packet2);
4041 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
4043 memset(&packet2, 0,
sizeof(packet2));
4045 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
4048 mavlink_msg_hil_optical_flow_decode(last_msg, &packet2);
4049 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
4051 memset(&packet2, 0,
sizeof(packet2));
4052 mavlink_msg_hil_optical_flow_send(
MAVLINK_COMM_1 , packet1.
time_usec , packet1.
sensor_id , packet1.
integration_time_us , packet1.
integrated_x , packet1.
integrated_y , packet1.
integrated_xgyro , packet1.
integrated_ygyro , packet1.
integrated_zgyro , packet1.
temperature , packet1.
quality , packet1.
time_delta_distance_us , packet1.
distance );
4053 mavlink_msg_hil_optical_flow_decode(last_msg, &packet2);
4054 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
4057 static void mavlink_test_hil_state_quaternion(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
4059 mavlink_message_t msg;
4063 93372036854775807ULL,{ 73.0, 74.0, 75.0, 76.0 },185.0,213.0,241.0,963499336,963499544,963499752,19731,19835,19939,20043,20147,20251,20355,20459
4066 memset(&packet1, 0,
sizeof(packet1));
4071 packet1.
lat = packet_in.
lat;
4072 packet1.
lon = packet_in.
lon;
4073 packet1.
alt = packet_in.
alt;
4074 packet1.
vx = packet_in.
vx;
4075 packet1.
vy = packet_in.
vy;
4076 packet1.
vz = packet_in.
vz;
4086 memset(&packet2, 0,
sizeof(packet2));
4087 mavlink_msg_hil_state_quaternion_encode(system_id, component_id, &msg, &packet1);
4088 mavlink_msg_hil_state_quaternion_decode(&msg, &packet2);
4089 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
4091 memset(&packet2, 0,
sizeof(packet2));
4092 mavlink_msg_hil_state_quaternion_pack(system_id, component_id, &msg , packet1.
time_usec , packet1.
attitude_quaternion , packet1.
rollspeed , packet1.
pitchspeed , packet1.
yawspeed , packet1.
lat , packet1.
lon , packet1.
alt , packet1.
vx , packet1.
vy , packet1.
vz , packet1.
ind_airspeed , packet1.
true_airspeed , packet1.
xacc , packet1.
yacc , packet1.
zacc );
4093 mavlink_msg_hil_state_quaternion_decode(&msg, &packet2);
4094 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
4096 memset(&packet2, 0,
sizeof(packet2));
4097 mavlink_msg_hil_state_quaternion_pack_chan(system_id, component_id,
MAVLINK_COMM_0, &msg , packet1.
time_usec , packet1.
attitude_quaternion , packet1.
rollspeed , packet1.
pitchspeed , packet1.
yawspeed , packet1.
lat , packet1.
lon , packet1.
alt , packet1.
vx , packet1.
vy , packet1.
vz , packet1.
ind_airspeed , packet1.
true_airspeed , packet1.
xacc , packet1.
yacc , packet1.
zacc );
4098 mavlink_msg_hil_state_quaternion_decode(&msg, &packet2);
4099 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
4101 memset(&packet2, 0,
sizeof(packet2));
4103 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
4106 mavlink_msg_hil_state_quaternion_decode(last_msg, &packet2);
4107 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
4109 memset(&packet2, 0,
sizeof(packet2));
4110 mavlink_msg_hil_state_quaternion_send(
MAVLINK_COMM_1 , packet1.
time_usec , packet1.
attitude_quaternion , packet1.
rollspeed , packet1.
pitchspeed , packet1.
yawspeed , packet1.
lat , packet1.
lon , packet1.
alt , packet1.
vx , packet1.
vy , packet1.
vz , packet1.
ind_airspeed , packet1.
true_airspeed , packet1.
xacc , packet1.
yacc , packet1.
zacc );
4111 mavlink_msg_hil_state_quaternion_decode(last_msg, &packet2);
4112 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
4115 static void mavlink_test_scaled_imu2(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
4117 mavlink_message_t msg;
4121 963497464,17443,17547,17651,17755,17859,17963,18067,18171,18275
4124 memset(&packet1, 0,
sizeof(packet1));
4138 memset(&packet2, 0,
sizeof(packet2));
4139 mavlink_msg_scaled_imu2_encode(system_id, component_id, &msg, &packet1);
4140 mavlink_msg_scaled_imu2_decode(&msg, &packet2);
4141 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
4143 memset(&packet2, 0,
sizeof(packet2));
4144 mavlink_msg_scaled_imu2_pack(system_id, component_id, &msg , packet1.
time_boot_ms , packet1.
xacc , packet1.
yacc , packet1.
zacc , packet1.
xgyro , packet1.
ygyro , packet1.
zgyro , packet1.
xmag , packet1.
ymag , packet1.
zmag );
4145 mavlink_msg_scaled_imu2_decode(&msg, &packet2);
4146 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
4148 memset(&packet2, 0,
sizeof(packet2));
4149 mavlink_msg_scaled_imu2_pack_chan(system_id, component_id,
MAVLINK_COMM_0, &msg , packet1.
time_boot_ms , packet1.
xacc , packet1.
yacc , packet1.
zacc , packet1.
xgyro , packet1.
ygyro , packet1.
zgyro , packet1.
xmag , packet1.
ymag , packet1.
zmag );
4150 mavlink_msg_scaled_imu2_decode(&msg, &packet2);
4151 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
4153 memset(&packet2, 0,
sizeof(packet2));
4155 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
4158 mavlink_msg_scaled_imu2_decode(last_msg, &packet2);
4159 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
4161 memset(&packet2, 0,
sizeof(packet2));
4162 mavlink_msg_scaled_imu2_send(
MAVLINK_COMM_1 , packet1.
time_boot_ms , packet1.
xacc , packet1.
yacc , packet1.
zacc , packet1.
xgyro , packet1.
ygyro , packet1.
zgyro , packet1.
xmag , packet1.
ymag , packet1.
zmag );
4163 mavlink_msg_scaled_imu2_decode(last_msg, &packet2);
4164 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
4167 static void mavlink_test_log_request_list(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
4169 mavlink_message_t msg;
4176 memset(&packet1, 0,
sizeof(packet1));
4178 packet1.
end = packet_in.
end;
4184 memset(&packet2, 0,
sizeof(packet2));
4185 mavlink_msg_log_request_list_encode(system_id, component_id, &msg, &packet1);
4186 mavlink_msg_log_request_list_decode(&msg, &packet2);
4187 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
4189 memset(&packet2, 0,
sizeof(packet2));
4191 mavlink_msg_log_request_list_decode(&msg, &packet2);
4192 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
4194 memset(&packet2, 0,
sizeof(packet2));
4196 mavlink_msg_log_request_list_decode(&msg, &packet2);
4197 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
4199 memset(&packet2, 0,
sizeof(packet2));
4201 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
4204 mavlink_msg_log_request_list_decode(last_msg, &packet2);
4205 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
4207 memset(&packet2, 0,
sizeof(packet2));
4209 mavlink_msg_log_request_list_decode(last_msg, &packet2);
4210 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
4213 static void mavlink_test_log_entry(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
4215 mavlink_message_t msg;
4219 963497464,963497672,17651,17755,17859
4222 memset(&packet1, 0,
sizeof(packet1));
4225 packet1.
id = packet_in.
id;
4231 memset(&packet2, 0,
sizeof(packet2));
4232 mavlink_msg_log_entry_encode(system_id, component_id, &msg, &packet1);
4233 mavlink_msg_log_entry_decode(&msg, &packet2);
4234 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
4236 memset(&packet2, 0,
sizeof(packet2));
4238 mavlink_msg_log_entry_decode(&msg, &packet2);
4239 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
4241 memset(&packet2, 0,
sizeof(packet2));
4243 mavlink_msg_log_entry_decode(&msg, &packet2);
4244 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
4246 memset(&packet2, 0,
sizeof(packet2));
4248 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
4251 mavlink_msg_log_entry_decode(last_msg, &packet2);
4252 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
4254 memset(&packet2, 0,
sizeof(packet2));
4256 mavlink_msg_log_entry_decode(last_msg, &packet2);
4257 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
4260 static void mavlink_test_log_request_data(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
4262 mavlink_message_t msg;
4266 963497464,963497672,17651,163,230
4269 memset(&packet1, 0,
sizeof(packet1));
4270 packet1.
ofs = packet_in.
ofs;
4272 packet1.
id = packet_in.
id;
4278 memset(&packet2, 0,
sizeof(packet2));
4279 mavlink_msg_log_request_data_encode(system_id, component_id, &msg, &packet1);
4280 mavlink_msg_log_request_data_decode(&msg, &packet2);
4281 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
4283 memset(&packet2, 0,
sizeof(packet2));
4285 mavlink_msg_log_request_data_decode(&msg, &packet2);
4286 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
4288 memset(&packet2, 0,
sizeof(packet2));
4290 mavlink_msg_log_request_data_decode(&msg, &packet2);
4291 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
4293 memset(&packet2, 0,
sizeof(packet2));
4295 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
4298 mavlink_msg_log_request_data_decode(last_msg, &packet2);
4299 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
4301 memset(&packet2, 0,
sizeof(packet2));
4303 mavlink_msg_log_request_data_decode(last_msg, &packet2);
4304 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
4307 static void mavlink_test_log_data(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
4309 mavlink_message_t msg;
4313 963497464,17443,151,{ 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51 }
4316 memset(&packet1, 0,
sizeof(packet1));
4317 packet1.
ofs = packet_in.
ofs;
4318 packet1.
id = packet_in.
id;
4321 mav_array_memcpy(packet1.
data, packet_in.
data,
sizeof(uint8_t)*90);
4324 memset(&packet2, 0,
sizeof(packet2));
4325 mavlink_msg_log_data_encode(system_id, component_id, &msg, &packet1);
4326 mavlink_msg_log_data_decode(&msg, &packet2);
4327 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
4329 memset(&packet2, 0,
sizeof(packet2));
4330 mavlink_msg_log_data_pack(system_id, component_id, &msg , packet1.
id , packet1.
ofs , packet1.
count , packet1.
data );
4331 mavlink_msg_log_data_decode(&msg, &packet2);
4332 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
4334 memset(&packet2, 0,
sizeof(packet2));
4335 mavlink_msg_log_data_pack_chan(system_id, component_id,
MAVLINK_COMM_0, &msg , packet1.
id , packet1.
ofs , packet1.
count , packet1.
data );
4336 mavlink_msg_log_data_decode(&msg, &packet2);
4337 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
4339 memset(&packet2, 0,
sizeof(packet2));
4341 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
4344 mavlink_msg_log_data_decode(last_msg, &packet2);
4345 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
4347 memset(&packet2, 0,
sizeof(packet2));
4349 mavlink_msg_log_data_decode(last_msg, &packet2);
4350 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
4353 static void mavlink_test_log_erase(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
4355 mavlink_message_t msg;
4362 memset(&packet1, 0,
sizeof(packet1));
4368 memset(&packet2, 0,
sizeof(packet2));
4369 mavlink_msg_log_erase_encode(system_id, component_id, &msg, &packet1);
4370 mavlink_msg_log_erase_decode(&msg, &packet2);
4371 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
4373 memset(&packet2, 0,
sizeof(packet2));
4375 mavlink_msg_log_erase_decode(&msg, &packet2);
4376 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
4378 memset(&packet2, 0,
sizeof(packet2));
4380 mavlink_msg_log_erase_decode(&msg, &packet2);
4381 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
4383 memset(&packet2, 0,
sizeof(packet2));
4385 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
4388 mavlink_msg_log_erase_decode(last_msg, &packet2);
4389 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
4391 memset(&packet2, 0,
sizeof(packet2));
4393 mavlink_msg_log_erase_decode(last_msg, &packet2);
4394 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
4397 static void mavlink_test_log_request_end(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
4399 mavlink_message_t msg;
4406 memset(&packet1, 0,
sizeof(packet1));
4412 memset(&packet2, 0,
sizeof(packet2));
4413 mavlink_msg_log_request_end_encode(system_id, component_id, &msg, &packet1);
4414 mavlink_msg_log_request_end_decode(&msg, &packet2);
4415 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
4417 memset(&packet2, 0,
sizeof(packet2));
4419 mavlink_msg_log_request_end_decode(&msg, &packet2);
4420 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
4422 memset(&packet2, 0,
sizeof(packet2));
4424 mavlink_msg_log_request_end_decode(&msg, &packet2);
4425 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
4427 memset(&packet2, 0,
sizeof(packet2));
4429 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
4432 mavlink_msg_log_request_end_decode(last_msg, &packet2);
4433 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
4435 memset(&packet2, 0,
sizeof(packet2));
4437 mavlink_msg_log_request_end_decode(last_msg, &packet2);
4438 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
4441 static void mavlink_test_gps_inject_data(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
4443 mavlink_message_t msg;
4447 5,72,139,{ 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59 }
4450 memset(&packet1, 0,
sizeof(packet1));
4453 packet1.
len = packet_in.
len;
4455 mav_array_memcpy(packet1.
data, packet_in.
data,
sizeof(uint8_t)*110);
4458 memset(&packet2, 0,
sizeof(packet2));
4459 mavlink_msg_gps_inject_data_encode(system_id, component_id, &msg, &packet1);
4460 mavlink_msg_gps_inject_data_decode(&msg, &packet2);
4461 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
4463 memset(&packet2, 0,
sizeof(packet2));
4465 mavlink_msg_gps_inject_data_decode(&msg, &packet2);
4466 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
4468 memset(&packet2, 0,
sizeof(packet2));
4470 mavlink_msg_gps_inject_data_decode(&msg, &packet2);
4471 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
4473 memset(&packet2, 0,
sizeof(packet2));
4475 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
4478 mavlink_msg_gps_inject_data_decode(last_msg, &packet2);
4479 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
4481 memset(&packet2, 0,
sizeof(packet2));
4483 mavlink_msg_gps_inject_data_decode(last_msg, &packet2);
4484 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
4487 static void mavlink_test_gps2_raw(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
4489 mavlink_message_t msg;
4493 93372036854775807ULL,963497880,963498088,963498296,963498504,18483,18587,18691,18795,101,168,235
4496 memset(&packet1, 0,
sizeof(packet1));
4498 packet1.
lat = packet_in.
lat;
4499 packet1.
lon = packet_in.
lon;
4500 packet1.
alt = packet_in.
alt;
4502 packet1.
eph = packet_in.
eph;
4503 packet1.
epv = packet_in.
epv;
4504 packet1.
vel = packet_in.
vel;
4505 packet1.
cog = packet_in.
cog;
4512 memset(&packet2, 0,
sizeof(packet2));
4513 mavlink_msg_gps2_raw_encode(system_id, component_id, &msg, &packet1);
4514 mavlink_msg_gps2_raw_decode(&msg, &packet2);
4515 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
4517 memset(&packet2, 0,
sizeof(packet2));
4518 mavlink_msg_gps2_raw_pack(system_id, component_id, &msg , packet1.
time_usec , packet1.
fix_type , packet1.
lat , packet1.
lon , packet1.
alt , packet1.
eph , packet1.
epv , packet1.
vel , packet1.
cog , packet1.
satellites_visible , packet1.
dgps_numch , packet1.
dgps_age );
4519 mavlink_msg_gps2_raw_decode(&msg, &packet2);
4520 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
4522 memset(&packet2, 0,
sizeof(packet2));
4523 mavlink_msg_gps2_raw_pack_chan(system_id, component_id,
MAVLINK_COMM_0, &msg , packet1.
time_usec , packet1.
fix_type , packet1.
lat , packet1.
lon , packet1.
alt , packet1.
eph , packet1.
epv , packet1.
vel , packet1.
cog , packet1.
satellites_visible , packet1.
dgps_numch , packet1.
dgps_age );
4524 mavlink_msg_gps2_raw_decode(&msg, &packet2);
4525 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
4527 memset(&packet2, 0,
sizeof(packet2));
4529 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
4532 mavlink_msg_gps2_raw_decode(last_msg, &packet2);
4533 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
4535 memset(&packet2, 0,
sizeof(packet2));
4536 mavlink_msg_gps2_raw_send(
MAVLINK_COMM_1 , packet1.
time_usec , packet1.
fix_type , packet1.
lat , packet1.
lon , packet1.
alt , packet1.
eph , packet1.
epv , packet1.
vel , packet1.
cog , packet1.
satellites_visible , packet1.
dgps_numch , packet1.
dgps_age );
4537 mavlink_msg_gps2_raw_decode(last_msg, &packet2);
4538 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
4541 static void mavlink_test_power_status(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
4543 mavlink_message_t msg;
4550 memset(&packet1, 0,
sizeof(packet1));
4551 packet1.
Vcc = packet_in.
Vcc;
4557 memset(&packet2, 0,
sizeof(packet2));
4558 mavlink_msg_power_status_encode(system_id, component_id, &msg, &packet1);
4559 mavlink_msg_power_status_decode(&msg, &packet2);
4560 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
4562 memset(&packet2, 0,
sizeof(packet2));
4563 mavlink_msg_power_status_pack(system_id, component_id, &msg , packet1.
Vcc , packet1.
Vservo , packet1.
flags );
4564 mavlink_msg_power_status_decode(&msg, &packet2);
4565 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
4567 memset(&packet2, 0,
sizeof(packet2));
4569 mavlink_msg_power_status_decode(&msg, &packet2);
4570 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
4572 memset(&packet2, 0,
sizeof(packet2));
4574 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
4577 mavlink_msg_power_status_decode(last_msg, &packet2);
4578 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
4580 memset(&packet2, 0,
sizeof(packet2));
4582 mavlink_msg_power_status_decode(last_msg, &packet2);
4583 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
4586 static void mavlink_test_serial_control(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
4588 mavlink_message_t msg;
4592 963497464,17443,151,218,29,{ 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165 }
4595 memset(&packet1, 0,
sizeof(packet1));
4602 mav_array_memcpy(packet1.
data, packet_in.
data,
sizeof(uint8_t)*70);
4605 memset(&packet2, 0,
sizeof(packet2));
4606 mavlink_msg_serial_control_encode(system_id, component_id, &msg, &packet1);
4607 mavlink_msg_serial_control_decode(&msg, &packet2);
4608 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
4610 memset(&packet2, 0,
sizeof(packet2));
4612 mavlink_msg_serial_control_decode(&msg, &packet2);
4613 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
4615 memset(&packet2, 0,
sizeof(packet2));
4617 mavlink_msg_serial_control_decode(&msg, &packet2);
4618 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
4620 memset(&packet2, 0,
sizeof(packet2));
4622 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
4625 mavlink_msg_serial_control_decode(last_msg, &packet2);
4626 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
4628 memset(&packet2, 0,
sizeof(packet2));
4630 mavlink_msg_serial_control_decode(last_msg, &packet2);
4631 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
4634 static void mavlink_test_gps_rtk(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
4636 mavlink_message_t msg;
4640 963497464,963497672,963497880,963498088,963498296,963498504,963498712,18691,223,34,101,168,235
4643 memset(&packet1, 0,
sizeof(packet1));
4645 packet1.
tow = packet_in.
tow;
4651 packet1.
wn = packet_in.
wn;
4660 memset(&packet2, 0,
sizeof(packet2));
4661 mavlink_msg_gps_rtk_encode(system_id, component_id, &msg, &packet1);
4662 mavlink_msg_gps_rtk_decode(&msg, &packet2);
4663 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
4665 memset(&packet2, 0,
sizeof(packet2));
4666 mavlink_msg_gps_rtk_pack(system_id, component_id, &msg , packet1.
time_last_baseline_ms , packet1.
rtk_receiver_id , packet1.
wn , packet1.
tow , packet1.
rtk_health , packet1.
rtk_rate , packet1.
nsats , packet1.
baseline_coords_type , packet1.
baseline_a_mm , packet1.
baseline_b_mm , packet1.
baseline_c_mm , packet1.
accuracy , packet1.
iar_num_hypotheses );
4667 mavlink_msg_gps_rtk_decode(&msg, &packet2);
4668 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
4670 memset(&packet2, 0,
sizeof(packet2));
4671 mavlink_msg_gps_rtk_pack_chan(system_id, component_id,
MAVLINK_COMM_0, &msg , packet1.
time_last_baseline_ms , packet1.
rtk_receiver_id , packet1.
wn , packet1.
tow , packet1.
rtk_health , packet1.
rtk_rate , packet1.
nsats , packet1.
baseline_coords_type , packet1.
baseline_a_mm , packet1.
baseline_b_mm , packet1.
baseline_c_mm , packet1.
accuracy , packet1.
iar_num_hypotheses );
4672 mavlink_msg_gps_rtk_decode(&msg, &packet2);
4673 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
4675 memset(&packet2, 0,
sizeof(packet2));
4677 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
4680 mavlink_msg_gps_rtk_decode(last_msg, &packet2);
4681 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
4683 memset(&packet2, 0,
sizeof(packet2));
4684 mavlink_msg_gps_rtk_send(
MAVLINK_COMM_1 , packet1.
time_last_baseline_ms , packet1.
rtk_receiver_id , packet1.
wn , packet1.
tow , packet1.
rtk_health , packet1.
rtk_rate , packet1.
nsats , packet1.
baseline_coords_type , packet1.
baseline_a_mm , packet1.
baseline_b_mm , packet1.
baseline_c_mm , packet1.
accuracy , packet1.
iar_num_hypotheses );
4685 mavlink_msg_gps_rtk_decode(last_msg, &packet2);
4686 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
4689 static void mavlink_test_gps2_rtk(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
4691 mavlink_message_t msg;
4695 963497464,963497672,963497880,963498088,963498296,963498504,963498712,18691,223,34,101,168,235
4698 memset(&packet1, 0,
sizeof(packet1));
4700 packet1.
tow = packet_in.
tow;
4706 packet1.
wn = packet_in.
wn;
4715 memset(&packet2, 0,
sizeof(packet2));
4716 mavlink_msg_gps2_rtk_encode(system_id, component_id, &msg, &packet1);
4717 mavlink_msg_gps2_rtk_decode(&msg, &packet2);
4718 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
4720 memset(&packet2, 0,
sizeof(packet2));
4721 mavlink_msg_gps2_rtk_pack(system_id, component_id, &msg , packet1.
time_last_baseline_ms , packet1.
rtk_receiver_id , packet1.
wn , packet1.
tow , packet1.
rtk_health , packet1.
rtk_rate , packet1.
nsats , packet1.
baseline_coords_type , packet1.
baseline_a_mm , packet1.
baseline_b_mm , packet1.
baseline_c_mm , packet1.
accuracy , packet1.
iar_num_hypotheses );
4722 mavlink_msg_gps2_rtk_decode(&msg, &packet2);
4723 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
4725 memset(&packet2, 0,
sizeof(packet2));
4726 mavlink_msg_gps2_rtk_pack_chan(system_id, component_id,
MAVLINK_COMM_0, &msg , packet1.
time_last_baseline_ms , packet1.
rtk_receiver_id , packet1.
wn , packet1.
tow , packet1.
rtk_health , packet1.
rtk_rate , packet1.
nsats , packet1.
baseline_coords_type , packet1.
baseline_a_mm , packet1.
baseline_b_mm , packet1.
baseline_c_mm , packet1.
accuracy , packet1.
iar_num_hypotheses );
4727 mavlink_msg_gps2_rtk_decode(&msg, &packet2);
4728 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
4730 memset(&packet2, 0,
sizeof(packet2));
4732 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
4735 mavlink_msg_gps2_rtk_decode(last_msg, &packet2);
4736 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
4738 memset(&packet2, 0,
sizeof(packet2));
4739 mavlink_msg_gps2_rtk_send(
MAVLINK_COMM_1 , packet1.
time_last_baseline_ms , packet1.
rtk_receiver_id , packet1.
wn , packet1.
tow , packet1.
rtk_health , packet1.
rtk_rate , packet1.
nsats , packet1.
baseline_coords_type , packet1.
baseline_a_mm , packet1.
baseline_b_mm , packet1.
baseline_c_mm , packet1.
accuracy , packet1.
iar_num_hypotheses );
4740 mavlink_msg_gps2_rtk_decode(last_msg, &packet2);
4741 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
4744 static void mavlink_test_scaled_imu3(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
4746 mavlink_message_t msg;
4750 963497464,17443,17547,17651,17755,17859,17963,18067,18171,18275
4753 memset(&packet1, 0,
sizeof(packet1));
4767 memset(&packet2, 0,
sizeof(packet2));
4768 mavlink_msg_scaled_imu3_encode(system_id, component_id, &msg, &packet1);
4769 mavlink_msg_scaled_imu3_decode(&msg, &packet2);
4770 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
4772 memset(&packet2, 0,
sizeof(packet2));
4773 mavlink_msg_scaled_imu3_pack(system_id, component_id, &msg , packet1.
time_boot_ms , packet1.
xacc , packet1.
yacc , packet1.
zacc , packet1.
xgyro , packet1.
ygyro , packet1.
zgyro , packet1.
xmag , packet1.
ymag , packet1.
zmag );
4774 mavlink_msg_scaled_imu3_decode(&msg, &packet2);
4775 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
4777 memset(&packet2, 0,
sizeof(packet2));
4778 mavlink_msg_scaled_imu3_pack_chan(system_id, component_id,
MAVLINK_COMM_0, &msg , packet1.
time_boot_ms , packet1.
xacc , packet1.
yacc , packet1.
zacc , packet1.
xgyro , packet1.
ygyro , packet1.
zgyro , packet1.
xmag , packet1.
ymag , packet1.
zmag );
4779 mavlink_msg_scaled_imu3_decode(&msg, &packet2);
4780 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
4782 memset(&packet2, 0,
sizeof(packet2));
4784 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
4787 mavlink_msg_scaled_imu3_decode(last_msg, &packet2);
4788 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
4790 memset(&packet2, 0,
sizeof(packet2));
4791 mavlink_msg_scaled_imu3_send(
MAVLINK_COMM_1 , packet1.
time_boot_ms , packet1.
xacc , packet1.
yacc , packet1.
zacc , packet1.
xgyro , packet1.
ygyro , packet1.
zgyro , packet1.
xmag , packet1.
ymag , packet1.
zmag );
4792 mavlink_msg_scaled_imu3_decode(last_msg, &packet2);
4793 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
4796 static void mavlink_test_data_transmission_handshake(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
4798 mavlink_message_t msg;
4802 963497464,17443,17547,17651,163,230,41
4805 memset(&packet1, 0,
sizeof(packet1));
4816 memset(&packet2, 0,
sizeof(packet2));
4817 mavlink_msg_data_transmission_handshake_encode(system_id, component_id, &msg, &packet1);
4818 mavlink_msg_data_transmission_handshake_decode(&msg, &packet2);
4819 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
4821 memset(&packet2, 0,
sizeof(packet2));
4823 mavlink_msg_data_transmission_handshake_decode(&msg, &packet2);
4824 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
4826 memset(&packet2, 0,
sizeof(packet2));
4827 mavlink_msg_data_transmission_handshake_pack_chan(system_id, component_id,
MAVLINK_COMM_0, &msg , packet1.
type , packet1.
size , packet1.
width , packet1.
height , packet1.
packets , packet1.
payload , packet1.
jpg_quality );
4828 mavlink_msg_data_transmission_handshake_decode(&msg, &packet2);
4829 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
4831 memset(&packet2, 0,
sizeof(packet2));
4833 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
4836 mavlink_msg_data_transmission_handshake_decode(last_msg, &packet2);
4837 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
4839 memset(&packet2, 0,
sizeof(packet2));
4841 mavlink_msg_data_transmission_handshake_decode(last_msg, &packet2);
4842 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
4845 static void mavlink_test_encapsulated_data(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
4847 mavlink_message_t msg;
4851 17235,{ 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135 }
4854 memset(&packet1, 0,
sizeof(packet1));
4857 mav_array_memcpy(packet1.
data, packet_in.
data,
sizeof(uint8_t)*253);
4860 memset(&packet2, 0,
sizeof(packet2));
4861 mavlink_msg_encapsulated_data_encode(system_id, component_id, &msg, &packet1);
4862 mavlink_msg_encapsulated_data_decode(&msg, &packet2);
4863 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
4865 memset(&packet2, 0,
sizeof(packet2));
4866 mavlink_msg_encapsulated_data_pack(system_id, component_id, &msg , packet1.
seqnr , packet1.
data );
4867 mavlink_msg_encapsulated_data_decode(&msg, &packet2);
4868 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
4870 memset(&packet2, 0,
sizeof(packet2));
4871 mavlink_msg_encapsulated_data_pack_chan(system_id, component_id,
MAVLINK_COMM_0, &msg , packet1.
seqnr , packet1.
data );
4872 mavlink_msg_encapsulated_data_decode(&msg, &packet2);
4873 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
4875 memset(&packet2, 0,
sizeof(packet2));
4877 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
4880 mavlink_msg_encapsulated_data_decode(last_msg, &packet2);
4881 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
4883 memset(&packet2, 0,
sizeof(packet2));
4885 mavlink_msg_encapsulated_data_decode(last_msg, &packet2);
4886 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
4889 static void mavlink_test_distance_sensor(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
4891 mavlink_message_t msg;
4895 963497464,17443,17547,17651,163,230,41,108
4898 memset(&packet1, 0,
sizeof(packet1));
4904 packet1.
id = packet_in.
id;
4910 memset(&packet2, 0,
sizeof(packet2));
4911 mavlink_msg_distance_sensor_encode(system_id, component_id, &msg, &packet1);
4912 mavlink_msg_distance_sensor_decode(&msg, &packet2);
4913 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
4915 memset(&packet2, 0,
sizeof(packet2));
4916 mavlink_msg_distance_sensor_pack(system_id, component_id, &msg , packet1.
time_boot_ms , packet1.
min_distance , packet1.
max_distance , packet1.
current_distance , packet1.
type , packet1.
id , packet1.
orientation , packet1.
covariance );
4917 mavlink_msg_distance_sensor_decode(&msg, &packet2);
4918 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
4920 memset(&packet2, 0,
sizeof(packet2));
4921 mavlink_msg_distance_sensor_pack_chan(system_id, component_id,
MAVLINK_COMM_0, &msg , packet1.
time_boot_ms , packet1.
min_distance , packet1.
max_distance , packet1.
current_distance , packet1.
type , packet1.
id , packet1.
orientation , packet1.
covariance );
4922 mavlink_msg_distance_sensor_decode(&msg, &packet2);
4923 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
4925 memset(&packet2, 0,
sizeof(packet2));
4927 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
4930 mavlink_msg_distance_sensor_decode(last_msg, &packet2);
4931 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
4933 memset(&packet2, 0,
sizeof(packet2));
4935 mavlink_msg_distance_sensor_decode(last_msg, &packet2);
4936 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
4939 static void mavlink_test_terrain_request(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
4941 mavlink_message_t msg;
4945 93372036854775807ULL,963497880,963498088,18067
4948 memset(&packet1, 0,
sizeof(packet1));
4950 packet1.
lat = packet_in.
lat;
4951 packet1.
lon = packet_in.
lon;
4956 memset(&packet2, 0,
sizeof(packet2));
4957 mavlink_msg_terrain_request_encode(system_id, component_id, &msg, &packet1);
4958 mavlink_msg_terrain_request_decode(&msg, &packet2);
4959 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
4961 memset(&packet2, 0,
sizeof(packet2));
4962 mavlink_msg_terrain_request_pack(system_id, component_id, &msg , packet1.
lat , packet1.
lon , packet1.
grid_spacing , packet1.
mask );
4963 mavlink_msg_terrain_request_decode(&msg, &packet2);
4964 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
4966 memset(&packet2, 0,
sizeof(packet2));
4968 mavlink_msg_terrain_request_decode(&msg, &packet2);
4969 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
4971 memset(&packet2, 0,
sizeof(packet2));
4973 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
4976 mavlink_msg_terrain_request_decode(last_msg, &packet2);
4977 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
4979 memset(&packet2, 0,
sizeof(packet2));
4981 mavlink_msg_terrain_request_decode(last_msg, &packet2);
4982 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
4985 static void mavlink_test_terrain_data(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
4987 mavlink_message_t msg;
4991 963497464,963497672,17651,{ 17755, 17756, 17757, 17758, 17759, 17760, 17761, 17762, 17763, 17764, 17765, 17766, 17767, 17768, 17769, 17770 },3
4994 memset(&packet1, 0,
sizeof(packet1));
4995 packet1.
lat = packet_in.
lat;
4996 packet1.
lon = packet_in.
lon;
5000 mav_array_memcpy(packet1.
data, packet_in.
data,
sizeof(int16_t)*16);
5003 memset(&packet2, 0,
sizeof(packet2));
5004 mavlink_msg_terrain_data_encode(system_id, component_id, &msg, &packet1);
5005 mavlink_msg_terrain_data_decode(&msg, &packet2);
5006 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
5008 memset(&packet2, 0,
sizeof(packet2));
5009 mavlink_msg_terrain_data_pack(system_id, component_id, &msg , packet1.
lat , packet1.
lon , packet1.
grid_spacing , packet1.
gridbit , packet1.
data );
5010 mavlink_msg_terrain_data_decode(&msg, &packet2);
5011 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
5013 memset(&packet2, 0,
sizeof(packet2));
5015 mavlink_msg_terrain_data_decode(&msg, &packet2);
5016 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
5018 memset(&packet2, 0,
sizeof(packet2));
5020 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
5023 mavlink_msg_terrain_data_decode(last_msg, &packet2);
5024 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
5026 memset(&packet2, 0,
sizeof(packet2));
5028 mavlink_msg_terrain_data_decode(last_msg, &packet2);
5029 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
5032 static void mavlink_test_terrain_check(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
5034 mavlink_message_t msg;
5041 memset(&packet1, 0,
sizeof(packet1));
5042 packet1.
lat = packet_in.
lat;
5043 packet1.
lon = packet_in.
lon;
5047 memset(&packet2, 0,
sizeof(packet2));
5048 mavlink_msg_terrain_check_encode(system_id, component_id, &msg, &packet1);
5049 mavlink_msg_terrain_check_decode(&msg, &packet2);
5050 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
5052 memset(&packet2, 0,
sizeof(packet2));
5053 mavlink_msg_terrain_check_pack(system_id, component_id, &msg , packet1.
lat , packet1.
lon );
5054 mavlink_msg_terrain_check_decode(&msg, &packet2);
5055 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
5057 memset(&packet2, 0,
sizeof(packet2));
5058 mavlink_msg_terrain_check_pack_chan(system_id, component_id,
MAVLINK_COMM_0, &msg , packet1.
lat , packet1.
lon );
5059 mavlink_msg_terrain_check_decode(&msg, &packet2);
5060 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
5062 memset(&packet2, 0,
sizeof(packet2));
5064 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
5067 mavlink_msg_terrain_check_decode(last_msg, &packet2);
5068 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
5070 memset(&packet2, 0,
sizeof(packet2));
5072 mavlink_msg_terrain_check_decode(last_msg, &packet2);
5073 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
5076 static void mavlink_test_terrain_report(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
5078 mavlink_message_t msg;
5082 963497464,963497672,73.0,101.0,18067,18171,18275
5085 memset(&packet1, 0,
sizeof(packet1));
5086 packet1.
lat = packet_in.
lat;
5087 packet1.
lon = packet_in.
lon;
5096 memset(&packet2, 0,
sizeof(packet2));
5097 mavlink_msg_terrain_report_encode(system_id, component_id, &msg, &packet1);
5098 mavlink_msg_terrain_report_decode(&msg, &packet2);
5099 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
5101 memset(&packet2, 0,
sizeof(packet2));
5103 mavlink_msg_terrain_report_decode(&msg, &packet2);
5104 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
5106 memset(&packet2, 0,
sizeof(packet2));
5107 mavlink_msg_terrain_report_pack_chan(system_id, component_id,
MAVLINK_COMM_0, &msg , packet1.
lat , packet1.
lon , packet1.
spacing , packet1.
terrain_height , packet1.
current_height , packet1.
pending , packet1.
loaded );
5108 mavlink_msg_terrain_report_decode(&msg, &packet2);
5109 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
5111 memset(&packet2, 0,
sizeof(packet2));
5113 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
5116 mavlink_msg_terrain_report_decode(last_msg, &packet2);
5117 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
5119 memset(&packet2, 0,
sizeof(packet2));
5121 mavlink_msg_terrain_report_decode(last_msg, &packet2);
5122 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
5125 static void mavlink_test_scaled_pressure2(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
5127 mavlink_message_t msg;
5131 963497464,45.0,73.0,17859
5134 memset(&packet1, 0,
sizeof(packet1));
5142 memset(&packet2, 0,
sizeof(packet2));
5143 mavlink_msg_scaled_pressure2_encode(system_id, component_id, &msg, &packet1);
5144 mavlink_msg_scaled_pressure2_decode(&msg, &packet2);
5145 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
5147 memset(&packet2, 0,
sizeof(packet2));
5149 mavlink_msg_scaled_pressure2_decode(&msg, &packet2);
5150 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
5152 memset(&packet2, 0,
sizeof(packet2));
5154 mavlink_msg_scaled_pressure2_decode(&msg, &packet2);
5155 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
5157 memset(&packet2, 0,
sizeof(packet2));
5159 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
5162 mavlink_msg_scaled_pressure2_decode(last_msg, &packet2);
5163 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
5165 memset(&packet2, 0,
sizeof(packet2));
5167 mavlink_msg_scaled_pressure2_decode(last_msg, &packet2);
5168 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
5171 static void mavlink_test_att_pos_mocap(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
5173 mavlink_message_t msg;
5177 93372036854775807ULL,{ 73.0, 74.0, 75.0, 76.0 },185.0,213.0,241.0
5180 memset(&packet1, 0,
sizeof(packet1));
5182 packet1.
x = packet_in.
x;
5183 packet1.
y = packet_in.
y;
5184 packet1.
z = packet_in.
z;
5186 mav_array_memcpy(packet1.
q, packet_in.
q,
sizeof(
float)*4);
5189 memset(&packet2, 0,
sizeof(packet2));
5190 mavlink_msg_att_pos_mocap_encode(system_id, component_id, &msg, &packet1);
5191 mavlink_msg_att_pos_mocap_decode(&msg, &packet2);
5192 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
5194 memset(&packet2, 0,
sizeof(packet2));
5195 mavlink_msg_att_pos_mocap_pack(system_id, component_id, &msg , packet1.
time_usec , packet1.
q , packet1.
x , packet1.
y , packet1.
z );
5196 mavlink_msg_att_pos_mocap_decode(&msg, &packet2);
5197 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
5199 memset(&packet2, 0,
sizeof(packet2));
5200 mavlink_msg_att_pos_mocap_pack_chan(system_id, component_id,
MAVLINK_COMM_0, &msg , packet1.
time_usec , packet1.
q , packet1.
x , packet1.
y , packet1.
z );
5201 mavlink_msg_att_pos_mocap_decode(&msg, &packet2);
5202 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
5204 memset(&packet2, 0,
sizeof(packet2));
5206 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
5209 mavlink_msg_att_pos_mocap_decode(last_msg, &packet2);
5210 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
5212 memset(&packet2, 0,
sizeof(packet2));
5214 mavlink_msg_att_pos_mocap_decode(last_msg, &packet2);
5215 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
5218 static void mavlink_test_set_actuator_control_target(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
5220 mavlink_message_t msg;
5224 93372036854775807ULL,{ 73.0, 74.0, 75.0, 76.0, 77.0, 78.0, 79.0, 80.0 },125,192,3
5227 memset(&packet1, 0,
sizeof(packet1));
5236 memset(&packet2, 0,
sizeof(packet2));
5237 mavlink_msg_set_actuator_control_target_encode(system_id, component_id, &msg, &packet1);
5238 mavlink_msg_set_actuator_control_target_decode(&msg, &packet2);
5239 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
5241 memset(&packet2, 0,
sizeof(packet2));
5243 mavlink_msg_set_actuator_control_target_decode(&msg, &packet2);
5244 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
5246 memset(&packet2, 0,
sizeof(packet2));
5248 mavlink_msg_set_actuator_control_target_decode(&msg, &packet2);
5249 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
5251 memset(&packet2, 0,
sizeof(packet2));
5253 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
5256 mavlink_msg_set_actuator_control_target_decode(last_msg, &packet2);
5257 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
5259 memset(&packet2, 0,
sizeof(packet2));
5261 mavlink_msg_set_actuator_control_target_decode(last_msg, &packet2);
5262 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
5265 static void mavlink_test_actuator_control_target(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
5267 mavlink_message_t msg;
5271 93372036854775807ULL,{ 73.0, 74.0, 75.0, 76.0, 77.0, 78.0, 79.0, 80.0 },125
5274 memset(&packet1, 0,
sizeof(packet1));
5281 memset(&packet2, 0,
sizeof(packet2));
5282 mavlink_msg_actuator_control_target_encode(system_id, component_id, &msg, &packet1);
5283 mavlink_msg_actuator_control_target_decode(&msg, &packet2);
5284 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
5286 memset(&packet2, 0,
sizeof(packet2));
5287 mavlink_msg_actuator_control_target_pack(system_id, component_id, &msg , packet1.
time_usec , packet1.
group_mlx , packet1.
controls );
5288 mavlink_msg_actuator_control_target_decode(&msg, &packet2);
5289 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
5291 memset(&packet2, 0,
sizeof(packet2));
5293 mavlink_msg_actuator_control_target_decode(&msg, &packet2);
5294 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
5296 memset(&packet2, 0,
sizeof(packet2));
5298 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
5301 mavlink_msg_actuator_control_target_decode(last_msg, &packet2);
5302 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
5304 memset(&packet2, 0,
sizeof(packet2));
5306 mavlink_msg_actuator_control_target_decode(last_msg, &packet2);
5307 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
5310 static void mavlink_test_battery_status(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
5312 mavlink_message_t msg;
5316 963497464,963497672,17651,{ 17755, 17756, 17757, 17758, 17759, 17760, 17761, 17762, 17763, 17764 },18795,101,168,235,46
5319 memset(&packet1, 0,
sizeof(packet1));
5324 packet1.
id = packet_in.
id;
5329 mav_array_memcpy(packet1.
voltages, packet_in.
voltages,
sizeof(uint16_t)*10);
5332 memset(&packet2, 0,
sizeof(packet2));
5333 mavlink_msg_battery_status_encode(system_id, component_id, &msg, &packet1);
5334 mavlink_msg_battery_status_decode(&msg, &packet2);
5335 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
5337 memset(&packet2, 0,
sizeof(packet2));
5338 mavlink_msg_battery_status_pack(system_id, component_id, &msg , packet1.
id , packet1.
battery_function , packet1.
type , packet1.
temperature , packet1.
voltages , packet1.
current_battery , packet1.
current_consumed , packet1.
energy_consumed , packet1.
battery_remaining );
5339 mavlink_msg_battery_status_decode(&msg, &packet2);
5340 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
5342 memset(&packet2, 0,
sizeof(packet2));
5343 mavlink_msg_battery_status_pack_chan(system_id, component_id,
MAVLINK_COMM_0, &msg , packet1.
id , packet1.
battery_function , packet1.
type , packet1.
temperature , packet1.
voltages , packet1.
current_battery , packet1.
current_consumed , packet1.
energy_consumed , packet1.
battery_remaining );
5344 mavlink_msg_battery_status_decode(&msg, &packet2);
5345 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
5347 memset(&packet2, 0,
sizeof(packet2));
5349 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
5352 mavlink_msg_battery_status_decode(last_msg, &packet2);
5353 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
5355 memset(&packet2, 0,
sizeof(packet2));
5357 mavlink_msg_battery_status_decode(last_msg, &packet2);
5358 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
5361 static void mavlink_test_autopilot_version(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
5363 mavlink_message_t msg;
5367 93372036854775807ULL,93372036854776311ULL,963498296,963498504,963498712,963498920,18899,19003,{ 113, 114, 115, 116, 117, 118, 119, 120 },{ 137, 138, 139, 140, 141, 142, 143, 144 },{ 161, 162, 163, 164, 165, 166, 167, 168 }
5370 memset(&packet1, 0,
sizeof(packet1));
5372 packet1.
uid = packet_in.
uid;
5385 memset(&packet2, 0,
sizeof(packet2));
5386 mavlink_msg_autopilot_version_encode(system_id, component_id, &msg, &packet1);
5387 mavlink_msg_autopilot_version_decode(&msg, &packet2);
5388 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
5390 memset(&packet2, 0,
sizeof(packet2));
5391 mavlink_msg_autopilot_version_pack(system_id, component_id, &msg , packet1.
capabilities , packet1.
flight_sw_version , packet1.
middleware_sw_version , packet1.
os_sw_version , packet1.
board_version , packet1.
flight_custom_version , packet1.
middleware_custom_version , packet1.
os_custom_version , packet1.
vendor_id , packet1.
product_id , packet1.
uid );
5392 mavlink_msg_autopilot_version_decode(&msg, &packet2);
5393 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
5395 memset(&packet2, 0,
sizeof(packet2));
5396 mavlink_msg_autopilot_version_pack_chan(system_id, component_id,
MAVLINK_COMM_0, &msg , packet1.
capabilities , packet1.
flight_sw_version , packet1.
middleware_sw_version , packet1.
os_sw_version , packet1.
board_version , packet1.
flight_custom_version , packet1.
middleware_custom_version , packet1.
os_custom_version , packet1.
vendor_id , packet1.
product_id , packet1.
uid );
5397 mavlink_msg_autopilot_version_decode(&msg, &packet2);
5398 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
5400 memset(&packet2, 0,
sizeof(packet2));
5402 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
5405 mavlink_msg_autopilot_version_decode(last_msg, &packet2);
5406 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
5408 memset(&packet2, 0,
sizeof(packet2));
5409 mavlink_msg_autopilot_version_send(
MAVLINK_COMM_1 , packet1.
capabilities , packet1.
flight_sw_version , packet1.
middleware_sw_version , packet1.
os_sw_version , packet1.
board_version , packet1.
flight_custom_version , packet1.
middleware_custom_version , packet1.
os_custom_version , packet1.
vendor_id , packet1.
product_id , packet1.
uid );
5410 mavlink_msg_autopilot_version_decode(last_msg, &packet2);
5411 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
5414 static void mavlink_test_v2_extension(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
5416 mavlink_message_t msg;
5420 17235,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, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76 }
5423 memset(&packet1, 0,
sizeof(packet1));
5429 mav_array_memcpy(packet1.
payload, packet_in.
payload,
sizeof(uint8_t)*249);
5432 memset(&packet2, 0,
sizeof(packet2));
5433 mavlink_msg_v2_extension_encode(system_id, component_id, &msg, &packet1);
5434 mavlink_msg_v2_extension_decode(&msg, &packet2);
5435 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
5437 memset(&packet2, 0,
sizeof(packet2));
5439 mavlink_msg_v2_extension_decode(&msg, &packet2);
5440 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
5442 memset(&packet2, 0,
sizeof(packet2));
5444 mavlink_msg_v2_extension_decode(&msg, &packet2);
5445 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
5447 memset(&packet2, 0,
sizeof(packet2));
5449 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
5452 mavlink_msg_v2_extension_decode(last_msg, &packet2);
5453 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
5455 memset(&packet2, 0,
sizeof(packet2));
5457 mavlink_msg_v2_extension_decode(last_msg, &packet2);
5458 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
5461 static void mavlink_test_memory_vect(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
5463 mavlink_message_t msg;
5467 17235,139,206,{ 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48 }
5470 memset(&packet1, 0,
sizeof(packet1));
5472 packet1.
ver = packet_in.
ver;
5475 mav_array_memcpy(packet1.
value, packet_in.
value,
sizeof(int8_t)*32);
5478 memset(&packet2, 0,
sizeof(packet2));
5479 mavlink_msg_memory_vect_encode(system_id, component_id, &msg, &packet1);
5480 mavlink_msg_memory_vect_decode(&msg, &packet2);
5481 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
5483 memset(&packet2, 0,
sizeof(packet2));
5484 mavlink_msg_memory_vect_pack(system_id, component_id, &msg , packet1.
address , packet1.
ver , packet1.
type , packet1.
value );
5485 mavlink_msg_memory_vect_decode(&msg, &packet2);
5486 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
5488 memset(&packet2, 0,
sizeof(packet2));
5490 mavlink_msg_memory_vect_decode(&msg, &packet2);
5491 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
5493 memset(&packet2, 0,
sizeof(packet2));
5495 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
5498 mavlink_msg_memory_vect_decode(last_msg, &packet2);
5499 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
5501 memset(&packet2, 0,
sizeof(packet2));
5503 mavlink_msg_memory_vect_decode(last_msg, &packet2);
5504 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
5507 static void mavlink_test_debug_vect(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
5509 mavlink_message_t msg;
5513 93372036854775807ULL,73.0,101.0,129.0,
"UVWXYZABC"
5516 memset(&packet1, 0,
sizeof(packet1));
5518 packet1.
x = packet_in.
x;
5519 packet1.
y = packet_in.
y;
5520 packet1.
z = packet_in.
z;
5522 mav_array_memcpy(packet1.
name, packet_in.
name,
sizeof(
char)*10);
5525 memset(&packet2, 0,
sizeof(packet2));
5526 mavlink_msg_debug_vect_encode(system_id, component_id, &msg, &packet1);
5527 mavlink_msg_debug_vect_decode(&msg, &packet2);
5528 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
5530 memset(&packet2, 0,
sizeof(packet2));
5531 mavlink_msg_debug_vect_pack(system_id, component_id, &msg , packet1.
name , packet1.
time_usec , packet1.
x , packet1.
y , packet1.
z );
5532 mavlink_msg_debug_vect_decode(&msg, &packet2);
5533 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
5535 memset(&packet2, 0,
sizeof(packet2));
5536 mavlink_msg_debug_vect_pack_chan(system_id, component_id,
MAVLINK_COMM_0, &msg , packet1.
name , packet1.
time_usec , packet1.
x , packet1.
y , packet1.
z );
5537 mavlink_msg_debug_vect_decode(&msg, &packet2);
5538 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
5540 memset(&packet2, 0,
sizeof(packet2));
5542 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
5545 mavlink_msg_debug_vect_decode(last_msg, &packet2);
5546 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
5548 memset(&packet2, 0,
sizeof(packet2));
5550 mavlink_msg_debug_vect_decode(last_msg, &packet2);
5551 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
5554 static void mavlink_test_named_value_float(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
5556 mavlink_message_t msg;
5560 963497464,45.0,
"IJKLMNOPQ"
5563 memset(&packet1, 0,
sizeof(packet1));
5567 mav_array_memcpy(packet1.
name, packet_in.
name,
sizeof(
char)*10);
5570 memset(&packet2, 0,
sizeof(packet2));
5571 mavlink_msg_named_value_float_encode(system_id, component_id, &msg, &packet1);
5572 mavlink_msg_named_value_float_decode(&msg, &packet2);
5573 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
5575 memset(&packet2, 0,
sizeof(packet2));
5576 mavlink_msg_named_value_float_pack(system_id, component_id, &msg , packet1.
time_boot_ms , packet1.
name , packet1.
value );
5577 mavlink_msg_named_value_float_decode(&msg, &packet2);
5578 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
5580 memset(&packet2, 0,
sizeof(packet2));
5582 mavlink_msg_named_value_float_decode(&msg, &packet2);
5583 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
5585 memset(&packet2, 0,
sizeof(packet2));
5587 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
5590 mavlink_msg_named_value_float_decode(last_msg, &packet2);
5591 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
5593 memset(&packet2, 0,
sizeof(packet2));
5595 mavlink_msg_named_value_float_decode(last_msg, &packet2);
5596 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
5599 static void mavlink_test_named_value_int(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
5601 mavlink_message_t msg;
5605 963497464,963497672,
"IJKLMNOPQ"
5608 memset(&packet1, 0,
sizeof(packet1));
5612 mav_array_memcpy(packet1.
name, packet_in.
name,
sizeof(
char)*10);
5615 memset(&packet2, 0,
sizeof(packet2));
5616 mavlink_msg_named_value_int_encode(system_id, component_id, &msg, &packet1);
5617 mavlink_msg_named_value_int_decode(&msg, &packet2);
5618 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
5620 memset(&packet2, 0,
sizeof(packet2));
5621 mavlink_msg_named_value_int_pack(system_id, component_id, &msg , packet1.
time_boot_ms , packet1.
name , packet1.
value );
5622 mavlink_msg_named_value_int_decode(&msg, &packet2);
5623 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
5625 memset(&packet2, 0,
sizeof(packet2));
5627 mavlink_msg_named_value_int_decode(&msg, &packet2);
5628 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
5630 memset(&packet2, 0,
sizeof(packet2));
5632 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
5635 mavlink_msg_named_value_int_decode(last_msg, &packet2);
5636 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
5638 memset(&packet2, 0,
sizeof(packet2));
5640 mavlink_msg_named_value_int_decode(last_msg, &packet2);
5641 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
5644 static void mavlink_test_statustext(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
5646 mavlink_message_t msg;
5650 5,
"BCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWX"
5653 memset(&packet1, 0,
sizeof(packet1));
5656 mav_array_memcpy(packet1.
text, packet_in.
text,
sizeof(
char)*50);
5659 memset(&packet2, 0,
sizeof(packet2));
5660 mavlink_msg_statustext_encode(system_id, component_id, &msg, &packet1);
5661 mavlink_msg_statustext_decode(&msg, &packet2);
5662 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
5664 memset(&packet2, 0,
sizeof(packet2));
5665 mavlink_msg_statustext_pack(system_id, component_id, &msg , packet1.
severity , packet1.
text );
5666 mavlink_msg_statustext_decode(&msg, &packet2);
5667 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
5669 memset(&packet2, 0,
sizeof(packet2));
5671 mavlink_msg_statustext_decode(&msg, &packet2);
5672 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
5674 memset(&packet2, 0,
sizeof(packet2));
5676 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
5679 mavlink_msg_statustext_decode(last_msg, &packet2);
5680 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
5682 memset(&packet2, 0,
sizeof(packet2));
5684 mavlink_msg_statustext_decode(last_msg, &packet2);
5685 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
5688 static void mavlink_test_debug(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
5690 mavlink_message_t msg;
5697 memset(&packet1, 0,
sizeof(packet1));
5700 packet1.
ind = packet_in.
ind;
5704 memset(&packet2, 0,
sizeof(packet2));
5705 mavlink_msg_debug_encode(system_id, component_id, &msg, &packet1);
5706 mavlink_msg_debug_decode(&msg, &packet2);
5707 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
5709 memset(&packet2, 0,
sizeof(packet2));
5710 mavlink_msg_debug_pack(system_id, component_id, &msg , packet1.
time_boot_ms , packet1.
ind , packet1.
value );
5711 mavlink_msg_debug_decode(&msg, &packet2);
5712 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
5714 memset(&packet2, 0,
sizeof(packet2));
5716 mavlink_msg_debug_decode(&msg, &packet2);
5717 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
5719 memset(&packet2, 0,
sizeof(packet2));
5721 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
5724 mavlink_msg_debug_decode(last_msg, &packet2);
5725 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
5727 memset(&packet2, 0,
sizeof(packet2));
5729 mavlink_msg_debug_decode(last_msg, &packet2);
5730 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
5733 static void mavlink_test_common(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
5735 mavlink_test_heartbeat(system_id, component_id, last_msg);
5736 mavlink_test_sys_status(system_id, component_id, last_msg);
5737 mavlink_test_system_time(system_id, component_id, last_msg);
5738 mavlink_test_ping(system_id, component_id, last_msg);
5739 mavlink_test_change_operator_control(system_id, component_id, last_msg);
5740 mavlink_test_change_operator_control_ack(system_id, component_id, last_msg);
5741 mavlink_test_auth_key(system_id, component_id, last_msg);
5742 mavlink_test_set_mode(system_id, component_id, last_msg);
5743 mavlink_test_param_request_read(system_id, component_id, last_msg);
5744 mavlink_test_param_request_list(system_id, component_id, last_msg);
5745 mavlink_test_param_value(system_id, component_id, last_msg);
5746 mavlink_test_param_set(system_id, component_id, last_msg);
5747 mavlink_test_gps_raw_int(system_id, component_id, last_msg);
5748 mavlink_test_gps_status(system_id, component_id, last_msg);
5749 mavlink_test_scaled_imu(system_id, component_id, last_msg);
5750 mavlink_test_raw_imu(system_id, component_id, last_msg);
5751 mavlink_test_raw_pressure(system_id, component_id, last_msg);
5752 mavlink_test_scaled_pressure(system_id, component_id, last_msg);
5753 mavlink_test_attitude(system_id, component_id, last_msg);
5754 mavlink_test_attitude_quaternion(system_id, component_id, last_msg);
5755 mavlink_test_local_position_ned(system_id, component_id, last_msg);
5756 mavlink_test_global_position_int(system_id, component_id, last_msg);
5757 mavlink_test_rc_channels_scaled(system_id, component_id, last_msg);
5758 mavlink_test_rc_channels_raw(system_id, component_id, last_msg);
5759 mavlink_test_servo_output_raw(system_id, component_id, last_msg);
5760 mavlink_test_mission_request_partial_list(system_id, component_id, last_msg);
5761 mavlink_test_mission_write_partial_list(system_id, component_id, last_msg);
5762 mavlink_test_mission_item(system_id, component_id, last_msg);
5763 mavlink_test_mission_request(system_id, component_id, last_msg);
5764 mavlink_test_mission_set_current(system_id, component_id, last_msg);
5765 mavlink_test_mission_current(system_id, component_id, last_msg);
5766 mavlink_test_mission_request_list(system_id, component_id, last_msg);
5767 mavlink_test_mission_count(system_id, component_id, last_msg);
5768 mavlink_test_mission_clear_all(system_id, component_id, last_msg);
5769 mavlink_test_mission_item_reached(system_id, component_id, last_msg);
5770 mavlink_test_mission_ack(system_id, component_id, last_msg);
5771 mavlink_test_set_gps_global_origin(system_id, component_id, last_msg);
5772 mavlink_test_gps_global_origin(system_id, component_id, last_msg);
5773 mavlink_test_param_map_rc(system_id, component_id, last_msg);
5774 mavlink_test_safety_set_allowed_area(system_id, component_id, last_msg);
5775 mavlink_test_safety_allowed_area(system_id, component_id, last_msg);
5776 mavlink_test_attitude_quaternion_cov(system_id, component_id, last_msg);
5777 mavlink_test_nav_controller_output(system_id, component_id, last_msg);
5778 mavlink_test_global_position_int_cov(system_id, component_id, last_msg);
5779 mavlink_test_local_position_ned_cov(system_id, component_id, last_msg);
5780 mavlink_test_rc_channels(system_id, component_id, last_msg);
5781 mavlink_test_request_data_stream(system_id, component_id, last_msg);
5782 mavlink_test_data_stream(system_id, component_id, last_msg);
5783 mavlink_test_manual_control(system_id, component_id, last_msg);
5784 mavlink_test_rc_channels_override(system_id, component_id, last_msg);
5785 mavlink_test_mission_item_int(system_id, component_id, last_msg);
5786 mavlink_test_vfr_hud(system_id, component_id, last_msg);
5787 mavlink_test_command_int(system_id, component_id, last_msg);
5788 mavlink_test_command_long(system_id, component_id, last_msg);
5789 mavlink_test_command_ack(system_id, component_id, last_msg);
5790 mavlink_test_manual_setpoint(system_id, component_id, last_msg);
5791 mavlink_test_set_attitude_target(system_id, component_id, last_msg);
5792 mavlink_test_attitude_target(system_id, component_id, last_msg);
5793 mavlink_test_set_position_target_local_ned(system_id, component_id, last_msg);
5794 mavlink_test_position_target_local_ned(system_id, component_id, last_msg);
5795 mavlink_test_set_position_target_global_int(system_id, component_id, last_msg);
5796 mavlink_test_position_target_global_int(system_id, component_id, last_msg);
5797 mavlink_test_local_position_ned_system_global_offset(system_id, component_id, last_msg);
5798 mavlink_test_hil_state(system_id, component_id, last_msg);
5799 mavlink_test_hil_controls(system_id, component_id, last_msg);
5800 mavlink_test_hil_rc_inputs_raw(system_id, component_id, last_msg);
5801 mavlink_test_optical_flow(system_id, component_id, last_msg);
5802 mavlink_test_global_vision_position_estimate(system_id, component_id, last_msg);
5803 mavlink_test_vision_position_estimate(system_id, component_id, last_msg);
5804 mavlink_test_vision_speed_estimate(system_id, component_id, last_msg);
5805 mavlink_test_vicon_position_estimate(system_id, component_id, last_msg);
5806 mavlink_test_highres_imu(system_id, component_id, last_msg);
5807 mavlink_test_optical_flow_rad(system_id, component_id, last_msg);
5808 mavlink_test_hil_sensor(system_id, component_id, last_msg);
5809 mavlink_test_sim_state(system_id, component_id, last_msg);
5810 mavlink_test_radio_status(system_id, component_id, last_msg);
5811 mavlink_test_file_transfer_protocol(system_id, component_id, last_msg);
5812 mavlink_test_timesync(system_id, component_id, last_msg);
5813 mavlink_test_camera_trigger(system_id, component_id, last_msg);
5814 mavlink_test_hil_gps(system_id, component_id, last_msg);
5815 mavlink_test_hil_optical_flow(system_id, component_id, last_msg);
5816 mavlink_test_hil_state_quaternion(system_id, component_id, last_msg);
5817 mavlink_test_scaled_imu2(system_id, component_id, last_msg);
5818 mavlink_test_log_request_list(system_id, component_id, last_msg);
5819 mavlink_test_log_entry(system_id, component_id, last_msg);
5820 mavlink_test_log_request_data(system_id, component_id, last_msg);
5821 mavlink_test_log_data(system_id, component_id, last_msg);
5822 mavlink_test_log_erase(system_id, component_id, last_msg);
5823 mavlink_test_log_request_end(system_id, component_id, last_msg);
5824 mavlink_test_gps_inject_data(system_id, component_id, last_msg);
5825 mavlink_test_gps2_raw(system_id, component_id, last_msg);
5826 mavlink_test_power_status(system_id, component_id, last_msg);
5827 mavlink_test_serial_control(system_id, component_id, last_msg);
5828 mavlink_test_gps_rtk(system_id, component_id, last_msg);
5829 mavlink_test_gps2_rtk(system_id, component_id, last_msg);
5830 mavlink_test_scaled_imu3(system_id, component_id, last_msg);
5831 mavlink_test_data_transmission_handshake(system_id, component_id, last_msg);
5832 mavlink_test_encapsulated_data(system_id, component_id, last_msg);
5833 mavlink_test_distance_sensor(system_id, component_id, last_msg);
5834 mavlink_test_terrain_request(system_id, component_id, last_msg);
5835 mavlink_test_terrain_data(system_id, component_id, last_msg);
5836 mavlink_test_terrain_check(system_id, component_id, last_msg);
5837 mavlink_test_terrain_report(system_id, component_id, last_msg);
5838 mavlink_test_scaled_pressure2(system_id, component_id, last_msg);
5839 mavlink_test_att_pos_mocap(system_id, component_id, last_msg);
5840 mavlink_test_set_actuator_control_target(system_id, component_id, last_msg);
5841 mavlink_test_actuator_control_target(system_id, component_id, last_msg);
5842 mavlink_test_battery_status(system_id, component_id, last_msg);
5843 mavlink_test_autopilot_version(system_id, component_id, last_msg);
5844 mavlink_test_v2_extension(system_id, component_id, last_msg);
5845 mavlink_test_memory_vect(system_id, component_id, last_msg);
5846 mavlink_test_debug_vect(system_id, component_id, last_msg);
5847 mavlink_test_named_value_float(system_id, component_id, last_msg);
5848 mavlink_test_named_value_int(system_id, component_id, last_msg);
5849 mavlink_test_statustext(system_id, component_id, last_msg);
5850 mavlink_test_debug(system_id, component_id, last_msg);
5855 #endif // __cplusplus
5856 #endif // COMMON_TESTSUITE_H
uint64_t usec
Timestamp (microseconds, synced to UNIX time or since system boot)
Definition: mavlink_msg_vision_position_estimate.h:7
int32_t latitude
Latitude (WGS84), in degrees * 1E7.
Definition: mavlink_msg_gps_global_origin.h:7
float roll
Roll angle in rad.
Definition: mavlink_msg_vicon_position_estimate.h:11
uint8_t severity
Severity of status. Relies on the definitions within RFC-5424. See enum MAV_SEVERITY.
Definition: mavlink_msg_statustext.h:7
Definition: mavlink_types.h:180
uint16_t servo7_raw
Servo output 7 value, in microseconds.
Definition: mavlink_msg_servo_output_raw.h:14
uint8_t satellite_used[20]
0: Satellite not used, 1: used for localization
Definition: mavlink_msg_gps_status.h:9
float pitch
Pitch angle in rad.
Definition: mavlink_msg_vicon_position_estimate.h:12
uint32_t time_boot_ms
Timestamp (milliseconds since system boot). 0 for system without monotonic timestamp.
Definition: mavlink_msg_local_position_ned_cov.h:8
Definition: mavlink_msg_position_target_local_ned.h:5
int32_t lat
Latitude, expressed as * 1E7.
Definition: mavlink_msg_hil_state.h:14
int32_t lat
Latitude (degrees *10^7)
Definition: mavlink_msg_terrain_check.h:7
float xgyro
Angular speed around X axis in body frame (rad / sec)
Definition: mavlink_msg_hil_sensor.h:11
float p2x
x position 2 / Latitude 2
Definition: mavlink_msg_safety_allowed_area.h:10
float x
Global X position.
Definition: mavlink_msg_global_vision_position_estimate.h:8
int32_t relative_alt
Altitude above ground in meters, expressed as * 1000 (millimeters)
Definition: mavlink_msg_global_position_int.h:11
uint16_t chan1_raw
RC channel 1 value, in microseconds. A value of UINT16_MAX implies the channel is unused...
Definition: mavlink_msg_rc_channels.h:8
Definition: mavlink_msg_system_time.h:5
Definition: mavlink_msg_timesync.h:5
uint32_t time_boot_ms
Timestamp (milliseconds since system boot)
Definition: mavlink_msg_named_value_float.h:7
float z
Z Position in NED frame in meters (note, altitude is negative in NED)
Definition: mavlink_msg_position_target_local_ned.h:10
float vz
Z velocity in NED frame in meter / s.
Definition: mavlink_msg_set_position_target_local_ned.h:13
Definition: mavlink_msg_param_value.h:5
int16_t xgyro
Angular speed around X axis (millirad /sec)
Definition: mavlink_msg_scaled_imu.h:11
float alt
Altitude in meters.
Definition: mavlink_msg_sim_state.h:22
uint16_t command
The scheduled action for the MISSION. see MAV_CMD in common.xml MAVLink specs.
Definition: mavlink_msg_mission_item.h:15
uint8_t target_component
Component ID.
Definition: mavlink_msg_mission_write_partial_list.h:10
float vy
Y Speed (m/s)
Definition: mavlink_msg_local_position_ned_cov.h:13
Definition: mavlink_msg_debug.h:5
uint16_t type_mask
Bitmask to indicate which dimensions should be ignored by the vehicle: a value of 0b0000000000000000 ...
Definition: mavlink_msg_position_target_global_int.h:19
float q2
True attitude quaternion component 2, x (0 in null-rotation)
Definition: mavlink_msg_sim_state.h:8
int16_t current_battery
Battery current, in 10*milliamperes (1 = 10 milliampere), -1: autopilot does not measure the current...
Definition: mavlink_msg_battery_status.h:11
float q1
Quaternion component 1, w (1 in null-rotation)
Definition: mavlink_msg_attitude_quaternion.h:8
int16_t vx
Ground X Speed (Latitude), expressed as m/s * 100.
Definition: mavlink_msg_hil_state.h:17
float roll
Attitude roll expressed as Euler angles, not recommended except for human-readable outputs...
Definition: mavlink_msg_sim_state.h:11
float ygyro
Angular speed around Y axis (rad / sec)
Definition: mavlink_msg_highres_imu.h:12
Definition: mavlink_types.h:179
float abs_pressure
Absolute pressure in millibar.
Definition: mavlink_msg_hil_sensor.h:17
int32_t lat
Latitude (WGS84), in degrees * 1E7.
Definition: mavlink_msg_hil_gps.h:8
uint32_t middleware_sw_version
Middleware version number.
Definition: mavlink_msg_autopilot_version.h:10
uint8_t id
Battery ID.
Definition: mavlink_msg_battery_status.h:12
int16_t zmag
Z Magnetic field (milli tesla)
Definition: mavlink_msg_scaled_imu.h:16
uint16_t Vcc
5V rail voltage in millivolts
Definition: mavlink_msg_power_status.h:7
Definition: mavlink_msg_mission_ack.h:5
uint64_t time_usec
Timestamp (microseconds since UNIX epoch or microseconds since system boot)
Definition: mavlink_msg_raw_imu.h:7
Definition: mavlink_msg_change_operator_control.h:5
uint16_t wn
GPS Week Number of last baseline.
Definition: mavlink_msg_gps2_rtk.h:14
float alt
Current altitude (MSL), in meters.
Definition: mavlink_msg_vfr_hud.h:9
float vz
Z velocity in NED frame in meter / s.
Definition: mavlink_msg_set_position_target_global_int.h:13
uint16_t pending
Number of 4x4 terrain blocks waiting to be received or read from disk.
Definition: mavlink_msg_terrain_report.h:12
float std_dev_horz
Horizontal position standard deviation.
Definition: mavlink_msg_sim_state.h:23
float q[4]
Quaternion components, w, x, y, z (1 0 0 0 is the null-rotation)
Definition: mavlink_msg_attitude_quaternion_cov.h:8
uint8_t target_system
System ID.
Definition: mavlink_msg_param_request_read.h:8
float rollspeed
Roll angular speed (rad/s)
Definition: mavlink_msg_attitude_quaternion.h:12
uint8_t type
See MAV_MISSION_RESULT enum.
Definition: mavlink_msg_mission_ack.h:9
uint16_t vel
GPS ground speed (m/s * 100). If unknown, set to: UINT16_MAX.
Definition: mavlink_msg_gps2_raw.h:14
uint8_t target_system
System ID.
Definition: mavlink_msg_mission_request_partial_list.h:9
float climb
Current climb rate in meters/second.
Definition: mavlink_msg_vfr_hud.h:10
uint8_t target_component
Component ID.
Definition: mavlink_msg_log_request_list.h:10
uint16_t buttons
A bitfield corresponding to the joystick buttons' current state, 1 for pressed, 0 for released...
Definition: mavlink_msg_manual_control.h:11
float xgyro
Angular speed around X axis (rad / sec)
Definition: mavlink_msg_highres_imu.h:11
float roll
Roll angle (rad)
Definition: mavlink_msg_hil_state.h:8
float yaw
yaw setpoint in rad
Definition: mavlink_msg_position_target_global_int.h:17
uint32_t integration_time_us
Integration time in microseconds. Divide integrated_x and integrated_y by the integration time to obt...
Definition: mavlink_msg_optical_flow_rad.h:8
float x
Global X position.
Definition: mavlink_msg_vicon_position_estimate.h:8
uint8_t control_request
0: request control of this MAV, 1: Release control of this MAV
Definition: mavlink_msg_change_operator_control_ack.h:8
float roll
Roll angle (rad, -pi..+pi)
Definition: mavlink_msg_attitude.h:8
uint16_t last_log_num
High log number.
Definition: mavlink_msg_log_entry.h:11
float afz
Z acceleration or force (if bit 10 of type_mask is set) in NED frame in meter / s^2 or N...
Definition: mavlink_msg_position_target_local_ned.h:16
uint8_t mode
System mode (MAV_MODE)
Definition: mavlink_msg_hil_controls.h:16
uint8_t version
0: key as plaintext, 1-255: future, different hashing/encryption variants. The GCS should in general ...
Definition: mavlink_msg_change_operator_control.h:9
float pitchspeed
Pitch angular speed (rad/s)
Definition: mavlink_msg_attitude.h:12
uint8_t quality
Optical flow quality / confidence. 0: bad, 255: maximum quality.
Definition: mavlink_msg_optical_flow.h:14
uint16_t command
The scheduled action for the mission item. see MAV_CMD in common.xml MAVLink specs.
Definition: mavlink_msg_command_int.h:14
float param_value_min
Minimum param value. The protocol does not define if this overwrites an onboard minimum value...
Definition: mavlink_msg_param_map_rc.h:9
float vy
Ground Y Speed (Longitude), expressed as m/s.
Definition: mavlink_msg_global_position_int_cov.h:14
uint8_t middleware_custom_version[8]
Custom version field, commonly the first 8 bytes of the git hash. This is not an unique identifier...
Definition: mavlink_msg_autopilot_version.h:16
float xgyro
Angular speed around X axis rad/s.
Definition: mavlink_msg_sim_state.h:17
float yawspeed
Body frame yaw / psi angular speed (rad/s)
Definition: mavlink_msg_hil_state_quaternion.h:11
uint8_t target_system
System ID.
Definition: mavlink_msg_mission_item.h:16
float p1y
y position 1 / Longitude 1
Definition: mavlink_msg_safety_set_allowed_area.h:8
int32_t lat
Latitude (WGS84), in degrees * 1E7.
Definition: mavlink_msg_gps2_raw.h:8
uint16_t start
First log id (0 for first available)
Definition: mavlink_msg_log_request_list.h:7
Definition: mavlink_msg_command_ack.h:5
float x
X Position in NED frame in meters.
Definition: mavlink_msg_position_target_local_ned.h:8
uint16_t chan11_raw
RC channel 11 value, in microseconds. A value of UINT16_MAX implies the channel is unused...
Definition: mavlink_msg_rc_channels.h:18
uint8_t rssi
Receive signal strength indicator, 0: 0%, 100: 100%, 255: invalid/unknown.
Definition: mavlink_msg_rc_channels_scaled.h:17
float p1x
x position 1 / Latitude 1
Definition: mavlink_msg_safety_allowed_area.h:7
uint8_t type
Type from MAV_DISTANCE_SENSOR enum.
Definition: mavlink_msg_distance_sensor.h:11
int32_t baseline_b_mm
Current baseline in ECEF y or NED east component in mm.
Definition: mavlink_msg_gps2_rtk.h:10
int16_t temperature
Temperature * 100 in centi-degrees Celsius.
Definition: mavlink_msg_hil_optical_flow.h:16
Definition: mavlink_msg_local_position_ned_system_global_offset.h:5
uint32_t time_boot_ms
Timestamp (milliseconds since system boot)
Definition: mavlink_msg_scaled_imu3.h:7
int16_t vd
GPS velocity in cm/s in DOWN direction in earth-fixed NED frame.
Definition: mavlink_msg_hil_gps.h:16
uint32_t time_boot_ms
Timestamp in milliseconds since system boot.
Definition: mavlink_msg_position_target_local_ned.h:7
int16_t chan5_scaled
RC channel 5 value scaled, (-100%) -10000, (0%) 0, (100%) 10000, (invalid) INT16_MAX.
Definition: mavlink_msg_rc_channels_scaled.h:12
float xacc
X acceleration (m/s^2)
Definition: mavlink_msg_hil_sensor.h:8
int16_t temperature
Temperature of the battery in centi-degrees celsius. INT16_MAX for unknown temperature.
Definition: mavlink_msg_battery_status.h:9
uint32_t fields_updated
Bitmask for fields that have updated since last message, bit 0 = xacc, bit 12: temperature.
Definition: mavlink_msg_hil_sensor.h:21
int16_t r
R-axis, normalized to the range [-1000,1000]. A value of INT16_MAX indicates that this axis is invali...
Definition: mavlink_msg_manual_control.h:10
float q4
True attitude quaternion component 4, z (0 in null-rotation)
Definition: mavlink_msg_sim_state.h:10
uint8_t data[70]
serial data
Definition: mavlink_msg_serial_control.h:12
uint8_t target_component
Component ID.
Definition: mavlink_msg_set_position_target_global_int.h:21
float yaw
Yaw.
Definition: mavlink_msg_local_position_ned_system_global_offset.h:13
float lon
Longitude in degrees.
Definition: mavlink_msg_sim_state.h:21
float lat
Latitude in degrees.
Definition: mavlink_msg_sim_state.h:20
int16_t ygyro
Angular speed around Y axis (millirad /sec)
Definition: mavlink_msg_scaled_imu.h:12
uint64_t time_usec
Timestamp (microseconds since UNIX epoch or microseconds since system boot)
Definition: mavlink_msg_hil_controls.h:7
uint16_t cog
Course over ground (NOT heading, but direction of movement) in degrees * 100, 0.0..359.99 degrees. If unknown, set to: UINT16_MAX.
Definition: mavlink_msg_gps2_raw.h:15
int16_t vy
Ground Y Speed (Longitude), expressed as m/s * 100.
Definition: mavlink_msg_global_position_int.h:13
uint32_t time_boot_ms
Timestamp (milliseconds since system boot)
Definition: mavlink_msg_rc_channels_raw.h:7
int32_t iar_num_hypotheses
Current number of integer ambiguity hypotheses.
Definition: mavlink_msg_gps_rtk.h:13
uint16_t servo6_raw
Servo output 6 value, in microseconds.
Definition: mavlink_msg_servo_output_raw.h:13
float controls[8]
Actuator controls. Normed to -1..+1 where 0 is neutral position. Throttle for single rotation directi...
Definition: mavlink_msg_set_actuator_control_target.h:8
float y
Global Y speed.
Definition: mavlink_msg_vision_speed_estimate.h:9
Definition: mavlink_msg_mission_item.h:5
float yaw
yaw setpoint in rad
Definition: mavlink_msg_set_position_target_local_ned.h:17
uint8_t target_component
Component ID.
Definition: mavlink_msg_mission_item_int.h:17
float pitchspeed
Pitch angular speed (rad/s)
Definition: mavlink_msg_attitude_quaternion.h:13
uint32_t onboard_control_sensors_health
Bitmask showing which onboard controllers and sensors are operational or have an error: Value of 0: n...
Definition: mavlink_msg_sys_status.h:9
uint8_t target_system
System ID.
Definition: mavlink_msg_set_position_target_local_ned.h:20
float yawspeed
Body frame yaw / psi angular speed (rad/s)
Definition: mavlink_msg_hil_state.h:13
int16_t chan3_scaled
RC channel 3 value scaled, (-100%) -10000, (0%) 0, (100%) 10000, (invalid) INT16_MAX.
Definition: mavlink_msg_rc_channels_scaled.h:10
uint64_t uid
UID if provided by hardware.
Definition: mavlink_msg_autopilot_version.h:8
float integrated_zgyro
RH rotation around Z axis (rad)
Definition: mavlink_msg_hil_optical_flow.h:13
float std_dev_vert
Vertical position standard deviation.
Definition: mavlink_msg_sim_state.h:24
int32_t lat
Latitude (WGS84), in degrees * 1E7.
Definition: mavlink_msg_gps_raw_int.h:8
float thrust
Collective thrust, normalized to 0 .. 1.
Definition: mavlink_msg_manual_setpoint.h:11
uint8_t coordinate_frame
Valid options are: MAV_FRAME_LOCAL_NED = 1, MAV_FRAME_LOCAL_OFFSET_NED = 7, MAV_FRAME_BODY_NED = 8...
Definition: mavlink_msg_position_target_local_ned.h:20
char name[10]
Name of the debug variable.
Definition: mavlink_msg_named_value_float.h:9
uint8_t rssi
Receive signal strength indicator, 0: 0%, 100: 100%, 255: invalid/unknown.
Definition: mavlink_msg_rc_channels_raw.h:17
uint16_t chan5_raw
RC channel 5 value, in microseconds. A value of UINT16_MAX implies the channel is unused...
Definition: mavlink_msg_rc_channels.h:12
Definition: mavlink_msg_vision_position_estimate.h:5
float yaw
Yaw angle in rad.
Definition: mavlink_msg_vicon_position_estimate.h:13
uint32_t time_boot_ms
Timestamp in milliseconds since system boot.
Definition: mavlink_msg_set_attitude_target.h:7
Definition: mavlink_msg_global_vision_position_estimate.h:5
int16_t data[16]
Terrain data in meters AMSL.
Definition: mavlink_msg_terrain_data.h:10
uint8_t target_system
System ID.
Definition: mavlink_msg_mission_count.h:8
uint64_t time_usec
Timestamp for the image frame in microseconds.
Definition: mavlink_msg_camera_trigger.h:7
uint8_t target_component
0: request ping from all receiving components, if greater than 0: message is a ping response and numb...
Definition: mavlink_msg_ping.h:10
uint8_t target_component
Component ID.
Definition: mavlink_msg_param_request_read.h:9
uint8_t estimator_type
Class id of the estimator this estimate originated from.
Definition: mavlink_msg_global_position_int_cov.h:17
float p1z
z position 1 / Altitude 1
Definition: mavlink_msg_safety_allowed_area.h:9
char param_id[16]
Onboard parameter id, terminated by NULL if the length is less than 16 human-readable chars and WITHO...
Definition: mavlink_msg_param_map_rc.h:14
Definition: mavlink_msg_camera_trigger.h:5
uint16_t ind_airspeed
Indicated airspeed, expressed as m/s * 100.
Definition: mavlink_msg_hil_state_quaternion.h:18
uint32_t time_boot_ms
Timestamp in milliseconds since system boot.
Definition: mavlink_msg_manual_setpoint.h:7
uint16_t packets
number of packets beeing sent (set on ACK only)
Definition: mavlink_msg_data_transmission_handshake.h:10
int16_t ygyro
Angular speed around Y axis (raw)
Definition: mavlink_msg_raw_imu.h:12
uint16_t seq
Sequence.
Definition: mavlink_msg_mission_item_reached.h:7
int32_t lon
Longitude of SW corner of first grid (in degrees *10^7)
Definition: mavlink_msg_terrain_request.h:9
uint8_t txbuf
Remaining free buffer space in percent.
Definition: mavlink_msg_radio_status.h:11
uint8_t satellite_prn[20]
Global satellite ID.
Definition: mavlink_msg_gps_status.h:8
uint8_t rtk_rate
Rate of baseline messages being received by GPS, in HZ.
Definition: mavlink_msg_gps2_rtk.h:17
uint8_t type_mask
Mappings: If any of these bits are set, the corresponding input should be ignored: bit 1: body roll r...
Definition: mavlink_msg_attitude_target.h:13
uint64_t time_usec
Timestamp (microseconds since UNIX epoch or microseconds since system boot)
Definition: mavlink_msg_gps2_raw.h:7
float terrain_height
Terrain height in meters AMSL.
Definition: mavlink_msg_terrain_report.h:9
uint64_t time_usec
Timestamp (microseconds since UNIX epoch or microseconds since system boot)
Definition: mavlink_msg_hil_state_quaternion.h:7
Definition: mavlink_msg_log_request_data.h:5
int16_t vx
Ground X Speed (Latitude), expressed as m/s * 100.
Definition: mavlink_msg_hil_state_quaternion.h:15
int16_t nav_bearing
Current desired heading in degrees.
Definition: mavlink_msg_nav_controller_output.h:12
uint16_t count
Number of mission items in the sequence.
Definition: mavlink_msg_mission_count.h:7
float x
X Position.
Definition: mavlink_msg_local_position_ned_system_global_offset.h:8
Definition: mavlink_msg_local_position_ned.h:5
float z
Z Position.
Definition: mavlink_msg_local_position_ned_cov.h:11
uint16_t chan8_raw
RC channel 8 value, in microseconds. A value of UINT16_MAX implies the channel is unused...
Definition: mavlink_msg_rc_channels.h:15
uint8_t count
Number of bytes (zero for end of log)
Definition: mavlink_msg_log_data.h:9
float vx
X Speed (m/s)
Definition: mavlink_msg_local_position_ned_cov.h:12
uint16_t type_mask
Bitmask to indicate which dimensions should be ignored by the vehicle: a value of 0b0000000000000000 ...
Definition: mavlink_msg_set_position_target_global_int.h:19
float y
Y Position in NED frame in meters.
Definition: mavlink_msg_set_position_target_local_ned.h:9
Definition: mavlink_msg_manual_setpoint.h:5
float vx
X velocity in NED frame in meter / s.
Definition: mavlink_msg_position_target_local_ned.h:11
Definition: mavlink_msg_nav_controller_output.h:5
uint64_t time_usec
Timestamp (micros since boot or Unix epoch)
Definition: mavlink_msg_set_actuator_control_target.h:7
float x
X Position.
Definition: mavlink_msg_local_position_ned.h:8
uint32_t time_boot_ms
Timestamp (milliseconds since system boot)
Definition: mavlink_msg_named_value_int.h:7
uint32_t time_boot_ms
Timestamp of the component clock since boot time in milliseconds.
Definition: mavlink_msg_system_time.h:8
int16_t xacc
X acceleration (raw)
Definition: mavlink_msg_raw_imu.h:8
float ax
X Acceleration (m/s^2)
Definition: mavlink_msg_local_position_ned_cov.h:15
int32_t alt
Altitude in meters, expressed as * 1000 (millimeters)
Definition: mavlink_msg_hil_state_quaternion.h:14
float x
X Position.
Definition: mavlink_msg_local_position_ned_cov.h:9
uint16_t vendor_id
ID of the board vendor.
Definition: mavlink_msg_autopilot_version.h:13
float z
Z Position in NED frame in meters (note, altitude is negative in NED)
Definition: mavlink_msg_set_position_target_local_ned.h:10
uint8_t flags
See SERIAL_CONTROL_FLAG enum.
Definition: mavlink_msg_serial_control.h:10
float nav_roll
Current desired roll in degrees.
Definition: mavlink_msg_nav_controller_output.h:7
int32_t lon
Longitude, expressed as * 1E7.
Definition: mavlink_msg_global_position_int.h:9
float thrust
Collective thrust, normalized to 0 .. 1 (-1 .. 1 for vehicles capable of reverse trust) ...
Definition: mavlink_msg_set_attitude_target.h:12
Definition: mavlink_msg_command_long.h:5
float p1z
z position 1 / Altitude 1
Definition: mavlink_msg_safety_set_allowed_area.h:9
uint16_t chan8_raw
RC channel 8 value, in microseconds. A value of UINT16_MAX means to ignore this field.
Definition: mavlink_msg_rc_channels_override.h:14
uint8_t satellites_visible
Number of satellites visible.
Definition: mavlink_msg_gps_status.h:7
float body_roll_rate
Body roll rate in radians per second.
Definition: mavlink_msg_set_attitude_target.h:9
int32_t longitude
Longitude (WGS84), in degrees * 1E7.
Definition: mavlink_msg_gps_global_origin.h:8
uint8_t fix_type
0-1: no fix, 2: 2D fix, 3: 3D fix. Some applications will not use the value of this field unless it i...
Definition: mavlink_msg_hil_gps.h:18
float vy
Y velocity in NED frame in meter / s.
Definition: mavlink_msg_position_target_global_int.h:12
Definition: mavlink_msg_log_erase.h:5
float yaw
Yaw angle in rad.
Definition: mavlink_msg_global_vision_position_estimate.h:13
float z
Z position in meters (NED)
Definition: mavlink_msg_att_pos_mocap.h:11
uint8_t quality
Optical flow quality / confidence. 0: no valid flow, 255: maximum quality.
Definition: mavlink_msg_optical_flow_rad.h:18
int16_t current_battery
Battery current, in 10*milliamperes (1 = 10 milliampere), -1: autopilot does not measure the current...
Definition: mavlink_msg_sys_status.h:12
uint8_t type
Type of the MAV (quadrotor, helicopter, etc., up to 15 types, defined in MAV_TYPE ENUM) ...
Definition: mavlink_msg_heartbeat.h:8
uint32_t time_boot_ms
Timestamp (milliseconds since system boot)
Definition: mavlink_msg_attitude_quaternion_cov.h:7
float param3
PARAM3, see MAV_CMD enum.
Definition: mavlink_msg_mission_item_int.h:9
uint64_t usec
Timestamp (microseconds, synced to UNIX time or since system boot)
Definition: mavlink_msg_vision_speed_estimate.h:7
uint8_t payload[251]
Variable length payload. The length is defined by the remaining message length when subtracting the h...
Definition: mavlink_msg_file_transfer_protocol.h:10
float aspd_error
Current airspeed error in meters/second.
Definition: mavlink_msg_nav_controller_output.h:10
Definition: mavlink_msg_hil_state.h:5
uint32_t time_boot_ms
Time since system boot.
Definition: mavlink_msg_distance_sensor.h:7
uint16_t chan18_raw
RC channel 18 value, in microseconds. A value of UINT16_MAX implies the channel is unused...
Definition: mavlink_msg_rc_channels.h:25
uint8_t target_component
The target requested to send the message stream.
Definition: mavlink_msg_request_data_stream.h:9
float zgyro
Angular speed around Z axis (rad / sec)
Definition: mavlink_msg_highres_imu.h:13
uint32_t time_boot_ms
Timestamp in milliseconds since system boot. The rationale for the timestamp in the setpoint is to al...
Definition: mavlink_msg_position_target_global_int.h:7
Definition: mavlink_msg_param_request_read.h:5
Definition: mavlink_msg_hil_sensor.h:5
uint8_t group_mlx
Actuator group. The "_mlx" indicates this is a multi-instance message and a MAVLink parser should use...
Definition: mavlink_msg_set_actuator_control_target.h:9
uint16_t errors_count3
Autopilot-specific errors.
Definition: mavlink_msg_sys_status.h:17
Definition: mavlink_msg_safety_set_allowed_area.h:5
Definition: mavlink_msg_file_transfer_protocol.h:5
float z
Global Z position.
Definition: mavlink_msg_vicon_position_estimate.h:10
float ve
True velocity in m/s in EAST direction in earth-fixed NED frame.
Definition: mavlink_msg_sim_state.h:26
int16_t xacc
X acceleration (mg)
Definition: mavlink_msg_scaled_imu3.h:8
float z
Global Z position.
Definition: mavlink_msg_global_vision_position_estimate.h:10
uint16_t wn
GPS Week Number of last baseline.
Definition: mavlink_msg_gps_rtk.h:14
uint16_t wp_dist
Distance to active MISSION in meters.
Definition: mavlink_msg_nav_controller_output.h:14
float rollspeed
Roll angular speed (rad/s)
Definition: mavlink_msg_attitude_quaternion_cov.h:9
float aux3
Aux 3, -1 .. 1.
Definition: mavlink_msg_hil_controls.h:14
Definition: mavlink_msg_attitude_quaternion_cov.h:5
uint32_t accuracy
Current estimate of baseline accuracy.
Definition: mavlink_msg_gps2_rtk.h:12
int32_t lon_int
Y Position in WGS84 frame in 1e7 * meters.
Definition: mavlink_msg_set_position_target_global_int.h:9
float thrust
Collective thrust, normalized to 0 .. 1 (-1 .. 1 for vehicles capable of reverse trust) ...
Definition: mavlink_msg_attitude_target.h:12
uint8_t satellites_visible
Number of satellites visible. If unknown, set to 255.
Definition: mavlink_msg_gps_raw_int.h:16
int16_t xacc
X acceleration (mg)
Definition: mavlink_msg_hil_state_quaternion.h:20
float y
Y Position.
Definition: mavlink_msg_local_position_ned_system_global_offset.h:9
uint16_t width
Width of a matrix or image.
Definition: mavlink_msg_data_transmission_handshake.h:8
uint16_t cog
Course over ground (NOT heading, but direction of movement) in degrees * 100, 0.0..359.99 degrees. If unknown, set to: 65535.
Definition: mavlink_msg_hil_gps.h:17
uint16_t load
Maximum usage in percent of the mainloop time, (0%: 0, 100%: 1000) should be always below 1000...
Definition: mavlink_msg_sys_status.h:10
uint16_t seq
Sequence.
Definition: mavlink_msg_mission_set_current.h:7
float covariance[9]
Attitude covariance.
Definition: mavlink_msg_attitude_quaternion_cov.h:12
float roll
Roll.
Definition: mavlink_msg_local_position_ned_system_global_offset.h:11
uint16_t servo8_raw
Servo output 8 value, in microseconds.
Definition: mavlink_msg_servo_output_raw.h:15
int16_t chan4_scaled
RC channel 4 value scaled, (-100%) -10000, (0%) 0, (100%) 10000, (invalid) INT16_MAX.
Definition: mavlink_msg_rc_channels_scaled.h:11
Definition: mavlink_msg_global_position_int.h:5
float pitch
Pitch angle (rad, -pi..+pi)
Definition: mavlink_msg_attitude.h:9
int32_t lat
Latitude of SW corner of first grid (degrees *10^7)
Definition: mavlink_msg_terrain_request.h:8
int16_t chan1_scaled
RC channel 1 value scaled, (-100%) -10000, (0%) 0, (100%) 10000, (invalid) INT16_MAX.
Definition: mavlink_msg_rc_channels_scaled.h:8
uint64_t time_usec
Timestamp (UNIX)
Definition: mavlink_msg_optical_flow.h:7
uint8_t manual_override_switch
Override mode switch position, 0.. 255.
Definition: mavlink_msg_manual_setpoint.h:13
uint64_t usec
Timestamp (microseconds, synced to UNIX time or since system boot)
Definition: mavlink_msg_global_vision_position_estimate.h:7
int16_t ve
GPS velocity in cm/s in EAST direction in earth-fixed NED frame.
Definition: mavlink_msg_hil_gps.h:15
uint8_t payload[249]
Variable length payload. The length is defined by the remaining message length when subtracting the h...
Definition: mavlink_msg_v2_extension.h:11
uint8_t orientation
Direction the sensor faces from FIXME enum.
Definition: mavlink_msg_distance_sensor.h:13
uint16_t type_mask
Bitmask to indicate which dimensions should be ignored by the vehicle: a value of 0b0000000000000000 ...
Definition: mavlink_msg_position_target_local_ned.h:19
uint32_t time_boot_ms
Timestamp (milliseconds since system boot)
Definition: mavlink_msg_scaled_imu.h:7
uint16_t hdg
Compass heading in degrees * 100, 0.0..359.99 degrees. If unknown, set to: UINT16_MAX.
Definition: mavlink_msg_global_position_int.h:15
uint16_t Vservo
servo rail voltage in millivolts
Definition: mavlink_msg_power_status.h:8
uint32_t time_usec
Timestamp (microseconds since system boot)
Definition: mavlink_msg_servo_output_raw.h:7
float yacc
Y acceleration (m/s^2)
Definition: mavlink_msg_hil_sensor.h:9
float yaw
Yaw angle in rad.
Definition: mavlink_msg_vision_position_estimate.h:13
uint32_t onboard_control_sensors_present
Bitmask showing which onboard controllers and sensors are present. Value of 0: not present...
Definition: mavlink_msg_sys_status.h:7
int16_t chan8_scaled
RC channel 8 value scaled, (-100%) -10000, (0%) 0, (100%) 10000, (invalid) INT16_MAX.
Definition: mavlink_msg_rc_channels_scaled.h:15
Definition: mavlink_msg_set_attitude_target.h:5
float q[4]
Attitude quaternion (w, x, y, z order, zero-rotation is 1, 0, 0, 0)
Definition: mavlink_msg_attitude_target.h:8
float z
Global Z position.
Definition: mavlink_msg_vision_position_estimate.h:10
float p2y
y position 2 / Longitude 2
Definition: mavlink_msg_safety_allowed_area.h:11
uint8_t id
Onboard ID of the sensor.
Definition: mavlink_msg_distance_sensor.h:12
uint64_t usec
Timestamp (microseconds, synced to UNIX time or since system boot)
Definition: mavlink_msg_vicon_position_estimate.h:7
int16_t y
Y-axis, normalized to the range [-1000,1000]. A value of INT16_MAX indicates that this axis is invali...
Definition: mavlink_msg_manual_control.h:8
uint16_t epv
GPS VDOP vertical dilution of position in cm (m*100). If unknown, set to: 65535.
Definition: mavlink_msg_hil_gps.h:12
uint16_t chan3_raw
RC channel 3 value, in microseconds. A value of UINT16_MAX implies the channel is unused...
Definition: mavlink_msg_rc_channels_raw.h:10
uint8_t target_component
Component ID.
Definition: mavlink_msg_set_attitude_target.h:14
float afz
Z acceleration or force (if bit 10 of type_mask is set) in NED frame in meter / s^2 or N...
Definition: mavlink_msg_position_target_global_int.h:16
uint16_t command
Command ID, as defined by MAV_CMD enum.
Definition: mavlink_msg_command_long.h:14
Definition: mavlink_msg_set_gps_global_origin.h:5
uint8_t device
See SERIAL_CONTROL_DEV enum.
Definition: mavlink_msg_serial_control.h:9
uint16_t fields_updated
Bitmask for fields that have updated since last message, bit 0 = xacc, bit 12: temperature.
Definition: mavlink_msg_highres_imu.h:21
int32_t alt
Altitude in meters, expressed as * 1000 (millimeters), above MSL.
Definition: mavlink_msg_global_position_int_cov.h:11
int32_t lon
Longitude, expressed as degrees * 1E7.
Definition: mavlink_msg_global_position_int_cov.h:10
int16_t ygyro
Angular speed around Y axis (millirad /sec)
Definition: mavlink_msg_scaled_imu2.h:12
float z
PARAM7 / z position: global: altitude (relative or absolute, depending on frame.
Definition: mavlink_msg_mission_item.h:13
uint16_t seq
Sequence.
Definition: mavlink_msg_mission_current.h:7
uint8_t frame
Coordinate frame, as defined by MAV_FRAME enum in mavlink_types.h. Can be either global, GPS, right-handed with Z axis up or local, right handed, Z axis down.
Definition: mavlink_msg_safety_allowed_area.h:13
int32_t lat
Latitude, expressed as * 1E7.
Definition: mavlink_msg_global_position_int.h:8
int32_t lon
Longitude of SW corner of first grid (in degrees *10^7)
Definition: mavlink_msg_terrain_data.h:8
uint8_t target_system
System ID.
Definition: mavlink_msg_log_request_end.h:7
uint64_t time_usec
Timestamp (micros since boot or Unix epoch)
Definition: mavlink_msg_actuator_control_target.h:7
uint8_t count
how many bytes in this transfer
Definition: mavlink_msg_serial_control.h:11
Definition: mavlink_msg_mission_count.h:5
float vz
Z Speed.
Definition: mavlink_msg_local_position_ned.h:13
float alt_error
Current altitude error in meters.
Definition: mavlink_msg_nav_controller_output.h:9
uint8_t nsats
Current number of sats used for RTK calculation.
Definition: mavlink_msg_gps_rtk.h:18
uint8_t estimator_type
Class id of the estimator this estimate originated from.
Definition: mavlink_msg_local_position_ned_cov.h:19
Definition: mavlink_msg_scaled_imu.h:5
uint16_t eph
GPS HDOP horizontal dilution of position in cm (m*100). If unknown, set to: 65535.
Definition: mavlink_msg_hil_gps.h:11
uint8_t control_request
0: request control of this MAV, 1: Release control of this MAV
Definition: mavlink_msg_change_operator_control.h:8
int16_t xgyro
Angular speed around X axis (raw)
Definition: mavlink_msg_raw_imu.h:11
float covariance[45]
Covariance matrix upper right triangular (first nine entries are the first ROW, next eight entries ar...
Definition: mavlink_msg_local_position_ned_cov.h:18
float value
Floating point value.
Definition: mavlink_msg_named_value_float.h:8
uint32_t time_boot_ms
Timestamp (milliseconds since system boot)
Definition: mavlink_msg_global_position_int.h:7
Definition: mavlink_msg_set_position_target_local_ned.h:5
uint16_t command
The scheduled action for the MISSION. see MAV_CMD in common.xml MAVLink specs.
Definition: mavlink_msg_mission_item_int.h:15
int16_t vz
Ground Z Speed (Altitude), expressed as m/s * 100.
Definition: mavlink_msg_hil_state_quaternion.h:17
int16_t xmag
X Magnetic field (milli tesla)
Definition: mavlink_msg_scaled_imu.h:14
float zacc
Z acceleration (m/s^2)
Definition: mavlink_msg_highres_imu.h:10
uint32_t time_boot_ms
Timestamp in milliseconds since system boot.
Definition: mavlink_msg_set_position_target_local_ned.h:7
uint64_t time_unix_usec
Timestamp of the master clock in microseconds since UNIX epoch.
Definition: mavlink_msg_system_time.h:7
uint32_t onboard_control_sensors_enabled
Bitmask showing which onboard controllers and sensors are enabled: Value of 0: not enabled...
Definition: mavlink_msg_sys_status.h:8
uint8_t target_system
System ID.
Definition: mavlink_msg_gps_inject_data.h:7
int16_t target_bearing
Bearing to current MISSION/target in degrees.
Definition: mavlink_msg_nav_controller_output.h:13
int32_t lat
Latitude (degrees *10^7)
Definition: mavlink_msg_terrain_report.h:7
uint8_t target_system
System ID.
Definition: mavlink_msg_rc_channels_override.h:15
int16_t vy
Ground Y Speed (Longitude), expressed as m/s * 100.
Definition: mavlink_msg_hil_state.h:18
Definition: mavlink_msg_servo_output_raw.h:5
float param7
Parameter 7, as defined by MAV_CMD enum.
Definition: mavlink_msg_command_long.h:13
uint16_t errors_count2
Autopilot-specific errors.
Definition: mavlink_msg_sys_status.h:16
uint16_t servo4_raw
Servo output 4 value, in microseconds.
Definition: mavlink_msg_servo_output_raw.h:11
float yaw
yaw setpoint in rad
Definition: mavlink_msg_set_position_target_global_int.h:17
float integrated_xgyro
RH rotation around X axis (rad)
Definition: mavlink_msg_optical_flow_rad.h:11
uint8_t target_system
System ID.
Definition: mavlink_msg_mission_write_partial_list.h:9
uint8_t sensor_id
Sensor ID.
Definition: mavlink_msg_optical_flow_rad.h:17
int16_t zgyro
Angular speed around Z axis (millirad /sec)
Definition: mavlink_msg_scaled_imu.h:13
uint32_t baudrate
Baudrate of transfer. Zero means no change.
Definition: mavlink_msg_serial_control.h:7
int16_t yacc
Y acceleration (mg)
Definition: mavlink_msg_hil_state.h:21
int16_t flow_y
Flow in pixels * 10 in y-sensor direction (dezi-pixels)
Definition: mavlink_msg_optical_flow.h:12
int32_t altitude
Altitude (AMSL), in meters * 1000 (positive for up)
Definition: mavlink_msg_gps_global_origin.h:9
uint32_t time_last_baseline_ms
Time since boot of last baseline message received in ms.
Definition: mavlink_msg_gps_rtk.h:7
float param1
PARAM1, see MAV_CMD enum.
Definition: mavlink_msg_command_int.h:7
uint8_t on_off
1 stream is enabled, 0 stream is stopped.
Definition: mavlink_msg_data_stream.h:9
uint64_t time_usec
Timestamp (microseconds, synced to UNIX time or since system boot)
Definition: mavlink_msg_hil_sensor.h:7
uint32_t seq
PING sequence.
Definition: mavlink_msg_ping.h:8
float y
Y Position.
Definition: mavlink_msg_local_position_ned.h:9
uint16_t chan1_raw
RC channel 1 value, in microseconds. A value of UINT16_MAX implies the channel is unused...
Definition: mavlink_msg_rc_channels_raw.h:8
Definition: mavlink_msg_ping.h:5
float body_yaw_rate
Body roll rate in radians per second.
Definition: mavlink_msg_attitude_target.h:11
uint16_t chan2_raw
RC channel 2 value, in microseconds. A value of UINT16_MAX means to ignore this field.
Definition: mavlink_msg_rc_channels_override.h:8
Definition: mavlink_msg_heartbeat.h:5
Definition: mavlink_msg_rc_channels_raw.h:5
uint32_t time_delta_distance_us
Time in microseconds since the distance was sampled.
Definition: mavlink_msg_hil_optical_flow.h:14
float y
y
Definition: mavlink_msg_debug_vect.h:9
int32_t current_consumed
Consumed charge, in milliampere hours (1 = 1 mAh), -1: autopilot does not provide mAh consumption est...
Definition: mavlink_msg_battery_status.h:7
Definition: mavlink_msg_log_request_end.h:5
float x
PARAM5 / local: x position, global: latitude.
Definition: mavlink_msg_mission_item.h:11
int32_t y
PARAM6 / local: y position in meters * 1e4, global: longitude in degrees * 10^7.
Definition: mavlink_msg_command_int.h:12
int32_t lon
Longitude, expressed as * 1E7.
Definition: mavlink_msg_hil_state_quaternion.h:13
float press_abs
Absolute pressure (hectopascal)
Definition: mavlink_msg_scaled_pressure2.h:8
float q3
True attitude quaternion component 3, y (0 in null-rotation)
Definition: mavlink_msg_sim_state.h:9
uint8_t target_component
Component ID.
Definition: mavlink_msg_param_map_rc.h:13
float press_diff
Differential pressure 1 (hectopascal)
Definition: mavlink_msg_scaled_pressure2.h:9
uint32_t time_boot_ms
Timestamp (milliseconds since system boot)
Definition: mavlink_msg_attitude.h:7
uint8_t target_system
System ID.
Definition: mavlink_msg_param_set.h:8
int16_t zacc
Z acceleration (mg)
Definition: mavlink_msg_hil_state_quaternion.h:22
float z
Z Position.
Definition: mavlink_msg_local_position_ned_system_global_offset.h:10
uint8_t base_mode
The new base mode.
Definition: mavlink_msg_set_mode.h:9
int32_t lon
Longitude (WGS84), in degrees * 1E7.
Definition: mavlink_msg_gps2_raw.h:9
uint8_t target_system
System ID.
Definition: mavlink_msg_mission_request_list.h:7
uint8_t target_component
Component ID.
Definition: mavlink_msg_log_request_data.h:11
float roll_ailerons
Control output -1 .. 1.
Definition: mavlink_msg_hil_controls.h:8
float zmag
Z Magnetic field (Gauss)
Definition: mavlink_msg_hil_sensor.h:16
uint8_t mode_switch
Flight mode switch position, 0.. 255.
Definition: mavlink_msg_manual_setpoint.h:12
Definition: mavlink_msg_radio_status.h:5
float vz
Z velocity in NED frame in meter / s.
Definition: mavlink_msg_position_target_global_int.h:13
Definition: mavlink_msg_global_position_int_cov.h:5
uint32_t custom_mode
The new autopilot-specific mode. This field can be ignored by an autopilot.
Definition: mavlink_msg_set_mode.h:7
float ay
Y Acceleration (m/s^2)
Definition: mavlink_msg_local_position_ned_cov.h:16
Definition: mavlink_msg_vision_speed_estimate.h:5
int16_t ygyro
Angular speed around Y axis (millirad /sec)
Definition: mavlink_msg_scaled_imu3.h:12
int32_t altitude
Altitude (AMSL), in meters * 1000 (positive for up)
Definition: mavlink_msg_set_gps_global_origin.h:9
float xmag
X Magnetic field (Gauss)
Definition: mavlink_msg_hil_sensor.h:14
int16_t xmag
X Magnetic field (raw)
Definition: mavlink_msg_raw_imu.h:14
uint16_t epv
GPS VDOP vertical dilution of position in cm (m*100). If unknown, set to: UINT16_MAX.
Definition: mavlink_msg_gps_raw_int.h:12
uint16_t message_rate
The requested interval between two messages of this type.
Definition: mavlink_msg_data_stream.h:7
int16_t ymag
Y Magnetic field (milli tesla)
Definition: mavlink_msg_scaled_imu2.h:15
uint8_t base_mode
System mode bitfield, see MAV_MODE_FLAG ENUM in mavlink/include/mavlink_types.h.
Definition: mavlink_msg_heartbeat.h:10
int16_t yacc
Y acceleration (mg)
Definition: mavlink_msg_hil_state_quaternion.h:21
Definition: mavlink_msg_hil_state_quaternion.h:5
float body_pitch_rate
Body roll rate in radians per second.
Definition: mavlink_msg_set_attitude_target.h:10
float afz
Z acceleration or force (if bit 10 of type_mask is set) in NED frame in meter / s^2 or N...
Definition: mavlink_msg_set_position_target_global_int.h:16
uint16_t errors_comm
Communication errors (UART, I2C, SPI, CAN), dropped packets on all links (packets that were corrupted...
Definition: mavlink_msg_sys_status.h:14
uint8_t gridbit
bit within the terrain request mask
Definition: mavlink_msg_terrain_data.h:11
int16_t zacc
Z acceleration (mg)
Definition: mavlink_msg_hil_state.h:22
float covariance[36]
Covariance matrix (first six entries are the first ROW, next six entries are the second row...
Definition: mavlink_msg_global_position_int_cov.h:16
int16_t start_index
Start index, 0 by default and smaller / equal to the largest index of the current onboard list...
Definition: mavlink_msg_mission_write_partial_list.h:7
uint8_t target_system
System ID.
Definition: mavlink_msg_param_map_rc.h:12
int16_t flow_x
Flow in pixels * 10 in x-sensor direction (dezi-pixels)
Definition: mavlink_msg_optical_flow.h:11
int16_t zacc
Z acceleration (raw)
Definition: mavlink_msg_raw_imu.h:10
uint8_t baseline_coords_type
Coordinate system of baseline. 0 == ECEF, 1 == NED.
Definition: mavlink_msg_gps2_rtk.h:19
float afy
Y acceleration or force (if bit 10 of type_mask is set) in NED frame in meter / s^2 or N...
Definition: mavlink_msg_position_target_local_ned.h:15
uint8_t rssi
Receive signal strength indicator, 0: 0%, 100: 100%, 255: invalid/unknown.
Definition: mavlink_msg_rc_channels.h:27
int16_t xacc
X acceleration (mg)
Definition: mavlink_msg_hil_state.h:20
uint8_t target_component
Component ID.
Definition: mavlink_msg_command_int.h:16
uint16_t id
Log id (from LOG_ENTRY reply)
Definition: mavlink_msg_log_request_data.h:9
Definition: mavlink_msg_optical_flow_rad.h:5
uint16_t chan10_raw
RC channel 10 value, in microseconds. A value of UINT16_MAX implies the channel is unused...
Definition: mavlink_msg_rc_channels.h:17
uint8_t satellites_visible
Number of satellites visible. If unknown, set to 255.
Definition: mavlink_msg_gps2_raw.h:17
uint16_t timeout
Timeout for reply data in milliseconds.
Definition: mavlink_msg_serial_control.h:8
float aux2
Aux 2, -1 .. 1.
Definition: mavlink_msg_hil_controls.h:13
float y
Y position in meters (NED)
Definition: mavlink_msg_att_pos_mocap.h:10
Definition: mavlink_msg_mission_request.h:5
int16_t xgyro
Angular speed around X axis (millirad /sec)
Definition: mavlink_msg_scaled_imu2.h:11
float param3
PARAM3, see MAV_CMD enum.
Definition: mavlink_msg_command_int.h:9
Definition: mavlink_msg_distance_sensor.h:5
int16_t vz
Ground Z Speed (Altitude), expressed as m/s * 100.
Definition: mavlink_msg_global_position_int.h:14
uint8_t target_component
Component ID.
Definition: mavlink_msg_mission_count.h:9
float param6
Parameter 6, as defined by MAV_CMD enum.
Definition: mavlink_msg_command_long.h:12
float q3
Quaternion component 3, y (0 in null-rotation)
Definition: mavlink_msg_attitude_quaternion.h:10
float y
Y Position.
Definition: mavlink_msg_local_position_ned_cov.h:10
uint8_t jpg_quality
JPEG quality out of [1,100].
Definition: mavlink_msg_data_transmission_handshake.h:13
uint32_t time_boot_ms
Timestamp (milliseconds since system boot)
Definition: mavlink_msg_attitude_quaternion.h:7
float x
Global X speed.
Definition: mavlink_msg_vision_speed_estimate.h:8
uint16_t chan1_raw
RC channel 1 value, in microseconds. A value of UINT16_MAX means to ignore this field.
Definition: mavlink_msg_rc_channels_override.h:7
int16_t param_index
Parameter index. Send -1 to use the param ID field as identifier (else the param id will be ignored)...
Definition: mavlink_msg_param_map_rc.h:11
uint16_t epv
GPS VDOP vertical dilution of position in cm (m*100). If unknown, set to: UINT16_MAX.
Definition: mavlink_msg_gps2_raw.h:13
float body_roll_rate
Body roll rate in radians per second.
Definition: mavlink_msg_attitude_target.h:9
int32_t lat
Latitude of SW corner of first grid (degrees *10^7)
Definition: mavlink_msg_terrain_data.h:7
float groundspeed
Current ground speed in m/s.
Definition: mavlink_msg_vfr_hud.h:8
float rollspeed
Body frame roll / phi angular speed (rad/s)
Definition: mavlink_msg_hil_state_quaternion.h:9
char name[10]
Name.
Definition: mavlink_msg_debug_vect.h:11
uint8_t target_component
Component ID.
Definition: mavlink_msg_mission_set_current.h:9
uint16_t eph
GPS HDOP horizontal dilution of position in cm (m*100). If unknown, set to: UINT16_MAX.
Definition: mavlink_msg_gps2_raw.h:12
float p2y
y position 2 / Longitude 2
Definition: mavlink_msg_safety_set_allowed_area.h:11
char param_id[16]
Onboard parameter id, terminated by NULL if the length is less than 16 human-readable chars and WITHO...
Definition: mavlink_msg_param_value.h:10
uint8_t param_type
Onboard parameter type: see the MAV_PARAM_TYPE enum for supported data types.
Definition: mavlink_msg_param_value.h:11
float flow_comp_m_y
Flow in meters in y-sensor direction, angular-speed compensated.
Definition: mavlink_msg_optical_flow.h:9
float afx
X acceleration or force (if bit 10 of type_mask is set) in NED frame in meter / s^2 or N...
Definition: mavlink_msg_set_position_target_global_int.h:14
float z
PARAM7 / z position: global: altitude in meters (relative or absolute, depending on frame...
Definition: mavlink_msg_mission_item_int.h:13
int32_t latitude
Latitude (WGS84), in degrees * 1E7.
Definition: mavlink_msg_set_gps_global_origin.h:7
int16_t zacc
Z acceleration (mg)
Definition: mavlink_msg_scaled_imu3.h:10
float distance
Distance to the center of the flow field in meters. Positive value (including zero): distance known...
Definition: mavlink_msg_hil_optical_flow.h:15
Definition: mavlink_msg_gps_inject_data.h:5
uint8_t payload
payload size per packet (normally 253 byte, see DATA field size in message ENCAPSULATED_DATA) (set on...
Definition: mavlink_msg_data_transmission_handshake.h:12
float body_yaw_rate
Body roll rate in radians per second.
Definition: mavlink_msg_set_attitude_target.h:11
Definition: mavlink_msg_change_operator_control_ack.h:5
float press_abs
Absolute pressure (hectopascal)
Definition: mavlink_msg_scaled_pressure.h:8
float roll
Roll angle in rad.
Definition: mavlink_msg_global_vision_position_estimate.h:11
float ygyro
Angular speed around Y axis in body frame (rad / sec)
Definition: mavlink_msg_hil_sensor.h:12
uint8_t os_custom_version[8]
Custom version field, commonly the first 8 bytes of the git hash. This is not an unique identifier...
Definition: mavlink_msg_autopilot_version.h:17
float alt
Altitude in meters in AMSL altitude, not WGS84 if absolute or relative, above terrain if GLOBAL_TERRA...
Definition: mavlink_msg_set_position_target_global_int.h:10
uint8_t covariance
Measurement covariance in centimeters, 0 for unknown / invalid readings.
Definition: mavlink_msg_distance_sensor.h:14
float controls[8]
Actuator controls. Normed to -1..+1 where 0 is neutral position. Throttle for single rotation directi...
Definition: mavlink_msg_actuator_control_target.h:8
uint8_t fix_type
0-1: no fix, 2: 2D fix, 3: 3D fix, 4: DGPS fix, 5: RTK Fix. Some applications will not use the value ...
Definition: mavlink_msg_gps2_raw.h:16
float xmag
X Magnetic field (Gauss)
Definition: mavlink_msg_highres_imu.h:14
uint32_t time_boot_ms
Timestamp (milliseconds since system boot)
Definition: mavlink_msg_local_position_ned.h:7
float pitch
Attitude pitch expressed as Euler angles, not recommended except for human-readable outputs...
Definition: mavlink_msg_sim_state.h:12
int16_t press_diff1
Differential pressure 1 (raw)
Definition: mavlink_msg_raw_pressure.h:9
#define MAVLINK_ASSERT(x)
Definition: protocol.h:26
int16_t param_index
Parameter index. Send -1 to use the param ID field as identifier (else the param id will be ignored) ...
Definition: mavlink_msg_param_request_read.h:7
uint16_t errors_count4
Autopilot-specific errors.
Definition: mavlink_msg_sys_status.h:18
uint16_t chan4_raw
RC channel 4 value, in microseconds. A value of UINT16_MAX implies the channel is unused...
Definition: mavlink_msg_rc_channels.h:11
Definition: mavlink_msg_autopilot_version.h:5
float integrated_x
Flow in radians around X axis (Sensor RH rotation about the X axis induces a positive flow...
Definition: mavlink_msg_optical_flow_rad.h:9
uint8_t current
false:0, true:1
Definition: mavlink_msg_mission_item.h:19
float vx
X velocity in NED frame in meter / s.
Definition: mavlink_msg_set_position_target_global_int.h:11
uint32_t flight_sw_version
Firmware version number.
Definition: mavlink_msg_autopilot_version.h:9
int16_t vy
Ground Y Speed (Longitude), expressed as m/s * 100.
Definition: mavlink_msg_hil_state_quaternion.h:16
uint8_t type_mask
Mappings: If any of these bits are set, the corresponding input should be ignored: bit 1: body roll r...
Definition: mavlink_msg_set_attitude_target.h:15
float vy
Y Speed.
Definition: mavlink_msg_local_position_ned.h:12
uint16_t chan7_raw
RC channel 7 value, in microseconds. A value of UINT16_MAX means to ignore this field.
Definition: mavlink_msg_rc_channels_override.h:13
uint8_t req_stream_id
The ID of the requested data stream.
Definition: mavlink_msg_request_data_stream.h:10
float yaw_rate
yaw rate setpoint in rad/s
Definition: mavlink_msg_set_position_target_local_ned.h:18
Definition: mavlink_msg_scaled_imu3.h:5
uint8_t system_status
System status flag, see MAV_STATE ENUM.
Definition: mavlink_msg_heartbeat.h:11
int16_t yacc
Y acceleration (mg)
Definition: mavlink_msg_scaled_imu2.h:9
Definition: mavlink_msg_mission_write_partial_list.h:5
float pitchspeed
Body frame pitch / theta angular speed (rad/s)
Definition: mavlink_msg_hil_state_quaternion.h:10
float integrated_y
Flow in radians around Y axis (Sensor RH rotation about the Y axis induces a positive flow...
Definition: mavlink_msg_optical_flow_rad.h:10
uint8_t target_component
Component ID.
Definition: mavlink_msg_param_request_list.h:8
float integrated_zgyro
RH rotation around Z axis (rad)
Definition: mavlink_msg_optical_flow_rad.h:13
float afy
Y acceleration or force (if bit 10 of type_mask is set) in NED frame in meter / s^2 or N...
Definition: mavlink_msg_set_position_target_local_ned.h:15
Definition: mavlink_msg_param_set.h:5
float yawspeed
Yaw angular speed (rad/s)
Definition: mavlink_msg_attitude.h:13
Definition: mavlink_msg_vicon_position_estimate.h:5
Definition: mavlink_msg_param_map_rc.h:5
int32_t x
PARAM5 / local: x position in meters * 1e4, global: latitude in degrees * 10^7.
Definition: mavlink_msg_mission_item_int.h:11
float yawspeed
Yaw angular speed (rad/s)
Definition: mavlink_msg_attitude_quaternion_cov.h:11
uint8_t start_stop
1 to start sending, 0 to stop sending.
Definition: mavlink_msg_request_data_stream.h:11
uint16_t chan7_raw
RC channel 7 value, in microseconds. A value of UINT16_MAX implies the channel is unused...
Definition: mavlink_msg_rc_channels.h:14
uint32_t custom_mode
A bitfield for use for autopilot-specific flags.
Definition: mavlink_msg_heartbeat.h:7
float temperature
Temperature in degrees celsius.
Definition: mavlink_msg_highres_imu.h:20
float current_height
Current vehicle height above lat/lon terrain height (meters)
Definition: mavlink_msg_terrain_report.h:10
int32_t longitude
Longitude (WGS84, in degrees * 1E7.
Definition: mavlink_msg_set_gps_global_origin.h:8
float p1x
x position 1 / Latitude 1
Definition: mavlink_msg_safety_set_allowed_area.h:7
int32_t baseline_a_mm
Current baseline in ECEF x or NED north component in mm.
Definition: mavlink_msg_gps_rtk.h:9
uint8_t param_type
Onboard parameter type: see the MAV_PARAM_TYPE enum for supported data types.
Definition: mavlink_msg_param_set.h:11
uint16_t chan14_raw
RC channel 14 value, in microseconds. A value of UINT16_MAX implies the channel is unused...
Definition: mavlink_msg_rc_channels.h:21
float vy
Y velocity in NED frame in meter / s.
Definition: mavlink_msg_position_target_local_ned.h:12
uint32_t time_boot_ms
Timestamp (milliseconds since system boot)
Definition: mavlink_msg_local_position_ned_system_global_offset.h:7
int16_t xgyro
Angular speed around X axis (millirad /sec)
Definition: mavlink_msg_scaled_imu3.h:11
float pitch
Pitch.
Definition: mavlink_msg_local_position_ned_system_global_offset.h:12
uint8_t nsats
Current number of sats used for RTK calculation.
Definition: mavlink_msg_gps2_rtk.h:18
Definition: mavlink_msg_attitude_quaternion.h:5
#define MAVLINK_MAX_PACKET_LEN
Maximum packet length.
Definition: mavlink_types.h:33
float aux1
Aux 1, -1 .. 1.
Definition: mavlink_msg_hil_controls.h:12
uint16_t height
Height of a matrix or image.
Definition: mavlink_msg_data_transmission_handshake.h:9
Definition: mavlink_msg_request_data_stream.h:5
uint8_t data[90]
log data
Definition: mavlink_msg_log_data.h:10
uint8_t target_component
Component ID.
Definition: mavlink_msg_set_position_target_local_ned.h:21
float pitch
Pitch angle in rad.
Definition: mavlink_msg_global_vision_position_estimate.h:12
Definition: mavlink_msg_attitude_target.h:5
uint16_t chan6_raw
RC channel 6 value, in microseconds. A value of UINT16_MAX means to ignore this field.
Definition: mavlink_msg_rc_channels_override.h:12
float az
Z Acceleration (m/s^2)
Definition: mavlink_msg_local_position_ned_cov.h:17
int16_t yacc
Y acceleration (mg)
Definition: mavlink_msg_scaled_imu3.h:9
float z
PARAM7 / z position: global: altitude in meters (relative or absolute, depending on frame...
Definition: mavlink_msg_command_int.h:13
int8_t battery_remaining
Remaining battery energy: (0%: 0, 100%: 100), -1: autopilot estimate the remaining battery...
Definition: mavlink_msg_sys_status.h:19
float scale
Scale, maps the RC range [-1, 1] to a parameter value.
Definition: mavlink_msg_param_map_rc.h:8
float throttle
Throttle 0 .. 1.
Definition: mavlink_msg_hil_controls.h:11
int32_t lon
Longitude (degrees *10^7)
Definition: mavlink_msg_terrain_check.h:8
uint16_t chan5_raw
RC channel 5 value, in microseconds. A value of UINT16_MAX implies the channel is unused...
Definition: mavlink_msg_rc_channels_raw.h:12
uint16_t chan3_raw
RC channel 3 value, in microseconds. A value of UINT16_MAX means to ignore this field.
Definition: mavlink_msg_rc_channels_override.h:9
uint8_t rtk_health
GPS-specific health report for RTK data.
Definition: mavlink_msg_gps_rtk.h:16
int16_t x
X-axis, normalized to the range [-1000,1000]. A value of INT16_MAX indicates that this axis is invali...
Definition: mavlink_msg_manual_control.h:7
uint16_t chan4_raw
RC channel 4 value, in microseconds. A value of UINT16_MAX means to ignore this field.
Definition: mavlink_msg_rc_channels_override.h:10
uint8_t target_component
Component ID (0 for broadcast)
Definition: mavlink_msg_v2_extension.h:10
float x
X position in meters (NED)
Definition: mavlink_msg_att_pos_mocap.h:9
Definition: mavlink_msg_mission_clear_all.h:5
Definition: mavlink_msg_gps_rtk.h:5
float param1
Parameter 1, as defined by MAV_CMD enum.
Definition: mavlink_msg_command_long.h:7
uint64_t time_usec
Timestamp (microseconds since UNIX epoch or microseconds since system boot)
Definition: mavlink_msg_hil_state.h:7
float pitch_elevator
Control output -1 .. 1.
Definition: mavlink_msg_hil_controls.h:9
float param5
Parameter 5, as defined by MAV_CMD enum.
Definition: mavlink_msg_command_long.h:11
int32_t iar_num_hypotheses
Current number of integer ambiguity hypotheses.
Definition: mavlink_msg_gps2_rtk.h:13
float ground_distance
Ground distance in meters. Positive value: distance known. Negative value: Unknown distance...
Definition: mavlink_msg_optical_flow.h:10
uint8_t target_system
System ID.
Definition: mavlink_msg_set_attitude_target.h:13
float pitchspeed
Body frame pitch / theta angular speed (rad/s)
Definition: mavlink_msg_hil_state.h:12
uint8_t coordinate_frame
Valid options are: MAV_FRAME_GLOBAL_INT = 5, MAV_FRAME_GLOBAL_RELATIVE_ALT_INT = 6, MAV_FRAME_GLOBAL_TERRAIN_ALT_INT = 11.
Definition: mavlink_msg_position_target_global_int.h:20
uint32_t ofs
Offset into the log.
Definition: mavlink_msg_log_data.h:7
uint16_t voltage_battery
Battery voltage, in millivolts (1 = 1 millivolt)
Definition: mavlink_msg_sys_status.h:11
uint16_t vel
GPS ground speed (m/s * 100). If unknown, set to: 65535.
Definition: mavlink_msg_hil_gps.h:13
uint8_t data[110]
raw data (110 is enough for 12 satellites of RTCMv2)
Definition: mavlink_msg_gps_inject_data.h:10
Definition: mavlink_msg_set_position_target_global_int.h:5
uint32_t time_delta_distance_us
Time in microseconds since the distance was sampled.
Definition: mavlink_msg_optical_flow_rad.h:14
float pressure_alt
Altitude calculated from pressure.
Definition: mavlink_msg_hil_sensor.h:19
int32_t baseline_a_mm
Current baseline in ECEF x or NED north component in mm.
Definition: mavlink_msg_gps2_rtk.h:9
int16_t zgyro
Angular speed around Z axis (millirad /sec)
Definition: mavlink_msg_scaled_imu2.h:13
uint64_t time_usec
Timestamp (microseconds since UNIX epoch or microseconds since system boot)
Definition: mavlink_msg_gps_raw_int.h:7
uint16_t loaded
Number of 4x4 terrain blocks in memory.
Definition: mavlink_msg_terrain_report.h:13
uint8_t data[253]
image data bytes
Definition: mavlink_msg_encapsulated_data.h:8
uint16_t chan3_raw
RC channel 3 value, in microseconds. A value of UINT16_MAX implies the channel is unused...
Definition: mavlink_msg_rc_channels.h:10
Definition: mavlink_msg_mission_request_list.h:5
uint16_t errors_count1
Autopilot-specific errors.
Definition: mavlink_msg_sys_status.h:15
Definition: mavlink_msg_power_status.h:5
Definition: mavlink_msg_terrain_check.h:5
int16_t xacc
X acceleration (mg)
Definition: mavlink_msg_scaled_imu.h:8
float yaw
Yaw angle (rad)
Definition: mavlink_msg_hil_state.h:10
int16_t start_index
Start index, 0 by default.
Definition: mavlink_msg_mission_request_partial_list.h:7
Definition: mavlink_msg_hil_controls.h:5
uint16_t chan13_raw
RC channel 13 value, in microseconds. A value of UINT16_MAX implies the channel is unused...
Definition: mavlink_msg_rc_channels.h:20
int16_t chan2_scaled
RC channel 2 value scaled, (-100%) -10000, (0%) 0, (100%) 10000, (invalid) INT16_MAX.
Definition: mavlink_msg_rc_channels_scaled.h:9
uint8_t fix_type
0-1: no fix, 2: 2D fix, 3: 3D fix, 4: DGPS, 5: RTK. Some applications will not use the value of this ...
Definition: mavlink_msg_gps_raw_int.h:15
Definition: mavlink_msg_mission_request_partial_list.h:5
float zmag
Z Magnetic field (Gauss)
Definition: mavlink_msg_highres_imu.h:16
uint8_t satellite_elevation[20]
Elevation (0: right on top of receiver, 90: on the horizon) of satellite.
Definition: mavlink_msg_gps_status.h:10
uint8_t rtk_receiver_id
Identification of connected RTK receiver.
Definition: mavlink_msg_gps2_rtk.h:15
uint8_t target_system
System ID.
Definition: mavlink_msg_safety_set_allowed_area.h:13
uint16_t fixed
Count of error corrected packets.
Definition: mavlink_msg_radio_status.h:8
float afz
Z acceleration or force (if bit 10 of type_mask is set) in NED frame in meter / s^2 or N...
Definition: mavlink_msg_set_position_target_local_ned.h:16
uint8_t coordinate_frame
Valid options are: MAV_FRAME_GLOBAL_INT = 5, MAV_FRAME_GLOBAL_RELATIVE_ALT_INT = 6, MAV_FRAME_GLOBAL_TERRAIN_ALT_INT = 11.
Definition: mavlink_msg_set_position_target_global_int.h:22
uint16_t chan16_raw
RC channel 16 value, in microseconds. A value of UINT16_MAX implies the channel is unused...
Definition: mavlink_msg_rc_channels.h:23
uint8_t target_component
Component ID.
Definition: mavlink_msg_mission_request_partial_list.h:10
Definition: mavlink_msg_encapsulated_data.h:5
Definition: mavlink_msg_set_actuator_control_target.h:5
float param2
PARAM2, see MAV_CMD enum.
Definition: mavlink_msg_mission_item.h:8
float pitchspeed
Pitch angular speed (rad/s)
Definition: mavlink_msg_attitude_quaternion_cov.h:10
int16_t zmag
Z Magnetic field (raw)
Definition: mavlink_msg_raw_imu.h:16
Definition: mavlink_msg_gps2_raw.h:5
int32_t relative_alt
Altitude above ground in meters, expressed as * 1000 (millimeters)
Definition: mavlink_msg_global_position_int_cov.h:12
uint8_t target_system
The target requested to send the message stream.
Definition: mavlink_msg_request_data_stream.h:8
uint32_t os_sw_version
Operating system version number.
Definition: mavlink_msg_autopilot_version.h:11
float q2
Quaternion component 2, x (0 in null-rotation)
Definition: mavlink_msg_attitude_quaternion.h:9
uint8_t ack
0: ACK, 1: NACK: Wrong passkey, 2: NACK: Unsupported passkey encryption method, 3: NACK: Already unde...
Definition: mavlink_msg_change_operator_control_ack.h:9
float diff_pressure
Differential pressure (airspeed) in millibar.
Definition: mavlink_msg_hil_sensor.h:18
uint8_t target_component
Component ID.
Definition: mavlink_msg_mission_request_list.h:8
int16_t zgyro
Angular speed around Z axis (millirad /sec)
Definition: mavlink_msg_scaled_imu3.h:13
Definition: mavlink_msg_terrain_report.h:5
Definition: mavlink_msg_hil_gps.h:5
float param4
PARAM4, see MAV_CMD enum.
Definition: mavlink_msg_mission_item.h:10
uint16_t eph
GPS HDOP horizontal dilution of position in cm (m*100). If unknown, set to: UINT16_MAX.
Definition: mavlink_msg_gps_raw_int.h:11
uint16_t req_message_rate
The requested interval between two messages of this type.
Definition: mavlink_msg_request_data_stream.h:7
int32_t baseline_b_mm
Current baseline in ECEF y or NED east component in mm.
Definition: mavlink_msg_gps_rtk.h:10
uint16_t max_distance
Maximum distance the sensor can measure in centimeters.
Definition: mavlink_msg_distance_sensor.h:9
uint8_t gcs_system_id
ID of the GCS this message.
Definition: mavlink_msg_change_operator_control_ack.h:7
float p1y
y position 1 / Longitude 1
Definition: mavlink_msg_safety_allowed_area.h:8
uint8_t target_system
System ID.
Definition: mavlink_msg_param_request_list.h:7
Definition: mavlink_msg_hil_optical_flow.h:5
uint16_t spacing
grid spacing (zero if terrain at this location unavailable)
Definition: mavlink_msg_terrain_report.h:11
uint8_t satellites_visible
Number of satellites visible. If unknown, set to 255.
Definition: mavlink_msg_hil_gps.h:19
int32_t baseline_c_mm
Current baseline in ECEF z or NED down component in mm.
Definition: mavlink_msg_gps_rtk.h:11
Definition: mavlink_msg_statustext.h:5
float y
Global Y position.
Definition: mavlink_msg_global_vision_position_estimate.h:9
int32_t alt
Altitude (AMSL, not WGS84), in meters * 1000 (positive for up)
Definition: mavlink_msg_gps2_raw.h:10
float attitude_quaternion[4]
Vehicle attitude expressed as normalized quaternion in w, x, y, z order (with 1 0 0 0 being the null-...
Definition: mavlink_msg_hil_state_quaternion.h:8
uint8_t target_component
Component ID.
Definition: mavlink_msg_safety_set_allowed_area.h:14
int16_t heading
Current heading in degrees, in compass units (0..360, 0=north)
Definition: mavlink_msg_vfr_hud.h:11
uint8_t target_network
Network ID (0 for broadcast)
Definition: mavlink_msg_v2_extension.h:8
float vy
Y velocity in NED frame in meter / s.
Definition: mavlink_msg_set_position_target_global_int.h:12
Definition: mavlink_msg_sys_status.h:5
uint32_t tow
GPS Time of Week of last baseline.
Definition: mavlink_msg_gps2_rtk.h:8
uint8_t target_system
System ID.
Definition: mavlink_msg_set_position_target_global_int.h:20
uint16_t true_airspeed
True airspeed, expressed as m/s * 100.
Definition: mavlink_msg_hil_state_quaternion.h:19
float vd
True velocity in m/s in DOWN direction in earth-fixed NED frame.
Definition: mavlink_msg_sim_state.h:27
float diff_pressure
Differential pressure in millibar.
Definition: mavlink_msg_highres_imu.h:18
float y
Y Position in NED frame in meters.
Definition: mavlink_msg_position_target_local_ned.h:9
Definition: mavlink_msg_data_stream.h:5
float body_pitch_rate
Body roll rate in radians per second.
Definition: mavlink_msg_attitude_target.h:10
char param_id[16]
Onboard parameter id, terminated by NULL if the length is less than 16 human-readable chars and WITHO...
Definition: mavlink_msg_param_set.h:10
uint16_t chan17_raw
RC channel 17 value, in microseconds. A value of UINT16_MAX implies the channel is unused...
Definition: mavlink_msg_rc_channels.h:24
float param_value_max
Maximum param value. The protocol does not define if this overwrites an onboard maximum value...
Definition: mavlink_msg_param_map_rc.h:10
Definition: mavlink_msg_safety_allowed_area.h:5
float ymag
Y Magnetic field (Gauss)
Definition: mavlink_msg_highres_imu.h:15
uint8_t ind
index of debug variable
Definition: mavlink_msg_debug.h:9
uint64_t mask
Bitmask of requested 4x4 grids (row major 8x7 array of grids, 56 bits)
Definition: mavlink_msg_terrain_request.h:7
uint8_t result
See MAV_RESULT enum.
Definition: mavlink_msg_command_ack.h:8
uint16_t seq
Waypoint ID (sequence number). Starts at zero. Increases monotonically for each waypoint, no gaps in the sequence (0,1,2,3,4).
Definition: mavlink_msg_mission_item_int.h:14
float yaw_rudder
Control output -1 .. 1.
Definition: mavlink_msg_hil_controls.h:10
char name[10]
Name of the debug variable.
Definition: mavlink_msg_named_value_int.h:9
uint8_t target_component
Component which should execute the command, 0 for all components.
Definition: mavlink_msg_command_long.h:16
Definition: mavlink_msg_mission_item_int.h:5
uint16_t chan5_raw
RC channel 5 value, in microseconds. A value of UINT16_MAX means to ignore this field.
Definition: mavlink_msg_rc_channels_override.h:11
float param3
PARAM3, see MAV_CMD enum.
Definition: mavlink_msg_mission_item.h:9
uint16_t num_logs
Total number of logs.
Definition: mavlink_msg_log_entry.h:10
uint8_t coordinate_frame
Valid options are: MAV_FRAME_LOCAL_NED = 1, MAV_FRAME_LOCAL_OFFSET_NED = 7, MAV_FRAME_BODY_NED = 8...
Definition: mavlink_msg_set_position_target_local_ned.h:22
int16_t chan7_scaled
RC channel 7 value scaled, (-100%) -10000, (0%) 0, (100%) 10000, (invalid) INT16_MAX.
Definition: mavlink_msg_rc_channels_scaled.h:14
uint8_t port
Servo output port (set of 8 outputs = 1 port). Most MAVs will just use one, but this allows to encode...
Definition: mavlink_msg_servo_output_raw.h:16
float vz
Z Speed (m/s)
Definition: mavlink_msg_local_position_ned_cov.h:14
uint32_t board_version
HW / board version (last 8 bytes should be silicon ID, if any)
Definition: mavlink_msg_autopilot_version.h:12
uint16_t current_distance
Current distance reading.
Definition: mavlink_msg_distance_sensor.h:10
float zacc
Z acceleration (m/s^2)
Definition: mavlink_msg_hil_sensor.h:10
float vz
Ground Z Speed (Altitude), expressed as m/s.
Definition: mavlink_msg_global_position_int_cov.h:15
Definition: mavlink_msg_terrain_request.h:5
int16_t vn
GPS velocity in cm/s in NORTH direction in earth-fixed NED frame.
Definition: mavlink_msg_hil_gps.h:14
char passkey[25]
Password / Key, depending on version plaintext or encrypted. 25 or less characters, NULL terminated. The characters may involve A-Z, a-z, 0-9, and "!?,.-".
Definition: mavlink_msg_change_operator_control.h:10
int32_t energy_consumed
Consumed energy, in 100*Joules (intergrated U*I*dt) (1 = 100 Joule), -1: autopilot does not provide e...
Definition: mavlink_msg_battery_status.h:8
Definition: mavlink_msg_scaled_imu2.h:5
int32_t lon
Longitude (WGS84), in degrees * 1E7.
Definition: mavlink_msg_gps_raw_int.h:9
int16_t temperature
Temperature measurement (0.01 degrees celsius)
Definition: mavlink_msg_scaled_pressure.h:10
uint8_t target_system
System ID.
Definition: mavlink_msg_log_request_data.h:10
float yacc
Y acceleration m/s/s.
Definition: mavlink_msg_sim_state.h:15
int32_t x
PARAM5 / local: x position in meters * 1e4, global: latitude in degrees * 10^7.
Definition: mavlink_msg_command_int.h:11
float aux4
Aux 4, -1 .. 1.
Definition: mavlink_msg_hil_controls.h:15
int16_t zgyro
Angular speed around Z axis (raw)
Definition: mavlink_msg_raw_imu.h:13
float param1
PARAM1, see MAV_CMD enum.
Definition: mavlink_msg_mission_item_int.h:7
Definition: mavlink_msg_terrain_data.h:5
int16_t end_index
End index, equal or greater than start index.
Definition: mavlink_msg_mission_write_partial_list.h:8
int16_t zacc
Z acceleration (mg)
Definition: mavlink_msg_scaled_imu.h:10
float afy
Y acceleration or force (if bit 10 of type_mask is set) in NED frame in meter / s^2 or N...
Definition: mavlink_msg_position_target_global_int.h:15
Definition: mavlink_msg_gps_status.h:5
uint16_t servo5_raw
Servo output 5 value, in microseconds.
Definition: mavlink_msg_servo_output_raw.h:12
float param2
Parameter 2, as defined by MAV_CMD enum.
Definition: mavlink_msg_command_long.h:8
Definition: mavlink_msg_scaled_pressure.h:5
uint8_t frame
The coordinate system of the COMMAND. see MAV_FRAME in mavlink_types.h.
Definition: mavlink_msg_command_int.h:17
float vx
X Speed.
Definition: mavlink_msg_local_position_ned.h:11
uint8_t target_component
Component ID.
Definition: mavlink_msg_log_erase.h:8
uint8_t parameter_rc_channel_index
Index of parameter RC channel. Not equal to the RC channel id. Typically correpsonds to a potentiomet...
Definition: mavlink_msg_param_map_rc.h:15
Definition: mavlink_msg_highres_imu.h:5
uint16_t type_mask
Bitmask to indicate which dimensions should be ignored by the vehicle: a value of 0b0000000000000000 ...
Definition: mavlink_msg_set_position_target_local_ned.h:19
Definition: mavlink_msg_raw_imu.h:5
Definition: mavlink_msg_debug_vect.h:5
uint8_t ver
Version code of the type variable. 0=unknown, type ignored and assumed int16_t. 1=as below...
Definition: mavlink_msg_memory_vect.h:8
float pitch
Pitch angle in rad.
Definition: mavlink_msg_vision_position_estimate.h:12
uint64_t time_usec
Timestamp.
Definition: mavlink_msg_debug_vect.h:7
float integrated_y
Flow in radians around Y axis (Sensor RH rotation about the Y axis induces a positive flow...
Definition: mavlink_msg_hil_optical_flow.h:10
uint8_t port
Servo output port (set of 8 outputs = 1 port). Most MAVs will just use one, but this allows for more ...
Definition: mavlink_msg_rc_channels_scaled.h:16
uint16_t param_count
Total number of onboard parameters.
Definition: mavlink_msg_param_value.h:8
uint16_t vel
GPS ground speed (m/s * 100). If unknown, set to: UINT16_MAX.
Definition: mavlink_msg_gps_raw_int.h:13
float vx
X velocity in NED frame in meter / s.
Definition: mavlink_msg_position_target_global_int.h:11
uint16_t servo3_raw
Servo output 3 value, in microseconds.
Definition: mavlink_msg_servo_output_raw.h:10
float p2z
z position 2 / Altitude 2
Definition: mavlink_msg_safety_set_allowed_area.h:12
float roll
Desired roll rate in radians per second.
Definition: mavlink_msg_manual_setpoint.h:8
float y
PARAM6 / y position: global: longitude.
Definition: mavlink_msg_mission_item.h:12
uint8_t target_component
Component ID.
Definition: mavlink_msg_log_request_end.h:8
uint16_t chan4_raw
RC channel 4 value, in microseconds. A value of UINT16_MAX implies the channel is unused...
Definition: mavlink_msg_rc_channels_raw.h:11
uint32_t time_boot_ms
Timestamp (milliseconds since system boot)
Definition: mavlink_msg_rc_channels.h:7
float zgyro
Angular speed around Z axis in body frame (rad / sec)
Definition: mavlink_msg_hil_sensor.h:13
float value
DEBUG value.
Definition: mavlink_msg_debug.h:8
uint8_t rtk_health
GPS-specific health report for RTK data.
Definition: mavlink_msg_gps2_rtk.h:16
int32_t alt
Altitude (AMSL, not WGS84), in meters * 1000 (positive for up)
Definition: mavlink_msg_hil_gps.h:10
int32_t lon_int
Y Position in WGS84 frame in 1e7 * meters.
Definition: mavlink_msg_position_target_global_int.h:9
uint8_t target_system
System ID (0 for broadcast)
Definition: mavlink_msg_file_transfer_protocol.h:8
uint16_t cog
Course over ground (NOT heading, but direction of movement) in degrees * 100, 0.0..359.99 degrees. If unknown, set to: UINT16_MAX.
Definition: mavlink_msg_gps_raw_int.h:14
Definition: mavlink_msg_optical_flow.h:5
int8_t battery_remaining
Remaining battery energy: (0%: 0, 100%: 100), -1: autopilot does not estimate the remaining battery...
Definition: mavlink_msg_battery_status.h:15
Definition: mavlink_msg_scaled_pressure2.h:5
uint16_t flags
power supply status flags (see MAV_POWER_STATUS enum)
Definition: mavlink_msg_power_status.h:9
uint16_t address
Starting address of the debug variables.
Definition: mavlink_msg_memory_vect.h:7
uint32_t time_boot_ms
Timestamp (milliseconds since system boot)
Definition: mavlink_msg_rc_channels_scaled.h:7
float zacc
Z acceleration m/s/s.
Definition: mavlink_msg_sim_state.h:16
float afx
X acceleration or force (if bit 10 of type_mask is set) in NED frame in meter / s^2 or N...
Definition: mavlink_msg_position_target_local_ned.h:14
Definition: mavlink_msg_gps2_rtk.h:5
Definition: mavlink_msg_named_value_float.h:5
int32_t lat
Latitude, expressed as * 1E7.
Definition: mavlink_msg_hil_state_quaternion.h:12
uint8_t target_system
System ID.
Definition: mavlink_msg_log_erase.h:7
float param_value
Onboard parameter value.
Definition: mavlink_msg_param_set.h:7
uint8_t type
Type code of the memory variables. for ver = 1: 0=16 x int16_t, 1=16 x uint16_t, 2=16 x Q15...
Definition: mavlink_msg_memory_vect.h:9
uint32_t time_boot_ms
Timestamp in milliseconds since system boot. The rationale for the timestamp in the setpoint is to al...
Definition: mavlink_msg_set_position_target_global_int.h:7
uint8_t target_component
Component ID.
Definition: mavlink_msg_rc_channels_override.h:16
Definition: mavlink_msg_log_request_list.h:5
Definition: mavlink_msg_mission_current.h:5
uint16_t chan2_raw
RC channel 2 value, in microseconds. A value of UINT16_MAX implies the channel is unused...
Definition: mavlink_msg_rc_channels_raw.h:9
float ymag
Y Magnetic field (Gauss)
Definition: mavlink_msg_hil_sensor.h:15
float yaw
Attitude yaw expressed as Euler angles, not recommended except for human-readable outputs...
Definition: mavlink_msg_sim_state.h:13
int32_t value
Signed integer value.
Definition: mavlink_msg_named_value_int.h:8
float vn
True velocity in m/s in NORTH direction in earth-fixed NED frame.
Definition: mavlink_msg_sim_state.h:25
Definition: mavlink_msg_rc_channels_override.h:5
int16_t ymag
Y Magnetic field (milli tesla)
Definition: mavlink_msg_scaled_imu.h:15
uint16_t min_distance
Minimum distance the sensor can measure in centimeters.
Definition: mavlink_msg_distance_sensor.h:8
uint16_t grid_spacing
Grid spacing in meters.
Definition: mavlink_msg_terrain_data.h:9
uint32_t tow
GPS Time of Week of last baseline.
Definition: mavlink_msg_gps_rtk.h:8
uint64_t time_usec
Timestamp (microseconds, synced to UNIX time or since system boot)
Definition: mavlink_msg_highres_imu.h:7
float q4
Quaternion component 4, z (0 in null-rotation)
Definition: mavlink_msg_attitude_quaternion.h:11
uint16_t chan8_raw
RC channel 8 value, in microseconds. A value of UINT16_MAX implies the channel is unused...
Definition: mavlink_msg_rc_channels_raw.h:15
float z
Z Position.
Definition: mavlink_msg_local_position_ned.h:10
float p2x
x position 2 / Latitude 2
Definition: mavlink_msg_safety_set_allowed_area.h:10
uint8_t target_component
Component ID.
Definition: mavlink_msg_mission_item.h:17
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
float distance
Distance to the center of the flow field in meters. Positive value (including zero): distance known...
Definition: mavlink_msg_optical_flow_rad.h:15
uint8_t target_system
System which should execute the command.
Definition: mavlink_msg_command_long.h:15
uint8_t mavlink_version
MAVLink version, not writable by user, gets added by protocol because of magic data type: uint8_t_mav...
Definition: mavlink_msg_heartbeat.h:12
uint8_t frame
The coordinate system of the MISSION. see MAV_FRAME in mavlink_types.h.
Definition: mavlink_msg_mission_item.h:18
Definition: mavlink_msg_data_transmission_handshake.h:5
uint8_t port
Servo output port (set of 8 outputs = 1 port). Most MAVs will just use one, but this allows for more ...
Definition: mavlink_msg_rc_channels_raw.h:16
int64_t ts1
Time sync timestamp 2.
Definition: mavlink_msg_timesync.h:8
int16_t yacc
Y acceleration (mg)
Definition: mavlink_msg_scaled_imu.h:9
int16_t chan6_scaled
RC channel 6 value scaled, (-100%) -10000, (0%) 0, (100%) 10000, (invalid) INT16_MAX.
Definition: mavlink_msg_rc_channels_scaled.h:13
uint16_t seq
Sequence.
Definition: mavlink_msg_mission_item.h:14
float integrated_ygyro
RH rotation around Y axis (rad)
Definition: mavlink_msg_hil_optical_flow.h:12
uint16_t end
Last log id (0xffff for last available)
Definition: mavlink_msg_log_request_list.h:8
float abs_pressure
Absolute pressure in millibar.
Definition: mavlink_msg_highres_imu.h:17
Definition: mavlink_msg_v2_extension.h:5
uint8_t target_system
System ID.
Definition: mavlink_msg_log_request_list.h:9
int32_t lat_int
X Position in WGS84 frame in 1e7 * meters.
Definition: mavlink_msg_set_position_target_global_int.h:8
Definition: mavlink_msg_set_mode.h:5
uint64_t time_usec
Timestamp (microseconds, synced to UNIX time or since system boot)
Definition: mavlink_msg_hil_optical_flow.h:7
float pitch
Pitch angle (rad)
Definition: mavlink_msg_hil_state.h:9
uint8_t remnoise
Remote background noise level.
Definition: mavlink_msg_radio_status.h:13
uint16_t seq
Sequence.
Definition: mavlink_msg_mission_request.h:7
float alt
Altitude in meters in AMSL altitude, not WGS84 if absolute or relative, above terrain if GLOBAL_TERRA...
Definition: mavlink_msg_position_target_global_int.h:10
uint8_t target_system
0: request ping from all receiving systems, if greater than 0: message is a ping response and number ...
Definition: mavlink_msg_ping.h:9
Definition: mavlink_msg_actuator_control_target.h:5
int32_t lon
Longitude (degrees *10^7)
Definition: mavlink_msg_terrain_report.h:8
uint8_t flight_custom_version[8]
Custom version field, commonly the first 8 bytes of the git hash. This is not an unique identifier...
Definition: mavlink_msg_autopilot_version.h:15
uint16_t rxerrors
Receive errors.
Definition: mavlink_msg_radio_status.h:7
int16_t z
Z-axis, normalized to the range [-1000,1000]. A value of INT16_MAX indicates that this axis is invali...
Definition: mavlink_msg_manual_control.h:9
Definition: mavlink_msg_rc_channels.h:5
float yaw
yaw setpoint in rad
Definition: mavlink_msg_position_target_local_ned.h:17
Definition: mavlink_msg_param_request_list.h:5
int16_t temperature
Temperature measurement (0.01 degrees celsius)
Definition: mavlink_msg_scaled_pressure2.h:10
uint32_t time_boot_ms
Timestamp (milliseconds since system boot)
Definition: mavlink_msg_debug.h:7
uint32_t time_boot_ms
Timestamp (milliseconds since system boot)
Definition: mavlink_msg_scaled_pressure.h:7
Definition: mavlink_msg_att_pos_mocap.h:5
float param4
Parameter 4, as defined by MAV_CMD enum.
Definition: mavlink_msg_command_long.h:10
int16_t xmag
X Magnetic field (milli tesla)
Definition: mavlink_msg_scaled_imu3.h:14
float pitch
Desired pitch rate in radians per second.
Definition: mavlink_msg_manual_setpoint.h:9
uint16_t servo2_raw
Servo output 2 value, in microseconds.
Definition: mavlink_msg_servo_output_raw.h:9
uint64_t time_usec
Timestamp (microseconds since UNIX epoch or microseconds since system boot)
Definition: mavlink_msg_hil_gps.h:7
uint64_t capabilities
bitmask of capabilities (see MAV_PROTOCOL_CAPABILITY enum)
Definition: mavlink_msg_autopilot_version.h:7
uint8_t target_system
System ID.
Definition: mavlink_msg_mission_request.h:8
float q[4]
Attitude quaternion (w, x, y, z order, zero-rotation is 1, 0, 0, 0)
Definition: mavlink_msg_set_attitude_target.h:8
Definition: mavlink_msg_mission_item_reached.h:5
Definition: mavlink_msg_gps_raw_int.h:5
uint16_t chan12_raw
RC channel 12 value, in microseconds. A value of UINT16_MAX implies the channel is unused...
Definition: mavlink_msg_rc_channels.h:19
uint8_t rtk_receiver_id
Identification of connected RTK receiver.
Definition: mavlink_msg_gps_rtk.h:15
uint8_t baseline_coords_type
Coordinate system of baseline. 0 == ECEF, 1 == NED.
Definition: mavlink_msg_gps_rtk.h:19
uint16_t chan2_raw
RC channel 2 value, in microseconds. A value of UINT16_MAX implies the channel is unused...
Definition: mavlink_msg_rc_channels.h:9
float xacc
X acceleration (m/s^2)
Definition: mavlink_msg_highres_imu.h:8
uint8_t target_component
Component ID.
Definition: mavlink_msg_mission_clear_all.h:8
uint32_t time_boot_ms
Timestamp (milliseconds since system boot)
Definition: mavlink_msg_scaled_imu2.h:7
Definition: mavlink_msg_log_data.h:5
float z
Global Z speed.
Definition: mavlink_msg_vision_speed_estimate.h:10
uint16_t servo1_raw
Servo output 1 value, in microseconds.
Definition: mavlink_msg_servo_output_raw.h:8
float temperature
Temperature in degrees celsius.
Definition: mavlink_msg_hil_sensor.h:20
int16_t ymag
Y Magnetic field (raw)
Definition: mavlink_msg_raw_imu.h:15
float integrated_x
Flow in radians around X axis (Sensor RH rotation about the X axis induces a positive flow...
Definition: mavlink_msg_hil_optical_flow.h:9
uint8_t len
data length
Definition: mavlink_msg_gps_inject_data.h:9
uint16_t chan6_raw
RC channel 6 value, in microseconds. A value of UINT16_MAX implies the channel is unused...
Definition: mavlink_msg_rc_channels_raw.h:13
Definition: mavlink_msg_raw_pressure.h:5
Definition: mavlink_msg_serial_control.h:5
uint64_t time_usec
Timestamp (microseconds, synced to UNIX time or since system boot)
Definition: mavlink_msg_optical_flow_rad.h:7
int16_t xmag
X Magnetic field (milli tesla)
Definition: mavlink_msg_scaled_imu2.h:14
int16_t press_abs
Absolute pressure (raw)
Definition: mavlink_msg_raw_pressure.h:8
int32_t alt
Altitude in meters, expressed as * 1000 (millimeters), AMSL (not WGS84 - note that virtually all GPS ...
Definition: mavlink_msg_global_position_int.h:10
uint32_t time_boot_ms
Timestamp in milliseconds since system boot.
Definition: mavlink_msg_attitude_target.h:7
uint32_t ofs
Offset into the log.
Definition: mavlink_msg_log_request_data.h:7
float vy
Y velocity in NED frame in meter / s.
Definition: mavlink_msg_set_position_target_local_ned.h:12
uint8_t autocontinue
autocontinue to next wp
Definition: mavlink_msg_command_int.h:19
uint8_t target_component
Component ID (0 for broadcast)
Definition: mavlink_msg_file_transfer_protocol.h:9
Definition: mavlink_msg_named_value_int.h:5
uint8_t remrssi
Remote signal strength.
Definition: mavlink_msg_radio_status.h:10
uint64_t time_utc
Timestamp (microseconds since UNIX epoch) in UTC. 0 for unknown. Commonly filled by the precision tim...
Definition: mavlink_msg_global_position_int_cov.h:7
uint16_t chan15_raw
RC channel 15 value, in microseconds. A value of UINT16_MAX implies the channel is unused...
Definition: mavlink_msg_rc_channels.h:22
uint64_t time_utc
Timestamp (microseconds since UNIX epoch) in UTC. 0 for unknown. Commonly filled by the precision tim...
Definition: mavlink_msg_local_position_ned_cov.h:7
uint8_t current
false:0, true:1
Definition: mavlink_msg_mission_item_int.h:19
uint16_t chan6_raw
RC channel 6 value, in microseconds. A value of UINT16_MAX implies the channel is unused...
Definition: mavlink_msg_rc_channels.h:13
int16_t ymag
Y Magnetic field (milli tesla)
Definition: mavlink_msg_scaled_imu3.h:15
int32_t alt
Altitude in meters, expressed as * 1000 (millimeters)
Definition: mavlink_msg_hil_state.h:16
float flow_comp_m_x
Flow in meters in x-sensor direction, angular-speed compensated.
Definition: mavlink_msg_optical_flow.h:8
Definition: mavlink_msg_attitude.h:5
uint8_t sensor_id
Sensor ID.
Definition: mavlink_msg_optical_flow.h:13
uint64_t time_usec
Unix timestamp in microseconds or since system boot if smaller than MAVLink epoch (1...
Definition: mavlink_msg_ping.h:7
float rollspeed
Roll angular speed (rad/s)
Definition: mavlink_msg_attitude.h:11
char text[50]
Status text message, without null termination character.
Definition: mavlink_msg_statustext.h:8
float vx
X velocity in NED frame in meter / s.
Definition: mavlink_msg_set_position_target_local_ned.h:11
int16_t zmag
Z Magnetic field (milli tesla)
Definition: mavlink_msg_scaled_imu3.h:16
uint8_t autopilot
Autopilot type / class. defined in MAV_AUTOPILOT ENUM.
Definition: mavlink_msg_heartbeat.h:9
float param3
Parameter 3, as defined by MAV_CMD enum.
Definition: mavlink_msg_command_long.h:9
uint8_t quality
Optical flow quality / confidence. 0: no valid flow, 255: maximum quality.
Definition: mavlink_msg_hil_optical_flow.h:18
float vx
Ground X Speed (Latitude), expressed as m/s.
Definition: mavlink_msg_global_position_int_cov.h:13
float p2z
z position 2 / Altitude 2
Definition: mavlink_msg_safety_allowed_area.h:12
uint32_t count
Number of bytes.
Definition: mavlink_msg_log_request_data.h:8
float pressure_alt
Altitude calculated from pressure.
Definition: mavlink_msg_highres_imu.h:19
int16_t temperature
Raw Temperature measurement (raw)
Definition: mavlink_msg_raw_pressure.h:11
uint32_t time_boot_ms
Timestamp (milliseconds since system boot)
Definition: mavlink_msg_global_position_int_cov.h:8
int32_t lat
Latitude, expressed as degrees * 1E7.
Definition: mavlink_msg_global_position_int_cov.h:9
float roll
Roll angle in rad.
Definition: mavlink_msg_vision_position_estimate.h:11
uint64_t time_usec
Timestamp (microseconds since UNIX epoch or microseconds since system boot)
Definition: mavlink_msg_raw_pressure.h:7
uint8_t target_component
Component ID.
Definition: mavlink_msg_mission_ack.h:8
uint16_t throttle
Current throttle setting in integer percent, 0 to 100.
Definition: mavlink_msg_vfr_hud.h:12
uint8_t sensor_id
Sensor ID.
Definition: mavlink_msg_hil_optical_flow.h:17
int16_t temperature
Temperature * 100 in centi-degrees Celsius.
Definition: mavlink_msg_optical_flow_rad.h:16
float yawspeed
Yaw angular speed (rad/s)
Definition: mavlink_msg_attitude_quaternion.h:14
uint8_t noise
Background noise level.
Definition: mavlink_msg_radio_status.h:12
float afy
Y acceleration or force (if bit 10 of type_mask is set) in NED frame in meter / s^2 or N...
Definition: mavlink_msg_set_position_target_global_int.h:15
uint8_t target_component
Component ID.
Definition: mavlink_msg_gps_inject_data.h:8
Definition: mavlink_msg_log_entry.h:5
Definition: mavlink_msg_gps_global_origin.h:5
uint8_t group_mlx
Actuator group. The "_mlx" indicates this is a multi-instance message and a MAVLink parser should use...
Definition: mavlink_msg_actuator_control_target.h:9
int32_t lon
Longitude, expressed as * 1E7.
Definition: mavlink_msg_hil_state.h:15
float nav_pitch
Current desired pitch in degrees.
Definition: mavlink_msg_nav_controller_output.h:8
int64_t tc1
Time sync timestamp 1.
Definition: mavlink_msg_timesync.h:7
uint16_t product_id
ID of the product.
Definition: mavlink_msg_autopilot_version.h:14
float param4
PARAM4, see MAV_CMD enum.
Definition: mavlink_msg_mission_item_int.h:10
uint16_t drop_rate_comm
Communication drops in percent, (0%: 0, 100%: 10'000), (UART, I2C, SPI, CAN), dropped packets on all ...
Definition: mavlink_msg_sys_status.h:13
uint32_t time_utc
UTC timestamp of log in seconds since 1970, or 0 if not available.
Definition: mavlink_msg_log_entry.h:7
uint8_t confirmation
0: First transmission of this command. 1-255: Confirmation transmissions (e.g. for kill command) ...
Definition: mavlink_msg_command_long.h:17
uint8_t target_network
Network ID (0 for broadcast)
Definition: mavlink_msg_file_transfer_protocol.h:7
uint8_t target_component
Component ID.
Definition: mavlink_msg_mission_request.h:9
float param4
PARAM4, see MAV_CMD enum.
Definition: mavlink_msg_command_int.h:10
uint8_t chancount
Total number of RC channels being received. This can be larger than 18, indicating that more channels...
Definition: mavlink_msg_rc_channels.h:26
float yacc
Y acceleration (m/s^2)
Definition: mavlink_msg_highres_imu.h:9
uint32_t accuracy
Current estimate of baseline accuracy.
Definition: mavlink_msg_gps_rtk.h:12
uint8_t satellite_snr[20]
Signal to noise ratio of satellite.
Definition: mavlink_msg_gps_status.h:12
int32_t y
PARAM6 / y position: local: x position in meters * 1e4, global: longitude in degrees *10^7...
Definition: mavlink_msg_mission_item_int.h:12
Definition: mavlink_msg_manual_control.h:5
float y
Global Y position.
Definition: mavlink_msg_vicon_position_estimate.h:9
uint8_t target_system
System ID.
Definition: mavlink_msg_command_int.h:15
uint8_t stream_id
The ID of the requested data stream.
Definition: mavlink_msg_data_stream.h:8
float y
Global Y position.
Definition: mavlink_msg_vision_position_estimate.h:9
uint32_t integration_time_us
Integration time in microseconds. Divide integrated_x and integrated_y by the integration time to obt...
Definition: mavlink_msg_hil_optical_flow.h:8
int16_t zmag
Z Magnetic field (milli tesla)
Definition: mavlink_msg_scaled_imu2.h:16
float x
Global X position.
Definition: mavlink_msg_vision_position_estimate.h:8
uint32_t seq
Image frame sequence.
Definition: mavlink_msg_camera_trigger.h:8
float zgyro
Angular speed around Z axis rad/s.
Definition: mavlink_msg_sim_state.h:19
uint8_t target_system
System ID (0 for broadcast)
Definition: mavlink_msg_v2_extension.h:9
uint16_t command
Command ID, as defined by MAV_CMD enum.
Definition: mavlink_msg_command_ack.h:7
int16_t xacc
X acceleration (mg)
Definition: mavlink_msg_scaled_imu2.h:8
int32_t lat_int
X Position in WGS84 frame in 1e7 * meters.
Definition: mavlink_msg_position_target_global_int.h:8
uint8_t battery_function
Function of the battery.
Definition: mavlink_msg_battery_status.h:13
float afx
X acceleration or force (if bit 10 of type_mask is set) in NED frame in meter / s^2 or N...
Definition: mavlink_msg_set_position_target_local_ned.h:14
Definition: mavlink_msg_position_target_global_int.h:5
char key[32]
key
Definition: mavlink_msg_auth_key.h:7
Definition: mavlink_msg_battery_status.h:5
uint16_t grid_spacing
Grid spacing in meters.
Definition: mavlink_msg_terrain_request.h:10
float param2
PARAM2, see MAV_CMD enum.
Definition: mavlink_msg_mission_item_int.h:8
uint8_t target_system
System ID.
Definition: mavlink_msg_mission_clear_all.h:7
uint16_t voltages[10]
Battery voltage of cells, in millivolts (1 = 1 millivolt)
Definition: mavlink_msg_battery_status.h:10
uint8_t target_system
The system setting the mode.
Definition: mavlink_msg_set_mode.h:8
uint8_t target_system
System ID.
Definition: mavlink_msg_mission_item_int.h:16
int16_t end_index
End index, -1 by default (-1: send list to end). Else a valid index of the list.
Definition: mavlink_msg_mission_request_partial_list.h:8
float rollspeed
Body frame roll / phi angular speed (rad/s)
Definition: mavlink_msg_hil_state.h:11
int16_t yacc
Y acceleration (raw)
Definition: mavlink_msg_raw_imu.h:9
int16_t zacc
Z acceleration (mg)
Definition: mavlink_msg_scaled_imu2.h:10
float yaw
Yaw angle (rad, -pi..+pi)
Definition: mavlink_msg_attitude.h:10
int8_t value[32]
Memory contents at specified address.
Definition: mavlink_msg_memory_vect.h:10
float integrated_ygyro
RH rotation around Y axis (rad)
Definition: mavlink_msg_optical_flow_rad.h:12
int16_t vx
Ground X Speed (Latitude), expressed as m/s * 100.
Definition: mavlink_msg_global_position_int.h:12
uint8_t target_component
Component ID.
Definition: mavlink_msg_param_set.h:9
uint32_t size
total data size in bytes (set on ACK only)
Definition: mavlink_msg_data_transmission_handshake.h:7
Definition: mavlink_msg_memory_vect.h:5
uint8_t target_component
Component ID.
Definition: mavlink_msg_set_actuator_control_target.h:11
uint16_t id
Log id (from LOG_ENTRY reply)
Definition: mavlink_msg_log_data.h:8
uint8_t rssi
Local signal strength.
Definition: mavlink_msg_radio_status.h:9
uint8_t rtk_rate
Rate of baseline messages being received by GPS, in HZ.
Definition: mavlink_msg_gps_rtk.h:17
uint32_t time_last_baseline_ms
Time since boot of last baseline message received in ms.
Definition: mavlink_msg_gps2_rtk.h:7
float yaw_rate
yaw rate setpoint in rad/s
Definition: mavlink_msg_set_position_target_global_int.h:18
uint8_t frame
The coordinate system of the MISSION. see MAV_FRAME in mavlink_types.h.
Definition: mavlink_msg_mission_item_int.h:18
float xtrack_error
Current crosstrack error on x-y plane in meters.
Definition: mavlink_msg_nav_controller_output.h:11
float param_value
Onboard parameter value.
Definition: mavlink_msg_param_value.h:7
uint8_t type
Type (chemistry) of the battery.
Definition: mavlink_msg_battery_status.h:14
uint8_t target_system
System ID.
Definition: mavlink_msg_mission_ack.h:7
uint16_t chan9_raw
RC channel 9 value, in microseconds. A value of UINT16_MAX implies the channel is unused...
Definition: mavlink_msg_rc_channels.h:16
float integrated_xgyro
RH rotation around X axis (rad)
Definition: mavlink_msg_hil_optical_flow.h:11
float xacc
X acceleration m/s/s.
Definition: mavlink_msg_sim_state.h:14
uint16_t message_type
A code that identifies the software component that understands this message (analogous to usb device ...
Definition: mavlink_msg_v2_extension.h:7
float param2
PARAM2, see MAV_CMD enum.
Definition: mavlink_msg_command_int.h:8
float ygyro
Angular speed around Y axis rad/s.
Definition: mavlink_msg_sim_state.h:18
int16_t press_diff2
Differential pressure 2 (raw)
Definition: mavlink_msg_raw_pressure.h:10
uint16_t id
Log id.
Definition: mavlink_msg_log_entry.h:9
uint8_t target_system
System the GCS requests control for.
Definition: mavlink_msg_change_operator_control.h:7
uint32_t size
Size of the log (may be approximate) in bytes.
Definition: mavlink_msg_log_entry.h:8
uint8_t frame
Coordinate frame, as defined by MAV_FRAME enum in mavlink_types.h. Can be either global, GPS, right-handed with Z axis up or local, right handed, Z axis down.
Definition: mavlink_msg_safety_set_allowed_area.h:15
uint8_t target_system
System ID.
Definition: mavlink_msg_set_actuator_control_target.h:10
int32_t lon
Longitude (WGS84), in degrees * 1E7.
Definition: mavlink_msg_hil_gps.h:9
uint8_t autocontinue
autocontinue to next wp
Definition: mavlink_msg_mission_item.h:20
float x
x
Definition: mavlink_msg_debug_vect.h:8
uint32_t time_boot_ms
Timestamp (milliseconds since system boot)
Definition: mavlink_msg_scaled_pressure2.h:7
float z
z
Definition: mavlink_msg_debug_vect.h:10
uint8_t type
type of requested/acknowledged data (as defined in ENUM DATA_TYPES in mavlink/include/mavlink_types.h)
Definition: mavlink_msg_data_transmission_handshake.h:11
uint8_t satellite_azimuth[20]
Direction of satellite, 0: 0 deg, 255: 360 deg.
Definition: mavlink_msg_gps_status.h:11
Definition: mavlink_msg_auth_key.h:5
float q1
True attitude quaternion component 1, w (1 in null-rotation)
Definition: mavlink_msg_sim_state.h:7
uint8_t target_system
System ID.
Definition: mavlink_msg_set_gps_global_origin.h:10
uint16_t seqnr
sequence number (starting with 0 on every transmission)
Definition: mavlink_msg_encapsulated_data.h:7
uint8_t dgps_numch
Number of DGPS satellites.
Definition: mavlink_msg_gps2_raw.h:18
uint16_t param_index
Index of this onboard parameter.
Definition: mavlink_msg_param_value.h:9
float airspeed
Current airspeed in m/s.
Definition: mavlink_msg_vfr_hud.h:7
Definition: mavlink_msg_command_int.h:5
uint8_t target
The system to be controlled.
Definition: mavlink_msg_manual_control.h:12
Definition: mavlink_msg_vfr_hud.h:5
char param_id[16]
Onboard parameter id, terminated by NULL if the length is less than 16 human-readable chars and WITHO...
Definition: mavlink_msg_param_request_read.h:10
float afx
X acceleration or force (if bit 10 of type_mask is set) in NED frame in meter / s^2 or N...
Definition: mavlink_msg_position_target_global_int.h:14
uint8_t autocontinue
autocontinue to next wp
Definition: mavlink_msg_mission_item_int.h:20
float press_diff
Differential pressure 1 (hectopascal)
Definition: mavlink_msg_scaled_pressure.h:9
Definition: mavlink_msg_local_position_ned_cov.h:5
Definition: mavlink_msg_sim_state.h:5
int32_t alt
Altitude (AMSL, NOT WGS84), in meters * 1000 (positive for up). Note that virtually all GPS modules p...
Definition: mavlink_msg_gps_raw_int.h:10
float param_value0
Initial parameter value.
Definition: mavlink_msg_param_map_rc.h:7
Definition: mavlink_msg_mission_set_current.h:5
float x
X Position in NED frame in meters.
Definition: mavlink_msg_set_position_target_local_ned.h:8
uint64_t time_usec
Timestamp (micros since boot or Unix epoch)
Definition: mavlink_msg_att_pos_mocap.h:7
uint8_t current
false:0, true:1
Definition: mavlink_msg_command_int.h:18
float yaw_rate
yaw rate setpoint in rad/s
Definition: mavlink_msg_position_target_local_ned.h:18
int32_t baseline_c_mm
Current baseline in ECEF z or NED down component in mm.
Definition: mavlink_msg_gps2_rtk.h:11
Definition: mavlink_msg_rc_channels_scaled.h:5
float vz
Z velocity in NED frame in meter / s.
Definition: mavlink_msg_position_target_local_ned.h:13
uint32_t dgps_age
Age of DGPS info.
Definition: mavlink_msg_gps2_raw.h:11
float yaw
Desired yaw rate in radians per second.
Definition: mavlink_msg_manual_setpoint.h:10
uint8_t target_system
System ID.
Definition: mavlink_msg_mission_set_current.h:8
int16_t vz
Ground Z Speed (Altitude), expressed as m/s * 100.
Definition: mavlink_msg_hil_state.h:19
float yaw_rate
yaw rate setpoint in rad/s
Definition: mavlink_msg_position_target_global_int.h:18
uint16_t chan7_raw
RC channel 7 value, in microseconds. A value of UINT16_MAX implies the channel is unused...
Definition: mavlink_msg_rc_channels_raw.h:14
uint8_t nav_mode
Navigation mode (MAV_NAV_MODE)
Definition: mavlink_msg_hil_controls.h:17
float param1
PARAM1, see MAV_CMD enum.
Definition: mavlink_msg_mission_item.h:7
float q[4]
Attitude quaternion (w, x, y, z order, zero-rotation is 1, 0, 0, 0)
Definition: mavlink_msg_att_pos_mocap.h:8