5 #ifndef PIXHAWK_TESTSUITE_H
6 #define PIXHAWK_TESTSUITE_H
12 #ifndef MAVLINK_TEST_ALL
13 #define MAVLINK_TEST_ALL
14 static void mavlink_test_common(uint8_t, uint8_t, mavlink_message_t *last_msg);
15 static void mavlink_test_pixhawk(uint8_t, uint8_t, mavlink_message_t *last_msg);
17 static void mavlink_test_all(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
19 mavlink_test_common(system_id, component_id, last_msg);
20 mavlink_test_pixhawk(system_id, component_id, last_msg);
24 #include "../common/testsuite.h"
27 static void mavlink_test_set_cam_shutter(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
29 mavlink_message_t msg;
33 17.0,17443,17547,29,96,163
36 memset(&packet1, 0,
sizeof(packet1));
46 memset(&packet2, 0,
sizeof(packet2));
47 mavlink_msg_set_cam_shutter_encode(system_id, component_id, &msg, &packet1);
48 mavlink_msg_set_cam_shutter_decode(&msg, &packet2);
51 memset(&packet2, 0,
sizeof(packet2));
53 mavlink_msg_set_cam_shutter_decode(&msg, &packet2);
56 memset(&packet2, 0,
sizeof(packet2));
58 mavlink_msg_set_cam_shutter_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_set_cam_shutter_decode(last_msg, &packet2);
69 memset(&packet2, 0,
sizeof(packet2));
71 mavlink_msg_set_cam_shutter_decode(last_msg, &packet2);
75 static void mavlink_test_image_triggered(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
77 mavlink_message_t msg;
81 93372036854775807ULL,963497880,101.0,129.0,157.0,185.0,213.0,241.0,269.0,297.0,325.0,353.0
84 memset(&packet1, 0,
sizeof(packet1));
86 packet1.
seq = packet_in.
seq;
89 packet1.
yaw = packet_in.
yaw;
91 packet1.
lat = packet_in.
lat;
92 packet1.
lon = packet_in.
lon;
93 packet1.
alt = packet_in.
alt;
100 memset(&packet2, 0,
sizeof(packet2));
101 mavlink_msg_image_triggered_encode(system_id, component_id, &msg, &packet1);
102 mavlink_msg_image_triggered_decode(&msg, &packet2);
105 memset(&packet2, 0,
sizeof(packet2));
106 mavlink_msg_image_triggered_pack(system_id, component_id, &msg , packet1.
timestamp , packet1.
seq , packet1.
roll , packet1.
pitch , packet1.
yaw , packet1.
local_z , packet1.
lat , packet1.
lon , packet1.
alt , packet1.
ground_x , packet1.
ground_y , packet1.
ground_z );
107 mavlink_msg_image_triggered_decode(&msg, &packet2);
110 memset(&packet2, 0,
sizeof(packet2));
111 mavlink_msg_image_triggered_pack_chan(system_id, component_id,
MAVLINK_COMM_0, &msg , packet1.
timestamp , packet1.
seq , packet1.
roll , packet1.
pitch , packet1.
yaw , packet1.
local_z , packet1.
lat , packet1.
lon , packet1.
alt , packet1.
ground_x , packet1.
ground_y , packet1.
ground_z );
112 mavlink_msg_image_triggered_decode(&msg, &packet2);
115 memset(&packet2, 0,
sizeof(packet2));
117 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
120 mavlink_msg_image_triggered_decode(last_msg, &packet2);
123 memset(&packet2, 0,
sizeof(packet2));
124 mavlink_msg_image_triggered_send(
MAVLINK_COMM_1 , packet1.
timestamp , packet1.
seq , packet1.
roll , packet1.
pitch , packet1.
yaw , packet1.
local_z , packet1.
lat , packet1.
lon , packet1.
alt , packet1.
ground_x , packet1.
ground_y , packet1.
ground_z );
125 mavlink_msg_image_triggered_decode(last_msg, &packet2);
129 static void mavlink_test_image_trigger_control(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
131 mavlink_message_t msg;
138 memset(&packet1, 0,
sizeof(packet1));
143 memset(&packet2, 0,
sizeof(packet2));
144 mavlink_msg_image_trigger_control_encode(system_id, component_id, &msg, &packet1);
145 mavlink_msg_image_trigger_control_decode(&msg, &packet2);
148 memset(&packet2, 0,
sizeof(packet2));
149 mavlink_msg_image_trigger_control_pack(system_id, component_id, &msg , packet1.
enable );
150 mavlink_msg_image_trigger_control_decode(&msg, &packet2);
153 memset(&packet2, 0,
sizeof(packet2));
154 mavlink_msg_image_trigger_control_pack_chan(system_id, component_id,
MAVLINK_COMM_0, &msg , packet1.
enable );
155 mavlink_msg_image_trigger_control_decode(&msg, &packet2);
158 memset(&packet2, 0,
sizeof(packet2));
160 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
163 mavlink_msg_image_trigger_control_decode(last_msg, &packet2);
166 memset(&packet2, 0,
sizeof(packet2));
168 mavlink_msg_image_trigger_control_decode(last_msg, &packet2);
172 static void mavlink_test_image_available(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
174 mavlink_message_t msg;
178 93372036854775807ULL,93372036854776311ULL,93372036854776815ULL,963498712,963498920,963499128,963499336,297.0,325.0,353.0,381.0,409.0,437.0,465.0,493.0,521.0,549.0,577.0,21603,21707,21811,147,214
181 memset(&packet1, 0,
sizeof(packet1));
187 packet1.
key = packet_in.
key;
192 packet1.
yaw = packet_in.
yaw;
194 packet1.
lat = packet_in.
lat;
195 packet1.
lon = packet_in.
lon;
196 packet1.
alt = packet_in.
alt;
208 memset(&packet2, 0,
sizeof(packet2));
209 mavlink_msg_image_available_encode(system_id, component_id, &msg, &packet1);
210 mavlink_msg_image_available_decode(&msg, &packet2);
213 memset(&packet2, 0,
sizeof(packet2));
214 mavlink_msg_image_available_pack(system_id, component_id, &msg , packet1.
cam_id , packet1.
cam_no , packet1.
timestamp , packet1.
valid_until , packet1.
img_seq , packet1.
img_buf_index , packet1.
width , packet1.
height , packet1.
depth , packet1.
channels , packet1.
key , packet1.
exposure , packet1.
gain , packet1.
roll , packet1.
pitch , packet1.
yaw , packet1.
local_z , packet1.
lat , packet1.
lon , packet1.
alt , packet1.
ground_x , packet1.
ground_y , packet1.
ground_z );
215 mavlink_msg_image_available_decode(&msg, &packet2);
218 memset(&packet2, 0,
sizeof(packet2));
219 mavlink_msg_image_available_pack_chan(system_id, component_id,
MAVLINK_COMM_0, &msg , packet1.
cam_id , packet1.
cam_no , packet1.
timestamp , packet1.
valid_until , packet1.
img_seq , packet1.
img_buf_index , packet1.
width , packet1.
height , packet1.
depth , packet1.
channels , packet1.
key , packet1.
exposure , packet1.
gain , packet1.
roll , packet1.
pitch , packet1.
yaw , packet1.
local_z , packet1.
lat , packet1.
lon , packet1.
alt , packet1.
ground_x , packet1.
ground_y , packet1.
ground_z );
220 mavlink_msg_image_available_decode(&msg, &packet2);
223 memset(&packet2, 0,
sizeof(packet2));
225 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
228 mavlink_msg_image_available_decode(last_msg, &packet2);
231 memset(&packet2, 0,
sizeof(packet2));
232 mavlink_msg_image_available_send(
MAVLINK_COMM_1 , packet1.
cam_id , packet1.
cam_no , packet1.
timestamp , packet1.
valid_until , packet1.
img_seq , packet1.
img_buf_index , packet1.
width , packet1.
height , packet1.
depth , packet1.
channels , packet1.
key , packet1.
exposure , packet1.
gain , packet1.
roll , packet1.
pitch , packet1.
yaw , packet1.
local_z , packet1.
lat , packet1.
lon , packet1.
alt , packet1.
ground_x , packet1.
ground_y , packet1.
ground_z );
233 mavlink_msg_image_available_decode(last_msg, &packet2);
237 static void mavlink_test_set_position_control_offset(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
239 mavlink_message_t msg;
243 17.0,45.0,73.0,101.0,53,120
246 memset(&packet1, 0,
sizeof(packet1));
247 packet1.
x = packet_in.
x;
248 packet1.
y = packet_in.
y;
249 packet1.
z = packet_in.
z;
250 packet1.
yaw = packet_in.
yaw;
256 memset(&packet2, 0,
sizeof(packet2));
257 mavlink_msg_set_position_control_offset_encode(system_id, component_id, &msg, &packet1);
258 mavlink_msg_set_position_control_offset_decode(&msg, &packet2);
261 memset(&packet2, 0,
sizeof(packet2));
262 mavlink_msg_set_position_control_offset_pack(system_id, component_id, &msg , packet1.
target_system , packet1.
target_component , packet1.
x , packet1.
y , packet1.
z , packet1.
yaw );
263 mavlink_msg_set_position_control_offset_decode(&msg, &packet2);
266 memset(&packet2, 0,
sizeof(packet2));
268 mavlink_msg_set_position_control_offset_decode(&msg, &packet2);
271 memset(&packet2, 0,
sizeof(packet2));
273 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
276 mavlink_msg_set_position_control_offset_decode(last_msg, &packet2);
279 memset(&packet2, 0,
sizeof(packet2));
281 mavlink_msg_set_position_control_offset_decode(last_msg, &packet2);
285 static void mavlink_test_position_control_setpoint(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
287 mavlink_message_t msg;
291 17.0,45.0,73.0,101.0,18067
294 memset(&packet1, 0,
sizeof(packet1));
295 packet1.
x = packet_in.
x;
296 packet1.
y = packet_in.
y;
297 packet1.
z = packet_in.
z;
298 packet1.
yaw = packet_in.
yaw;
299 packet1.
id = packet_in.
id;
303 memset(&packet2, 0,
sizeof(packet2));
304 mavlink_msg_position_control_setpoint_encode(system_id, component_id, &msg, &packet1);
305 mavlink_msg_position_control_setpoint_decode(&msg, &packet2);
308 memset(&packet2, 0,
sizeof(packet2));
309 mavlink_msg_position_control_setpoint_pack(system_id, component_id, &msg , packet1.
id , packet1.
x , packet1.
y , packet1.
z , packet1.
yaw );
310 mavlink_msg_position_control_setpoint_decode(&msg, &packet2);
313 memset(&packet2, 0,
sizeof(packet2));
314 mavlink_msg_position_control_setpoint_pack_chan(system_id, component_id,
MAVLINK_COMM_0, &msg , packet1.
id , packet1.
x , packet1.
y , packet1.
z , packet1.
yaw );
315 mavlink_msg_position_control_setpoint_decode(&msg, &packet2);
318 memset(&packet2, 0,
sizeof(packet2));
320 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
323 mavlink_msg_position_control_setpoint_decode(last_msg, &packet2);
326 memset(&packet2, 0,
sizeof(packet2));
327 mavlink_msg_position_control_setpoint_send(
MAVLINK_COMM_1 , packet1.
id , packet1.
x , packet1.
y , packet1.
z , packet1.
yaw );
328 mavlink_msg_position_control_setpoint_decode(last_msg, &packet2);
332 static void mavlink_test_marker(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
334 mavlink_message_t msg;
338 17.0,45.0,73.0,101.0,129.0,157.0,18483
341 memset(&packet1, 0,
sizeof(packet1));
342 packet1.
x = packet_in.
x;
343 packet1.
y = packet_in.
y;
344 packet1.
z = packet_in.
z;
347 packet1.
yaw = packet_in.
yaw;
348 packet1.
id = packet_in.
id;
352 memset(&packet2, 0,
sizeof(packet2));
353 mavlink_msg_marker_encode(system_id, component_id, &msg, &packet1);
354 mavlink_msg_marker_decode(&msg, &packet2);
357 memset(&packet2, 0,
sizeof(packet2));
358 mavlink_msg_marker_pack(system_id, component_id, &msg , packet1.
id , packet1.
x , packet1.
y , packet1.
z , packet1.
roll , packet1.
pitch , packet1.
yaw );
359 mavlink_msg_marker_decode(&msg, &packet2);
362 memset(&packet2, 0,
sizeof(packet2));
363 mavlink_msg_marker_pack_chan(system_id, component_id,
MAVLINK_COMM_0, &msg , packet1.
id , packet1.
x , packet1.
y , packet1.
z , packet1.
roll , packet1.
pitch , packet1.
yaw );
364 mavlink_msg_marker_decode(&msg, &packet2);
367 memset(&packet2, 0,
sizeof(packet2));
369 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
372 mavlink_msg_marker_decode(last_msg, &packet2);
375 memset(&packet2, 0,
sizeof(packet2));
377 mavlink_msg_marker_decode(last_msg, &packet2);
381 static void mavlink_test_raw_aux(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
383 mavlink_message_t msg;
387 963497464,17443,17547,17651,17755,17859,17963
390 memset(&packet1, 0,
sizeof(packet1));
401 memset(&packet2, 0,
sizeof(packet2));
402 mavlink_msg_raw_aux_encode(system_id, component_id, &msg, &packet1);
403 mavlink_msg_raw_aux_decode(&msg, &packet2);
406 memset(&packet2, 0,
sizeof(packet2));
407 mavlink_msg_raw_aux_pack(system_id, component_id, &msg , packet1.
adc1 , packet1.
adc2 , packet1.
adc3 , packet1.
adc4 , packet1.
vbat , packet1.
temp , packet1.
baro );
408 mavlink_msg_raw_aux_decode(&msg, &packet2);
411 memset(&packet2, 0,
sizeof(packet2));
412 mavlink_msg_raw_aux_pack_chan(system_id, component_id,
MAVLINK_COMM_0, &msg , packet1.
adc1 , packet1.
adc2 , packet1.
adc3 , packet1.
adc4 , packet1.
vbat , packet1.
temp , packet1.
baro );
413 mavlink_msg_raw_aux_decode(&msg, &packet2);
416 memset(&packet2, 0,
sizeof(packet2));
418 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
421 mavlink_msg_raw_aux_decode(last_msg, &packet2);
424 memset(&packet2, 0,
sizeof(packet2));
426 mavlink_msg_raw_aux_decode(last_msg, &packet2);
430 static void mavlink_test_watchdog_heartbeat(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
432 mavlink_message_t msg;
439 memset(&packet1, 0,
sizeof(packet1));
445 memset(&packet2, 0,
sizeof(packet2));
446 mavlink_msg_watchdog_heartbeat_encode(system_id, component_id, &msg, &packet1);
447 mavlink_msg_watchdog_heartbeat_decode(&msg, &packet2);
450 memset(&packet2, 0,
sizeof(packet2));
452 mavlink_msg_watchdog_heartbeat_decode(&msg, &packet2);
455 memset(&packet2, 0,
sizeof(packet2));
457 mavlink_msg_watchdog_heartbeat_decode(&msg, &packet2);
460 memset(&packet2, 0,
sizeof(packet2));
462 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
465 mavlink_msg_watchdog_heartbeat_decode(last_msg, &packet2);
468 memset(&packet2, 0,
sizeof(packet2));
470 mavlink_msg_watchdog_heartbeat_decode(last_msg, &packet2);
474 static void mavlink_test_watchdog_process_info(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
476 mavlink_message_t msg;
480 963497464,17443,17547,
"IJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABC",
"EFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRST"
483 memset(&packet1, 0,
sizeof(packet1));
488 mav_array_memcpy(packet1.
name, packet_in.
name,
sizeof(
char)*100);
492 memset(&packet2, 0,
sizeof(packet2));
493 mavlink_msg_watchdog_process_info_encode(system_id, component_id, &msg, &packet1);
494 mavlink_msg_watchdog_process_info_decode(&msg, &packet2);
497 memset(&packet2, 0,
sizeof(packet2));
499 mavlink_msg_watchdog_process_info_decode(&msg, &packet2);
502 memset(&packet2, 0,
sizeof(packet2));
504 mavlink_msg_watchdog_process_info_decode(&msg, &packet2);
507 memset(&packet2, 0,
sizeof(packet2));
509 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
512 mavlink_msg_watchdog_process_info_decode(last_msg, &packet2);
515 memset(&packet2, 0,
sizeof(packet2));
517 mavlink_msg_watchdog_process_info_decode(last_msg, &packet2);
521 static void mavlink_test_watchdog_process_status(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
523 mavlink_message_t msg;
527 963497464,17443,17547,17651,163,230
530 memset(&packet1, 0,
sizeof(packet1));
531 packet1.
pid = packet_in.
pid;
540 memset(&packet2, 0,
sizeof(packet2));
541 mavlink_msg_watchdog_process_status_encode(system_id, component_id, &msg, &packet1);
542 mavlink_msg_watchdog_process_status_decode(&msg, &packet2);
545 memset(&packet2, 0,
sizeof(packet2));
547 mavlink_msg_watchdog_process_status_decode(&msg, &packet2);
550 memset(&packet2, 0,
sizeof(packet2));
552 mavlink_msg_watchdog_process_status_decode(&msg, &packet2);
555 memset(&packet2, 0,
sizeof(packet2));
557 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
560 mavlink_msg_watchdog_process_status_decode(last_msg, &packet2);
563 memset(&packet2, 0,
sizeof(packet2));
565 mavlink_msg_watchdog_process_status_decode(last_msg, &packet2);
569 static void mavlink_test_watchdog_command(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
571 mavlink_message_t msg;
578 memset(&packet1, 0,
sizeof(packet1));
586 memset(&packet2, 0,
sizeof(packet2));
587 mavlink_msg_watchdog_command_encode(system_id, component_id, &msg, &packet1);
588 mavlink_msg_watchdog_command_decode(&msg, &packet2);
591 memset(&packet2, 0,
sizeof(packet2));
593 mavlink_msg_watchdog_command_decode(&msg, &packet2);
596 memset(&packet2, 0,
sizeof(packet2));
598 mavlink_msg_watchdog_command_decode(&msg, &packet2);
601 memset(&packet2, 0,
sizeof(packet2));
603 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
606 mavlink_msg_watchdog_command_decode(last_msg, &packet2);
609 memset(&packet2, 0,
sizeof(packet2));
611 mavlink_msg_watchdog_command_decode(last_msg, &packet2);
615 static void mavlink_test_pattern_detected(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
617 mavlink_message_t msg;
621 17.0,17,
"FGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZ",128
624 memset(&packet1, 0,
sizeof(packet1));
629 mav_array_memcpy(packet1.
file, packet_in.
file,
sizeof(
char)*100);
632 memset(&packet2, 0,
sizeof(packet2));
633 mavlink_msg_pattern_detected_encode(system_id, component_id, &msg, &packet1);
634 mavlink_msg_pattern_detected_decode(&msg, &packet2);
637 memset(&packet2, 0,
sizeof(packet2));
638 mavlink_msg_pattern_detected_pack(system_id, component_id, &msg , packet1.
type , packet1.
confidence , packet1.
file , packet1.
detected );
639 mavlink_msg_pattern_detected_decode(&msg, &packet2);
642 memset(&packet2, 0,
sizeof(packet2));
644 mavlink_msg_pattern_detected_decode(&msg, &packet2);
647 memset(&packet2, 0,
sizeof(packet2));
649 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
652 mavlink_msg_pattern_detected_decode(last_msg, &packet2);
655 memset(&packet2, 0,
sizeof(packet2));
657 mavlink_msg_pattern_detected_decode(last_msg, &packet2);
661 static void mavlink_test_point_of_interest(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
663 mavlink_message_t msg;
667 17.0,45.0,73.0,17859,175,242,53,
"RSTUVWXYZABCDEFGHIJKLMNOP"
670 memset(&packet1, 0,
sizeof(packet1));
671 packet1.
x = packet_in.
x;
672 packet1.
y = packet_in.
y;
673 packet1.
z = packet_in.
z;
679 mav_array_memcpy(packet1.
name, packet_in.
name,
sizeof(
char)*26);
682 memset(&packet2, 0,
sizeof(packet2));
683 mavlink_msg_point_of_interest_encode(system_id, component_id, &msg, &packet1);
684 mavlink_msg_point_of_interest_decode(&msg, &packet2);
687 memset(&packet2, 0,
sizeof(packet2));
688 mavlink_msg_point_of_interest_pack(system_id, component_id, &msg , packet1.
type , packet1.
color , packet1.
coordinate_system , packet1.
timeout , packet1.
x , packet1.
y , packet1.
z , packet1.
name );
689 mavlink_msg_point_of_interest_decode(&msg, &packet2);
692 memset(&packet2, 0,
sizeof(packet2));
693 mavlink_msg_point_of_interest_pack_chan(system_id, component_id,
MAVLINK_COMM_0, &msg , packet1.
type , packet1.
color , packet1.
coordinate_system , packet1.
timeout , packet1.
x , packet1.
y , packet1.
z , packet1.
name );
694 mavlink_msg_point_of_interest_decode(&msg, &packet2);
697 memset(&packet2, 0,
sizeof(packet2));
699 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
702 mavlink_msg_point_of_interest_decode(last_msg, &packet2);
705 memset(&packet2, 0,
sizeof(packet2));
707 mavlink_msg_point_of_interest_decode(last_msg, &packet2);
711 static void mavlink_test_point_of_interest_connection(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
713 mavlink_message_t msg;
717 17.0,45.0,73.0,101.0,129.0,157.0,18483,211,22,89,
"DEFGHIJKLMNOPQRSTUVWXYZAB"
720 memset(&packet1, 0,
sizeof(packet1));
721 packet1.
xp1 = packet_in.
xp1;
722 packet1.
yp1 = packet_in.
yp1;
723 packet1.
zp1 = packet_in.
zp1;
724 packet1.
xp2 = packet_in.
xp2;
725 packet1.
yp2 = packet_in.
yp2;
726 packet1.
zp2 = packet_in.
zp2;
732 mav_array_memcpy(packet1.
name, packet_in.
name,
sizeof(
char)*26);
735 memset(&packet2, 0,
sizeof(packet2));
736 mavlink_msg_point_of_interest_connection_encode(system_id, component_id, &msg, &packet1);
737 mavlink_msg_point_of_interest_connection_decode(&msg, &packet2);
740 memset(&packet2, 0,
sizeof(packet2));
741 mavlink_msg_point_of_interest_connection_pack(system_id, component_id, &msg , packet1.
type , packet1.
color , packet1.
coordinate_system , packet1.
timeout , packet1.
xp1 , packet1.
yp1 , packet1.
zp1 , packet1.
xp2 , packet1.
yp2 , packet1.
zp2 , packet1.
name );
742 mavlink_msg_point_of_interest_connection_decode(&msg, &packet2);
745 memset(&packet2, 0,
sizeof(packet2));
746 mavlink_msg_point_of_interest_connection_pack_chan(system_id, component_id,
MAVLINK_COMM_0, &msg , packet1.
type , packet1.
color , packet1.
coordinate_system , packet1.
timeout , packet1.
xp1 , packet1.
yp1 , packet1.
zp1 , packet1.
xp2 , packet1.
yp2 , packet1.
zp2 , packet1.
name );
747 mavlink_msg_point_of_interest_connection_decode(&msg, &packet2);
750 memset(&packet2, 0,
sizeof(packet2));
752 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
755 mavlink_msg_point_of_interest_connection_decode(last_msg, &packet2);
758 memset(&packet2, 0,
sizeof(packet2));
759 mavlink_msg_point_of_interest_connection_send(
MAVLINK_COMM_1 , packet1.
type , packet1.
color , packet1.
coordinate_system , packet1.
timeout , packet1.
xp1 , packet1.
yp1 , packet1.
zp1 , packet1.
xp2 , packet1.
yp2 , packet1.
zp2 , packet1.
name );
760 mavlink_msg_point_of_interest_connection_decode(last_msg, &packet2);
764 static void mavlink_test_brief_feature(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
766 mavlink_message_t msg;
770 17.0,45.0,73.0,101.0,18067,18171,65,{ 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 }
773 memset(&packet1, 0,
sizeof(packet1));
774 packet1.
x = packet_in.
x;
775 packet1.
y = packet_in.
y;
776 packet1.
z = packet_in.
z;
785 memset(&packet2, 0,
sizeof(packet2));
786 mavlink_msg_brief_feature_encode(system_id, component_id, &msg, &packet1);
787 mavlink_msg_brief_feature_decode(&msg, &packet2);
790 memset(&packet2, 0,
sizeof(packet2));
791 mavlink_msg_brief_feature_pack(system_id, component_id, &msg , packet1.
x , packet1.
y , packet1.
z , packet1.
orientation_assignment , packet1.
size , packet1.
orientation , packet1.
descriptor , packet1.
response );
792 mavlink_msg_brief_feature_decode(&msg, &packet2);
795 memset(&packet2, 0,
sizeof(packet2));
796 mavlink_msg_brief_feature_pack_chan(system_id, component_id,
MAVLINK_COMM_0, &msg , packet1.
x , packet1.
y , packet1.
z , packet1.
orientation_assignment , packet1.
size , packet1.
orientation , packet1.
descriptor , packet1.
response );
797 mavlink_msg_brief_feature_decode(&msg, &packet2);
800 memset(&packet2, 0,
sizeof(packet2));
802 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
805 mavlink_msg_brief_feature_decode(last_msg, &packet2);
808 memset(&packet2, 0,
sizeof(packet2));
810 mavlink_msg_brief_feature_decode(last_msg, &packet2);
814 static void mavlink_test_attitude_control(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
816 mavlink_message_t msg;
820 17.0,45.0,73.0,101.0,53,120,187,254,65
823 memset(&packet1, 0,
sizeof(packet1));
826 packet1.
yaw = packet_in.
yaw;
836 memset(&packet2, 0,
sizeof(packet2));
837 mavlink_msg_attitude_control_encode(system_id, component_id, &msg, &packet1);
838 mavlink_msg_attitude_control_decode(&msg, &packet2);
841 memset(&packet2, 0,
sizeof(packet2));
842 mavlink_msg_attitude_control_pack(system_id, component_id, &msg , packet1.
target , packet1.
roll , packet1.
pitch , packet1.
yaw , packet1.
thrust , packet1.
roll_manual , packet1.
pitch_manual , packet1.
yaw_manual , packet1.
thrust_manual );
843 mavlink_msg_attitude_control_decode(&msg, &packet2);
846 memset(&packet2, 0,
sizeof(packet2));
847 mavlink_msg_attitude_control_pack_chan(system_id, component_id,
MAVLINK_COMM_0, &msg , packet1.
target , packet1.
roll , packet1.
pitch , packet1.
yaw , packet1.
thrust , packet1.
roll_manual , packet1.
pitch_manual , packet1.
yaw_manual , packet1.
thrust_manual );
848 mavlink_msg_attitude_control_decode(&msg, &packet2);
851 memset(&packet2, 0,
sizeof(packet2));
853 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
856 mavlink_msg_attitude_control_decode(last_msg, &packet2);
859 memset(&packet2, 0,
sizeof(packet2));
861 mavlink_msg_attitude_control_decode(last_msg, &packet2);
865 static void mavlink_test_detection_stats(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
867 mavlink_message_t msg;
871 963497464,963497672,73.0,963498088,963498296,963498504,963498712,963498920,963499128,963499336,963499544,325.0
874 memset(&packet1, 0,
sizeof(packet1));
886 packet1.
fps = packet_in.
fps;
890 memset(&packet2, 0,
sizeof(packet2));
891 mavlink_msg_detection_stats_encode(system_id, component_id, &msg, &packet1);
892 mavlink_msg_detection_stats_decode(&msg, &packet2);
895 memset(&packet2, 0,
sizeof(packet2));
896 mavlink_msg_detection_stats_pack(system_id, component_id, &msg , packet1.
detections , packet1.
cluster_iters , packet1.
best_score , packet1.
best_lat , packet1.
best_lon , packet1.
best_alt , packet1.
best_detection_id , packet1.
best_cluster_id , packet1.
best_cluster_iter_id , packet1.
images_done , packet1.
images_todo , packet1.
fps );
897 mavlink_msg_detection_stats_decode(&msg, &packet2);
900 memset(&packet2, 0,
sizeof(packet2));
901 mavlink_msg_detection_stats_pack_chan(system_id, component_id,
MAVLINK_COMM_0, &msg , packet1.
detections , packet1.
cluster_iters , packet1.
best_score , packet1.
best_lat , packet1.
best_lon , packet1.
best_alt , packet1.
best_detection_id , packet1.
best_cluster_id , packet1.
best_cluster_iter_id , packet1.
images_done , packet1.
images_todo , packet1.
fps );
902 mavlink_msg_detection_stats_decode(&msg, &packet2);
905 memset(&packet2, 0,
sizeof(packet2));
907 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
910 mavlink_msg_detection_stats_decode(last_msg, &packet2);
913 memset(&packet2, 0,
sizeof(packet2));
914 mavlink_msg_detection_stats_send(
MAVLINK_COMM_1 , packet1.
detections , packet1.
cluster_iters , packet1.
best_score , packet1.
best_lat , packet1.
best_lon , packet1.
best_alt , packet1.
best_detection_id , packet1.
best_cluster_id , packet1.
best_cluster_iter_id , packet1.
images_done , packet1.
images_todo , packet1.
fps );
915 mavlink_msg_detection_stats_decode(last_msg, &packet2);
919 static void mavlink_test_onboard_health(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
921 mavlink_message_t msg;
925 963497464,45.0,73.0,101.0,129.0,157.0,185.0,213.0,18899,235,46,113,180,247
928 memset(&packet1, 0,
sizeof(packet1));
946 memset(&packet2, 0,
sizeof(packet2));
947 mavlink_msg_onboard_health_encode(system_id, component_id, &msg, &packet1);
948 mavlink_msg_onboard_health_decode(&msg, &packet2);
951 memset(&packet2, 0,
sizeof(packet2));
952 mavlink_msg_onboard_health_pack(system_id, component_id, &msg , packet1.
uptime , packet1.
cpu_freq , packet1.
cpu_load , packet1.
ram_usage , packet1.
ram_total , packet1.
swap_usage , packet1.
swap_total , packet1.
disk_health , packet1.
disk_usage , packet1.
disk_total , packet1.
temp , packet1.
voltage , packet1.
network_load_in , packet1.
network_load_out );
953 mavlink_msg_onboard_health_decode(&msg, &packet2);
956 memset(&packet2, 0,
sizeof(packet2));
957 mavlink_msg_onboard_health_pack_chan(system_id, component_id,
MAVLINK_COMM_0, &msg , packet1.
uptime , packet1.
cpu_freq , packet1.
cpu_load , packet1.
ram_usage , packet1.
ram_total , packet1.
swap_usage , packet1.
swap_total , packet1.
disk_health , packet1.
disk_usage , packet1.
disk_total , packet1.
temp , packet1.
voltage , packet1.
network_load_in , packet1.
network_load_out );
958 mavlink_msg_onboard_health_decode(&msg, &packet2);
961 memset(&packet2, 0,
sizeof(packet2));
963 for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
966 mavlink_msg_onboard_health_decode(last_msg, &packet2);
969 memset(&packet2, 0,
sizeof(packet2));
970 mavlink_msg_onboard_health_send(
MAVLINK_COMM_1 , packet1.
uptime , packet1.
cpu_freq , packet1.
cpu_load , packet1.
ram_usage , packet1.
ram_total , packet1.
swap_usage , packet1.
swap_total , packet1.
disk_health , packet1.
disk_usage , packet1.
disk_total , packet1.
temp , packet1.
voltage , packet1.
network_load_in , packet1.
network_load_out );
971 mavlink_msg_onboard_health_decode(last_msg, &packet2);
975 static void mavlink_test_pixhawk(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
977 mavlink_test_set_cam_shutter(system_id, component_id, last_msg);
978 mavlink_test_image_triggered(system_id, component_id, last_msg);
979 mavlink_test_image_trigger_control(system_id, component_id, last_msg);
980 mavlink_test_image_available(system_id, component_id, last_msg);
981 mavlink_test_set_position_control_offset(system_id, component_id, last_msg);
982 mavlink_test_position_control_setpoint(system_id, component_id, last_msg);
983 mavlink_test_marker(system_id, component_id, last_msg);
984 mavlink_test_raw_aux(system_id, component_id, last_msg);
985 mavlink_test_watchdog_heartbeat(system_id, component_id, last_msg);
986 mavlink_test_watchdog_process_info(system_id, component_id, last_msg);
987 mavlink_test_watchdog_process_status(system_id, component_id, last_msg);
988 mavlink_test_watchdog_command(system_id, component_id, last_msg);
989 mavlink_test_pattern_detected(system_id, component_id, last_msg);
990 mavlink_test_point_of_interest(system_id, component_id, last_msg);
991 mavlink_test_point_of_interest_connection(system_id, component_id, last_msg);
992 mavlink_test_brief_feature(system_id, component_id, last_msg);
993 mavlink_test_attitude_control(system_id, component_id, last_msg);
994 mavlink_test_detection_stats(system_id, component_id, last_msg);
995 mavlink_test_onboard_health(system_id, component_id, last_msg);
1000 #endif // __cplusplus
1001 #endif // PIXHAWK_TESTSUITE_H
Definition: mavlink_types.h:180
float pitch
Pitch angle in rad.
Definition: mavlink_msg_image_available.h:16
uint8_t target_component
Component ID.
Definition: mavlink_msg_set_position_control_offset.h:12
Definition: mavlink_msg_raw_aux.h:5
float yaw
yaw orientation
Definition: mavlink_msg_marker.h:12
uint8_t muted
Is muted.
Definition: mavlink_msg_watchdog_process_status.h:12
uint8_t type
0: Notice, 1: Warning, 2: Critical, 3: Emergency, 4: Debug
Definition: mavlink_msg_point_of_interest.h:11
float ground_z
Ground truth Z.
Definition: mavlink_msg_image_available.h:24
float lon
GPS Y coordinate.
Definition: mavlink_msg_image_available.h:20
float x
x position offset
Definition: mavlink_msg_set_position_control_offset.h:7
Definition: mavlink_types.h:179
uint32_t cluster_iters
Number of cluster iterations.
Definition: mavlink_msg_detection_stats.h:8
float ground_x
Ground truth X.
Definition: mavlink_msg_image_available.h:22
float lon
GPS Y coordinate.
Definition: mavlink_msg_image_triggered.h:14
float x
x position
Definition: mavlink_msg_position_control_setpoint.h:7
float pitch
pitch
Definition: mavlink_msg_attitude_control.h:8
uint8_t cpu_load
CPU load in percent.
Definition: mavlink_msg_onboard_health.h:16
float xp1
X1 Position.
Definition: mavlink_msg_point_of_interest_connection.h:7
uint8_t disk_usage
Disk usage in percent.
Definition: mavlink_msg_onboard_health.h:20
uint8_t roll_manual
roll control enabled auto:0, manual:1
Definition: mavlink_msg_attitude_control.h:12
float zp2
Z2 Position.
Definition: mavlink_msg_point_of_interest_connection.h:12
float roll
Roll angle in rad.
Definition: mavlink_msg_image_triggered.h:9
float yaw
yaw
Definition: mavlink_msg_attitude_control.h:9
uint16_t process_id
Process ID.
Definition: mavlink_msg_watchdog_command.h:8
Definition: mavlink_msg_watchdog_process_status.h:5
float disk_total
Disk total in GiB.
Definition: mavlink_msg_onboard_health.h:10
uint8_t channels
Image channels.
Definition: mavlink_msg_image_available.h:29
char arguments[147]
Process arguments.
Definition: mavlink_msg_watchdog_process_info.h:11
uint16_t watchdog_id
Watchdog ID.
Definition: mavlink_msg_watchdog_process_status.h:8
int32_t timeout
Timeout (seconds)
Definition: mavlink_msg_watchdog_process_info.h:7
float yaw
yaw orientation offset in radians, 0 = NORTH
Definition: mavlink_msg_set_position_control_offset.h:10
float local_z
Local frame Z coordinate (height over ground)
Definition: mavlink_msg_image_available.h:18
uint16_t width
Image width.
Definition: mavlink_msg_image_available.h:25
float lat
GPS X coordinate.
Definition: mavlink_msg_image_triggered.h:13
float fps
Average images per seconds processed.
Definition: mavlink_msg_detection_stats.h:18
uint32_t key
Shared memory area key.
Definition: mavlink_msg_image_available.h:12
uint32_t exposure
Exposure time, in microseconds.
Definition: mavlink_msg_image_available.h:13
float temp
Temperature.
Definition: mavlink_msg_onboard_health.h:11
uint16_t watchdog_id
Watchdog ID.
Definition: mavlink_msg_watchdog_heartbeat.h:7
uint16_t process_id
Process ID.
Definition: mavlink_msg_watchdog_process_info.h:9
float xp2
X2 Position.
Definition: mavlink_msg_point_of_interest_connection.h:10
float x
x position in m
Definition: mavlink_msg_brief_feature.h:7
float yp1
Y1 Position.
Definition: mavlink_msg_point_of_interest_connection.h:8
uint32_t seq
IMU seq.
Definition: mavlink_msg_image_triggered.h:8
uint8_t state
Is running / finished / suspended / crashed.
Definition: mavlink_msg_watchdog_process_status.h:11
uint32_t best_cluster_id
Best cluster ID.
Definition: mavlink_msg_detection_stats.h:14
Definition: mavlink_msg_attitude_control.h:5
float network_load_out
Network load outbound in KiB/s.
Definition: mavlink_msg_onboard_health.h:14
float ram_total
RAM size in GiB.
Definition: mavlink_msg_onboard_health.h:8
float yaw
Yaw angle in rad.
Definition: mavlink_msg_image_available.h:17
Definition: mavlink_msg_image_triggered.h:5
float zp1
Z1 Position.
Definition: mavlink_msg_point_of_interest_connection.h:9
uint8_t descriptor[32]
Descriptor.
Definition: mavlink_msg_brief_feature.h:14
uint8_t command_id
Command ID.
Definition: mavlink_msg_watchdog_command.h:10
char name[100]
Process name.
Definition: mavlink_msg_watchdog_process_info.h:10
float lat
GPS X coordinate.
Definition: mavlink_msg_image_available.h:19
uint16_t process_count
Number of processes.
Definition: mavlink_msg_watchdog_heartbeat.h:8
Definition: mavlink_msg_position_control_setpoint.h:5
float z
z position in m
Definition: mavlink_msg_brief_feature.h:9
uint8_t target_system_id
Target system ID.
Definition: mavlink_msg_watchdog_command.h:9
uint8_t swap_usage
Swap usage in percent.
Definition: mavlink_msg_onboard_health.h:18
uint32_t uptime
Uptime of system.
Definition: mavlink_msg_onboard_health.h:7
uint16_t orientation
Orientation.
Definition: mavlink_msg_brief_feature.h:12
Definition: mavlink_msg_detection_stats.h:5
uint8_t ram_usage
RAM usage in percent.
Definition: mavlink_msg_onboard_health.h:17
char file[100]
Pattern file name.
Definition: mavlink_msg_pattern_detected.h:9
uint16_t crashes
Number of crashes.
Definition: mavlink_msg_watchdog_process_status.h:10
uint16_t height
Image height.
Definition: mavlink_msg_image_available.h:26
uint16_t adc1
ADC1 (J405 ADC3, LPC2148 AD0.6)
Definition: mavlink_msg_raw_aux.h:8
float alt
Global frame altitude.
Definition: mavlink_msg_image_available.h:21
float yaw
yaw orientation in radians, 0 = NORTH
Definition: mavlink_msg_position_control_setpoint.h:10
float alt
Global frame altitude.
Definition: mavlink_msg_image_triggered.h:15
uint32_t detections
Number of detections.
Definition: mavlink_msg_detection_stats.h:7
Definition: mavlink_msg_brief_feature.h:5
float gain
Camera gain.
Definition: mavlink_msg_set_cam_shutter.h:7
uint8_t color
0: blue, 1: yellow, 2: red, 3: orange, 4: green, 5: magenta
Definition: mavlink_msg_point_of_interest_connection.h:15
uint8_t orientation_assignment
Orientation assignment 0: false, 1:true.
Definition: mavlink_msg_brief_feature.h:13
float best_score
Best score.
Definition: mavlink_msg_detection_stats.h:9
uint16_t adc4
ADC4 (J405 ADC7, LPC2148 AD1.3)
Definition: mavlink_msg_raw_aux.h:11
float y
y position
Definition: mavlink_msg_position_control_setpoint.h:8
uint16_t adc3
ADC3 (J405 ADC6, LPC2148 AD0.1)
Definition: mavlink_msg_raw_aux.h:10
int16_t temp
Temperature (degrees celcius)
Definition: mavlink_msg_raw_aux.h:13
uint8_t enable
0 to disable, 1 to enable
Definition: mavlink_msg_image_trigger_control.h:7
uint16_t watchdog_id
Watchdog ID.
Definition: mavlink_msg_watchdog_command.h:7
Definition: mavlink_msg_watchdog_process_info.h:5
#define MAVLINK_ASSERT(x)
Definition: protocol.h:26
float thrust
thrust
Definition: mavlink_msg_attitude_control.h:10
#define MAVLINK_MAX_PACKET_LEN
Maximum packet length.
Definition: mavlink_types.h:33
float z
z position
Definition: mavlink_msg_position_control_setpoint.h:9
uint16_t size
Size in pixels.
Definition: mavlink_msg_brief_feature.h:11
float ground_y
Ground truth Y.
Definition: mavlink_msg_image_available.h:23
float x
X Position.
Definition: mavlink_msg_point_of_interest.h:7
uint8_t cam_no
Camera # (starts with 0)
Definition: mavlink_msg_image_available.h:28
uint16_t exposure
Exposure time, in microseconds.
Definition: mavlink_msg_set_cam_shutter.h:9
float yaw
Yaw angle in rad.
Definition: mavlink_msg_image_triggered.h:11
uint32_t img_seq
The image sequence number.
Definition: mavlink_msg_image_available.h:10
float ground_z
Ground truth Z.
Definition: mavlink_msg_image_triggered.h:18
uint8_t coordinate_system
0: global, 1:local
Definition: mavlink_msg_point_of_interest_connection.h:16
int32_t baro
Barometric pressure (hecto Pascal)
Definition: mavlink_msg_raw_aux.h:7
float voltage
Supply voltage V.
Definition: mavlink_msg_onboard_health.h:12
Definition: mavlink_msg_watchdog_command.h:5
float response
Harris operator response at this location.
Definition: mavlink_msg_brief_feature.h:10
int8_t disk_health
Disk health (-1: N/A, 0: ERR, 1: RO, 2: RW)
Definition: mavlink_msg_onboard_health.h:19
uint64_t timestamp
Timestamp.
Definition: mavlink_msg_image_available.h:8
uint8_t detected
Accepted as true detection, 0 no, 1 yes.
Definition: mavlink_msg_pattern_detected.h:10
float z
z position
Definition: mavlink_msg_marker.h:9
float pitch
pitch orientation
Definition: mavlink_msg_marker.h:11
uint8_t trigger_pin
Trigger pin, 0-3 for PtGrey FireFly.
Definition: mavlink_msg_set_cam_shutter.h:12
uint8_t target_system
System ID.
Definition: mavlink_msg_set_position_control_offset.h:11
float y
Y Position.
Definition: mavlink_msg_point_of_interest.h:8
float yp2
Y2 Position.
Definition: mavlink_msg_point_of_interest_connection.h:11
Definition: mavlink_msg_image_available.h:5
uint16_t id
ID of waypoint, 0 for plain position.
Definition: mavlink_msg_position_control_setpoint.h:11
uint16_t cpu_freq
CPU frequency.
Definition: mavlink_msg_onboard_health.h:15
uint16_t process_id
Process ID.
Definition: mavlink_msg_watchdog_process_status.h:9
uint32_t images_todo
Number of images still to process.
Definition: mavlink_msg_detection_stats.h:17
float roll
Roll angle in rad.
Definition: mavlink_msg_image_available.h:15
uint8_t cam_no
Camera id.
Definition: mavlink_msg_set_cam_shutter.h:10
uint16_t id
ID.
Definition: mavlink_msg_marker.h:13
uint8_t type
0: Pattern, 1: Letter
Definition: mavlink_msg_pattern_detected.h:8
float z
Z Position.
Definition: mavlink_msg_point_of_interest.h:9
uint8_t target
The system to be controlled.
Definition: mavlink_msg_attitude_control.h:11
uint32_t best_detection_id
Best detection ID.
Definition: mavlink_msg_detection_stats.h:13
uint16_t timeout
0: no timeout, >1: timeout in seconds
Definition: mavlink_msg_point_of_interest_connection.h:13
Definition: mavlink_msg_image_trigger_control.h:5
uint8_t color
0: blue, 1: yellow, 2: red, 3: orange, 4: green, 5: magenta
Definition: mavlink_msg_point_of_interest.h:12
uint32_t images_done
Number of images already processed.
Definition: mavlink_msg_detection_stats.h:16
uint8_t pitch_manual
pitch auto:0, manual:1
Definition: mavlink_msg_attitude_control.h:13
uint16_t watchdog_id
Watchdog ID.
Definition: mavlink_msg_watchdog_process_info.h:8
uint16_t depth
Image depth.
Definition: mavlink_msg_image_available.h:27
Definition: mavlink_msg_watchdog_heartbeat.h:5
int32_t best_lon
Longitude of the best detection * 1E7.
Definition: mavlink_msg_detection_stats.h:11
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
int32_t best_alt
Altitude of the best detection * 1E3.
Definition: mavlink_msg_detection_stats.h:12
float network_load_in
Network load inbound KiB/s.
Definition: mavlink_msg_onboard_health.h:13
float confidence
Confidence of detection.
Definition: mavlink_msg_pattern_detected.h:7
float z
z position offset
Definition: mavlink_msg_set_position_control_offset.h:9
uint64_t valid_until
Until which timestamp this buffer will stay valid.
Definition: mavlink_msg_image_available.h:9
uint64_t timestamp
Timestamp.
Definition: mavlink_msg_image_triggered.h:7
float y
y position in m
Definition: mavlink_msg_brief_feature.h:8
uint32_t img_buf_index
Position of the image in the buffer, starts with 0.
Definition: mavlink_msg_image_available.h:11
float pitch
Pitch angle in rad.
Definition: mavlink_msg_image_triggered.h:10
int32_t pid
PID.
Definition: mavlink_msg_watchdog_process_status.h:7
float roll
roll orientation
Definition: mavlink_msg_marker.h:10
Definition: mavlink_msg_marker.h:5
uint8_t cam_mode
Camera mode: 0 = auto, 1 = manual.
Definition: mavlink_msg_set_cam_shutter.h:11
float gain
Camera gain.
Definition: mavlink_msg_image_available.h:14
Definition: mavlink_msg_pattern_detected.h:5
float y
y position offset
Definition: mavlink_msg_set_position_control_offset.h:8
Definition: mavlink_msg_set_position_control_offset.h:5
uint8_t yaw_manual
yaw auto:0, manual:1
Definition: mavlink_msg_attitude_control.h:14
uint32_t best_cluster_iter_id
Best cluster ID.
Definition: mavlink_msg_detection_stats.h:15
Definition: mavlink_msg_set_cam_shutter.h:5
uint64_t cam_id
Camera id.
Definition: mavlink_msg_image_available.h:7
uint8_t thrust_manual
thrust auto:0, manual:1
Definition: mavlink_msg_attitude_control.h:15
float ground_y
Ground truth Y.
Definition: mavlink_msg_image_triggered.h:17
uint8_t coordinate_system
0: global, 1:local
Definition: mavlink_msg_point_of_interest.h:13
Definition: mavlink_msg_point_of_interest.h:5
Definition: mavlink_msg_point_of_interest_connection.h:5
char name[26]
POI connection name.
Definition: mavlink_msg_point_of_interest_connection.h:17
uint8_t type
0: Notice, 1: Warning, 2: Critical, 3: Emergency, 4: Debug
Definition: mavlink_msg_point_of_interest_connection.h:14
float x
x position
Definition: mavlink_msg_marker.h:7
float local_z
Local frame Z coordinate (height over ground)
Definition: mavlink_msg_image_triggered.h:12
char name[26]
POI name.
Definition: mavlink_msg_point_of_interest.h:14
int32_t best_lat
Latitude of the best detection * 1E7.
Definition: mavlink_msg_detection_stats.h:10
Definition: mavlink_msg_onboard_health.h:5
uint16_t timeout
0: no timeout, >1: timeout in seconds
Definition: mavlink_msg_point_of_interest.h:10
float ground_x
Ground truth X.
Definition: mavlink_msg_image_triggered.h:16
float roll
roll
Definition: mavlink_msg_attitude_control.h:7
uint16_t vbat
Battery voltage.
Definition: mavlink_msg_raw_aux.h:12
uint16_t adc2
ADC2 (J405 ADC5, LPC2148 AD0.2)
Definition: mavlink_msg_raw_aux.h:9
float swap_total
Swap size in GiB.
Definition: mavlink_msg_onboard_health.h:9
uint16_t interval
Shutter interval, in microseconds.
Definition: mavlink_msg_set_cam_shutter.h:8
float y
y position
Definition: mavlink_msg_marker.h:8