5 #ifndef ROSFLIGHT_TESTSUITE_H 6 #define ROSFLIGHT_TESTSUITE_H 12 #ifndef MAVLINK_TEST_ALL 13 #define MAVLINK_TEST_ALL 17 static void mavlink_test_all(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
24 #include "../common/testsuite.h" 29 mavlink_message_t msg;
33 17.0,45.0,73.0,101.0,53,120
36 memset(&packet1, 0,
sizeof(packet1));
37 packet1.
x = packet_in.
x;
38 packet1.
y = packet_in.
y;
39 packet1.
z = packet_in.
z;
40 packet1.
F = packet_in.
F;
46 memset(&packet2, 0,
sizeof(packet2));
51 memset(&packet2, 0,
sizeof(packet2));
56 memset(&packet2, 0,
sizeof(packet2));
61 memset(&packet2, 0,
sizeof(packet2));
69 memset(&packet2, 0,
sizeof(packet2));
77 mavlink_message_t msg;
81 93372036854775807ULL,73.0,101.0,129.0,157.0,185.0,213.0,241.0
84 memset(&packet1, 0,
sizeof(packet1));
96 memset(&packet2, 0,
sizeof(packet2));
101 memset(&packet2, 0,
sizeof(packet2));
102 mavlink_msg_small_imu_pack(system_id, component_id, &msg , packet1.
time_boot_us , packet1.
xacc , packet1.
yacc , packet1.
zacc , packet1.
xgyro , packet1.
ygyro , packet1.
zgyro , packet1.
temperature );
106 memset(&packet2, 0,
sizeof(packet2));
107 mavlink_msg_small_imu_pack_chan(system_id, component_id,
MAVLINK_COMM_0, &msg , packet1.
time_boot_us , packet1.
xacc , packet1.
yacc , packet1.
zacc , packet1.
xgyro , packet1.
ygyro , packet1.
zgyro , packet1.
temperature );
111 memset(&packet2, 0,
sizeof(packet2));
119 memset(&packet2, 0,
sizeof(packet2));
127 mavlink_message_t msg;
134 memset(&packet1, 0,
sizeof(packet1));
141 memset(&packet2, 0,
sizeof(packet2));
146 memset(&packet2, 0,
sizeof(packet2));
151 memset(&packet2, 0,
sizeof(packet2));
156 memset(&packet2, 0,
sizeof(packet2));
164 memset(&packet2, 0,
sizeof(packet2));
172 mavlink_message_t msg;
179 memset(&packet1, 0,
sizeof(packet1));
186 memset(&packet2, 0,
sizeof(packet2));
191 memset(&packet2, 0,
sizeof(packet2));
196 memset(&packet2, 0,
sizeof(packet2));
201 memset(&packet2, 0,
sizeof(packet2));
209 memset(&packet2, 0,
sizeof(packet2));
217 mavlink_message_t msg;
224 memset(&packet1, 0,
sizeof(packet1));
231 memset(&packet2, 0,
sizeof(packet2));
236 memset(&packet2, 0,
sizeof(packet2));
241 memset(&packet2, 0,
sizeof(packet2));
246 memset(&packet2, 0,
sizeof(packet2));
254 memset(&packet2, 0,
sizeof(packet2));
262 mavlink_message_t msg;
266 93372036854775807ULL,73.0,101.0,129.0,157.0,185.0,213.0,241.0,113
269 memset(&packet1, 0,
sizeof(packet1));
282 memset(&packet2, 0,
sizeof(packet2));
287 memset(&packet2, 0,
sizeof(packet2));
288 mavlink_msg_camera_stamped_small_imu_pack(system_id, component_id, &msg , packet1.
time_boot_us , packet1.
xacc , packet1.
yacc , packet1.
zacc , packet1.
xgyro , packet1.
ygyro , packet1.
zgyro , packet1.
temperature , packet1.
image );
292 memset(&packet2, 0,
sizeof(packet2));
293 mavlink_msg_camera_stamped_small_imu_pack_chan(system_id, component_id,
MAVLINK_COMM_0, &msg , packet1.
time_boot_us , packet1.
xacc , packet1.
yacc , packet1.
zacc , packet1.
xgyro , packet1.
ygyro , packet1.
zgyro , packet1.
temperature , packet1.
image );
297 memset(&packet2, 0,
sizeof(packet2));
305 memset(&packet2, 0,
sizeof(packet2));
313 mavlink_message_t msg;
317 17.0,45.0,73.0,101.0,
"QRSTUVWXY",211,22
320 memset(&packet1, 0,
sizeof(packet1));
321 packet1.
x = packet_in.
x;
322 packet1.
y = packet_in.
y;
323 packet1.
z = packet_in.
z;
324 packet1.
F = packet_in.
F;
331 memset(&packet2, 0,
sizeof(packet2));
336 memset(&packet2, 0,
sizeof(packet2));
341 memset(&packet2, 0,
sizeof(packet2));
342 mavlink_msg_named_command_struct_pack_chan(system_id, component_id,
MAVLINK_COMM_0, &msg , packet1.
name , packet1.
type , packet1.
ignore , packet1.
x , packet1.
y , packet1.
z , packet1.
F );
346 memset(&packet2, 0,
sizeof(packet2));
354 memset(&packet2, 0,
sizeof(packet2));
362 mavlink_message_t msg;
369 memset(&packet1, 0,
sizeof(packet1));
377 memset(&packet2, 0,
sizeof(packet2));
382 memset(&packet2, 0,
sizeof(packet2));
387 memset(&packet2, 0,
sizeof(packet2));
392 memset(&packet2, 0,
sizeof(packet2));
400 memset(&packet2, 0,
sizeof(packet2));
408 mavlink_message_t msg;
415 memset(&packet1, 0,
sizeof(packet1));
420 memset(&packet2, 0,
sizeof(packet2));
425 memset(&packet2, 0,
sizeof(packet2));
430 memset(&packet2, 0,
sizeof(packet2));
435 memset(&packet2, 0,
sizeof(packet2));
443 memset(&packet2, 0,
sizeof(packet2));
451 mavlink_message_t msg;
458 memset(&packet1, 0,
sizeof(packet1));
464 memset(&packet2, 0,
sizeof(packet2));
469 memset(&packet2, 0,
sizeof(packet2));
474 memset(&packet2, 0,
sizeof(packet2));
479 memset(&packet2, 0,
sizeof(packet2));
487 memset(&packet2, 0,
sizeof(packet2));
495 mavlink_message_t msg;
499 93372036854775807ULL,{ 73.0, 74.0, 75.0, 76.0, 77.0, 78.0, 79.0, 80.0, 81.0, 82.0, 83.0, 84.0, 85.0, 86.0 }
502 memset(&packet1, 0,
sizeof(packet1));
508 memset(&packet2, 0,
sizeof(packet2));
513 memset(&packet2, 0,
sizeof(packet2));
518 memset(&packet2, 0,
sizeof(packet2));
523 memset(&packet2, 0,
sizeof(packet2));
531 memset(&packet2, 0,
sizeof(packet2));
539 mavlink_message_t msg;
543 17235,17339,17,84,151,218,29,96
546 memset(&packet1, 0,
sizeof(packet1));
558 memset(&packet2, 0,
sizeof(packet2));
563 memset(&packet2, 0,
sizeof(packet2));
564 mavlink_msg_rosflight_status_pack(system_id, component_id, &msg , packet1.
armed , packet1.
failsafe , packet1.
rc_override , packet1.
offboard , packet1.
error_code , packet1.
control_mode , packet1.
num_errors , packet1.
loop_time_us );
568 memset(&packet2, 0,
sizeof(packet2));
569 mavlink_msg_rosflight_status_pack_chan(system_id, component_id,
MAVLINK_COMM_0, &msg , packet1.
armed , packet1.
failsafe , packet1.
rc_override , packet1.
offboard , packet1.
error_code , packet1.
control_mode , packet1.
num_errors , packet1.
loop_time_us );
573 memset(&packet2, 0,
sizeof(packet2));
581 memset(&packet2, 0,
sizeof(packet2));
589 mavlink_message_t msg;
593 "ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVW" 596 memset(&packet1, 0,
sizeof(packet1));
601 memset(&packet2, 0,
sizeof(packet2));
606 memset(&packet2, 0,
sizeof(packet2));
611 memset(&packet2, 0,
sizeof(packet2));
616 memset(&packet2, 0,
sizeof(packet2));
624 memset(&packet2, 0,
sizeof(packet2));
632 mavlink_message_t msg;
636 { 17.0, 18.0, 19.0, 20.0, 21.0, 22.0, 23.0, 24.0, 25.0, 26.0, 27.0, 28.0, 29.0, 30.0 },{ 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186 }
639 memset(&packet1, 0,
sizeof(packet1));
645 memset(&packet2, 0,
sizeof(packet2));
650 memset(&packet2, 0,
sizeof(packet2));
655 memset(&packet2, 0,
sizeof(packet2));
660 memset(&packet2, 0,
sizeof(packet2));
668 memset(&packet2, 0,
sizeof(packet2));
676 mavlink_message_t msg;
680 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
683 memset(&packet1, 0,
sizeof(packet1));
687 packet1.
qw = packet_in.
qw;
688 packet1.
qx = packet_in.
qx;
689 packet1.
qy = packet_in.
qy;
690 packet1.
qz = packet_in.
qz;
691 packet1.
u = packet_in.
u;
692 packet1.
v = packet_in.
v;
693 packet1.
w = packet_in.
w;
694 packet1.
p = packet_in.
p;
695 packet1.
q = packet_in.
q;
696 packet1.
r = packet_in.
r;
700 memset(&packet2, 0,
sizeof(packet2));
705 memset(&packet2, 0,
sizeof(packet2));
706 mavlink_msg_rosflight_ins_pack(system_id, component_id, &msg , packet1.
pos_north , packet1.
pos_east , packet1.
pos_down , packet1.
qw , packet1.
qx , packet1.
qy , packet1.
qz , packet1.
u , packet1.
v , packet1.
w , packet1.
p , packet1.
q , packet1.
r );
710 memset(&packet2, 0,
sizeof(packet2));
711 mavlink_msg_rosflight_ins_pack_chan(system_id, component_id,
MAVLINK_COMM_0, &msg , packet1.
pos_north , packet1.
pos_east , packet1.
pos_down , packet1.
qw , packet1.
qx , packet1.
qy , packet1.
qz , packet1.
u , packet1.
v , packet1.
w , packet1.
p , packet1.
q , packet1.
r );
715 memset(&packet2, 0,
sizeof(packet2));
723 memset(&packet2, 0,
sizeof(packet2));
724 mavlink_msg_rosflight_ins_send(
MAVLINK_COMM_1 , packet1.
pos_north , packet1.
pos_east , packet1.
pos_down , packet1.
qw , packet1.
qx , packet1.
qy , packet1.
qz , packet1.
u , packet1.
v , packet1.
w , packet1.
p , packet1.
q , packet1.
r );
731 mavlink_message_t msg;
738 memset(&packet1, 0,
sizeof(packet1));
739 packet1.
qw = packet_in.
qw;
740 packet1.
qx = packet_in.
qx;
741 packet1.
qy = packet_in.
qy;
742 packet1.
qz = packet_in.
qz;
746 memset(&packet2, 0,
sizeof(packet2));
751 memset(&packet2, 0,
sizeof(packet2));
756 memset(&packet2, 0,
sizeof(packet2));
761 memset(&packet2, 0,
sizeof(packet2));
769 memset(&packet2, 0,
sizeof(packet2));
777 mavlink_message_t msg;
781 963497464,963497672,963497880,963498088
784 memset(&packet1, 0,
sizeof(packet1));
786 packet1.
pc = packet_in.
pc;
792 memset(&packet2, 0,
sizeof(packet2));
797 memset(&packet2, 0,
sizeof(packet2));
802 memset(&packet2, 0,
sizeof(packet2));
807 memset(&packet2, 0,
sizeof(packet2));
815 memset(&packet2, 0,
sizeof(packet2));
823 mavlink_message_t msg;
827 93372036854775807ULL,93372036854776311ULL,93372036854776815ULL,963498712,963498920,963499128,963499336,963499544,963499752,963499960,963500168,963500376,963500584,963500792,963501000,963501208,963501416,963501624,963501832,963502040,25
830 memset(&packet1, 0,
sizeof(packet1));
835 packet1.
lat = packet_in.
lat;
836 packet1.
lon = packet_in.
lon;
855 memset(&packet2, 0,
sizeof(packet2));
860 memset(&packet2, 0,
sizeof(packet2));
861 mavlink_msg_rosflight_gnss_pack(system_id, component_id, &msg , packet1.
time_of_week , packet1.
fix_type , packet1.
time , packet1.
nanos , packet1.
lat , packet1.
lon , packet1.
height , packet1.
vel_n , packet1.
vel_e , packet1.
vel_d , packet1.
h_acc , packet1.
v_acc , packet1.
ecef_x , packet1.
ecef_y , packet1.
ecef_z , packet1.
p_acc , packet1.
ecef_v_x , packet1.
ecef_v_y , packet1.
ecef_v_z , packet1.
s_acc , packet1.
rosflight_timestamp );
865 memset(&packet2, 0,
sizeof(packet2));
866 mavlink_msg_rosflight_gnss_pack_chan(system_id, component_id,
MAVLINK_COMM_0, &msg , packet1.
time_of_week , packet1.
fix_type , packet1.
time , packet1.
nanos , packet1.
lat , packet1.
lon , packet1.
height , packet1.
vel_n , packet1.
vel_e , packet1.
vel_d , packet1.
h_acc , packet1.
v_acc , packet1.
ecef_x , packet1.
ecef_y , packet1.
ecef_z , packet1.
p_acc , packet1.
ecef_v_x , packet1.
ecef_v_y , packet1.
ecef_v_z , packet1.
s_acc , packet1.
rosflight_timestamp );
870 memset(&packet2, 0,
sizeof(packet2));
878 memset(&packet2, 0,
sizeof(packet2));
879 mavlink_msg_rosflight_gnss_send(
MAVLINK_COMM_1 , packet1.
time_of_week , packet1.
fix_type , packet1.
time , packet1.
nanos , packet1.
lat , packet1.
lon , packet1.
height , packet1.
vel_n , packet1.
vel_e , packet1.
vel_d , packet1.
h_acc , packet1.
v_acc , packet1.
ecef_x , packet1.
ecef_y , packet1.
ecef_z , packet1.
p_acc , packet1.
ecef_v_x , packet1.
ecef_v_y , packet1.
ecef_v_z , packet1.
s_acc , packet1.
rosflight_timestamp );
886 mavlink_message_t msg;
890 93372036854775807ULL,963497880,963498088,963498296,963498504,963498712,963498920,963499128,963499336,963499544,963499752,963499960,963500168,963500376,963500584,963500792,963501000,20979,21083,233,44,111,178,245,56,123,190
893 memset(&packet1, 0,
sizeof(packet1));
898 packet1.
lon = packet_in.
lon;
899 packet1.
lat = packet_in.
lat;
914 packet1.
day = packet_in.
day;
916 packet1.
min = packet_in.
min;
917 packet1.
sec = packet_in.
sec;
924 memset(&packet2, 0,
sizeof(packet2));
929 memset(&packet2, 0,
sizeof(packet2));
930 mavlink_msg_rosflight_gnss_full_pack(system_id, component_id, &msg , packet1.
time_of_week , packet1.
year , packet1.
month , packet1.
day , packet1.
hour , packet1.
min , packet1.
sec , packet1.
valid , packet1.
t_acc , packet1.
nano , packet1.
fix_type , packet1.
num_sat , packet1.
lon , packet1.
lat , packet1.
height , packet1.
height_msl , packet1.
h_acc , packet1.
v_acc , packet1.
vel_n , packet1.
vel_e , packet1.
vel_d , packet1.
g_speed , packet1.
head_mot , packet1.
s_acc , packet1.
head_acc , packet1.
p_dop , packet1.
rosflight_timestamp );
934 memset(&packet2, 0,
sizeof(packet2));
935 mavlink_msg_rosflight_gnss_full_pack_chan(system_id, component_id,
MAVLINK_COMM_0, &msg , packet1.
time_of_week , packet1.
year , packet1.
month , packet1.
day , packet1.
hour , packet1.
min , packet1.
sec , packet1.
valid , packet1.
t_acc , packet1.
nano , packet1.
fix_type , packet1.
num_sat , packet1.
lon , packet1.
lat , packet1.
height , packet1.
height_msl , packet1.
h_acc , packet1.
v_acc , packet1.
vel_n , packet1.
vel_e , packet1.
vel_d , packet1.
g_speed , packet1.
head_mot , packet1.
s_acc , packet1.
head_acc , packet1.
p_dop , packet1.
rosflight_timestamp );
939 memset(&packet2, 0,
sizeof(packet2));
947 memset(&packet2, 0,
sizeof(packet2));
948 mavlink_msg_rosflight_gnss_full_send(
MAVLINK_COMM_1 , packet1.
time_of_week , packet1.
year , packet1.
month , packet1.
day , packet1.
hour , packet1.
min , packet1.
sec , packet1.
valid , packet1.
t_acc , packet1.
nano , packet1.
fix_type , packet1.
num_sat , packet1.
lon , packet1.
lat , packet1.
height , packet1.
height_msl , packet1.
h_acc , packet1.
v_acc , packet1.
vel_n , packet1.
vel_e , packet1.
vel_d , packet1.
g_speed , packet1.
head_mot , packet1.
s_acc , packet1.
head_acc , packet1.
p_dop , packet1.
rosflight_timestamp );
955 mavlink_message_t msg;
962 memset(&packet1, 0,
sizeof(packet1));
968 memset(&packet2, 0,
sizeof(packet2));
973 memset(&packet2, 0,
sizeof(packet2));
978 memset(&packet2, 0,
sizeof(packet2));
983 memset(&packet2, 0,
sizeof(packet2));
991 memset(&packet2, 0,
sizeof(packet2));
999 mavlink_message_t msg;
1006 memset(&packet1, 0,
sizeof(packet1));
1011 memset(&packet2, 0,
sizeof(packet2));
1014 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1016 memset(&packet2, 0,
sizeof(packet2));
1019 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1021 memset(&packet2, 0,
sizeof(packet2));
1024 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1026 memset(&packet2, 0,
sizeof(packet2));
1032 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1034 memset(&packet2, 0,
sizeof(packet2));
1037 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1042 mavlink_message_t msg;
1049 memset(&packet1, 0,
sizeof(packet1));
1055 memset(&packet2, 0,
sizeof(packet2));
1058 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1060 memset(&packet2, 0,
sizeof(packet2));
1063 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1065 memset(&packet2, 0,
sizeof(packet2));
1068 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1070 memset(&packet2, 0,
sizeof(packet2));
1076 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1078 memset(&packet2, 0,
sizeof(packet2));
1081 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1086 mavlink_message_t msg;
1090 5,72,{ 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158 },199
1093 memset(&packet1, 0,
sizeof(packet1));
1101 memset(&packet2, 0,
sizeof(packet2));
1104 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1106 memset(&packet2, 0,
sizeof(packet2));
1109 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1111 memset(&packet2, 0,
sizeof(packet2));
1114 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1116 memset(&packet2, 0,
sizeof(packet2));
1122 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1124 memset(&packet2, 0,
sizeof(packet2));
1127 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1132 mavlink_message_t msg;
1136 5,72,{ 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158 }
1139 memset(&packet1, 0,
sizeof(packet1));
1146 memset(&packet2, 0,
sizeof(packet2));
1149 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1151 memset(&packet2, 0,
sizeof(packet2));
1154 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1156 memset(&packet2, 0,
sizeof(packet2));
1159 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1161 memset(&packet2, 0,
sizeof(packet2));
1167 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1169 memset(&packet2, 0,
sizeof(packet2));
1172 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1177 mavlink_message_t msg;
1181 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 }
1184 memset(&packet1, 0,
sizeof(packet1));
1192 memset(&packet2, 0,
sizeof(packet2));
1195 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1197 memset(&packet2, 0,
sizeof(packet2));
1200 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1202 memset(&packet2, 0,
sizeof(packet2));
1205 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1207 memset(&packet2, 0,
sizeof(packet2));
1213 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1215 memset(&packet2, 0,
sizeof(packet2));
1218 MAVLINK_ASSERT(memcmp(&packet1, &packet2,
sizeof(packet1)) == 0);
1252 #endif // __cplusplus 1253 #endif // ROSFLIGHT_TESTSUITE_H
static void mavlink_test_rosflight_status(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
static uint16_t mavlink_msg_rosflight_cmd_ack_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t *msg, uint8_t command, uint8_t success)
Pack a rosflight_cmd_ack message on a channel.
static uint16_t mavlink_msg_offboard_control_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t *msg, uint8_t mode, uint8_t ignore, float x, float y, float z, float F)
Pack a offboard_control message.
static void mavlink_test_rosflight_cmd_ack(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
static uint16_t mavlink_msg_offboard_control_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t *msg, const mavlink_offboard_control_t *offboard_control)
Encode a offboard_control struct.
static uint16_t mavlink_msg_rosflight_config_info_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t *msg, uint8_t device, uint8_t config, const uint8_t *name)
Pack a rosflight_config_info message on a channel.
static uint16_t mavlink_msg_rosflight_config_request_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t *msg, uint8_t device)
Pack a rosflight_config_request message on a channel.
static void mavlink_msg_small_range_decode(const mavlink_message_t *msg, mavlink_small_range_t *small_range)
Decode a small_range message into a struct.
static void mavlink_test_small_baro(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
static uint16_t mavlink_msg_rosflight_config_status_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t *msg, uint8_t device, uint8_t success, uint8_t reboot_required, const uint8_t *error_message)
Pack a rosflight_config_status message on a channel.
static uint16_t mavlink_msg_small_imu_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t *msg, uint64_t time_boot_us, float xacc, float yacc, float zacc, float xgyro, float ygyro, float zgyro, float temperature)
Pack a small_imu message on a channel.
static uint16_t mavlink_msg_rosflight_output_raw_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t *msg, uint64_t stamp, const float *values)
Pack a rosflight_output_raw message on a channel.
static void mavlink_msg_small_baro_decode(const mavlink_message_t *msg, mavlink_small_baro_t *small_baro)
Decode a small_baro message into a struct.
static uint16_t mavlink_msg_rosflight_device_info_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t *msg, uint8_t device, uint8_t max_config, const uint8_t *name, uint8_t num_devices)
Pack a rosflight_device_info message on a channel.
static uint16_t mavlink_msg_rosflight_gnss_full_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t *msg, uint32_t time_of_week, uint16_t year, uint8_t month, uint8_t day, uint8_t hour, uint8_t min, uint8_t sec, uint8_t valid, uint32_t t_acc, int32_t nano, uint8_t fix_type, uint8_t num_sat, int32_t lon, int32_t lat, int32_t height, int32_t height_msl, uint32_t h_acc, uint32_t v_acc, int32_t vel_n, int32_t vel_e, int32_t vel_d, int32_t g_speed, int32_t head_mot, uint32_t s_acc, uint32_t head_acc, uint16_t p_dop, uint64_t rosflight_timestamp)
Pack a rosflight_gnss_full message on a channel.
static uint16_t mavlink_msg_small_range_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t *msg, uint8_t type, float range, float max_range, float min_range)
Pack a small_range message.
static uint16_t mavlink_msg_get_send_buffer_length(const mavlink_message_t *msg)
Get the required buffer size for this message.
static void mavlink_test_rosflight_config_info(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
static uint16_t mavlink_msg_rosflight_gnss_full_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t *msg, const mavlink_rosflight_gnss_full_t *rosflight_gnss_full)
Encode a rosflight_gnss_full struct.
static void mavlink_msg_rosflight_cmd_ack_decode(const mavlink_message_t *msg, mavlink_rosflight_cmd_ack_t *rosflight_cmd_ack)
Decode a rosflight_cmd_ack message into a struct.
static uint16_t mavlink_msg_small_mag_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t *msg, float xmag, float ymag, float zmag)
Pack a small_mag message on a channel.
static void mavlink_test_rosflight(uint8_t, uint8_t, mavlink_message_t *last_msg)
static void mavlink_msg_rosflight_hard_error_decode(const mavlink_message_t *msg, mavlink_rosflight_hard_error_t *rosflight_hard_error)
Decode a rosflight_hard_error message into a struct.
static uint16_t mavlink_msg_rosflight_aux_cmd_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t *msg, const mavlink_rosflight_aux_cmd_t *rosflight_aux_cmd)
Encode a rosflight_aux_cmd struct.
static uint16_t mavlink_msg_rosflight_battery_status_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t *msg, float battery_voltage, float battery_current)
Pack a rosflight_battery_status message on a channel.
static void mavlink_test_external_attitude(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
static uint16_t mavlink_msg_rosflight_config_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t *msg, const mavlink_rosflight_config_t *rosflight_config)
Encode a rosflight_config struct.
static uint16_t mavlink_msg_external_attitude_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t *msg, const mavlink_external_attitude_t *external_attitude)
Encode a external_attitude struct.
static void mavlink_msg_small_imu_decode(const mavlink_message_t *msg, mavlink_small_imu_t *small_imu)
Decode a small_imu message into a struct.
static uint16_t mavlink_msg_rosflight_cmd_ack_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t *msg, const mavlink_rosflight_cmd_ack_t *rosflight_cmd_ack)
Encode a rosflight_cmd_ack struct.
static void mavlink_msg_small_mag_decode(const mavlink_message_t *msg, mavlink_small_mag_t *small_mag)
Decode a small_mag message into a struct.
static void mavlink_test_rosflight_output_raw(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
static void mavlink_msg_diff_pressure_decode(const mavlink_message_t *msg, mavlink_diff_pressure_t *diff_pressure)
Decode a diff_pressure message into a struct.
static void mavlink_msg_rosflight_device_info_decode(const mavlink_message_t *msg, mavlink_rosflight_device_info_t *rosflight_device_info)
Decode a rosflight_device_info message into a struct.
static uint16_t mavlink_msg_rosflight_config_info_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t *msg, uint8_t device, uint8_t config, const uint8_t *name)
Pack a rosflight_config_info message.
static void mavlink_msg_rosflight_config_request_decode(const mavlink_message_t *msg, mavlink_rosflight_config_request_t *rosflight_config_request)
Decode a rosflight_config_request message into a struct.
static uint8_t buffer[BMP280_DATA_FRAME_SIZE]
static uint16_t mavlink_msg_rosflight_output_raw_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t *msg, const mavlink_rosflight_output_raw_t *rosflight_output_raw)
Encode a rosflight_output_raw struct.
static uint16_t mavlink_msg_rosflight_gnss_full_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t *msg, uint32_t time_of_week, uint16_t year, uint8_t month, uint8_t day, uint8_t hour, uint8_t min, uint8_t sec, uint8_t valid, uint32_t t_acc, int32_t nano, uint8_t fix_type, uint8_t num_sat, int32_t lon, int32_t lat, int32_t height, int32_t height_msl, uint32_t h_acc, uint32_t v_acc, int32_t vel_n, int32_t vel_e, int32_t vel_d, int32_t g_speed, int32_t head_mot, uint32_t s_acc, uint32_t head_acc, uint16_t p_dop, uint64_t rosflight_timestamp)
Pack a rosflight_gnss_full message.
uint64_t rosflight_timestamp
static uint16_t mavlink_msg_small_baro_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t *msg, float altitude, float pressure, float temperature)
Pack a small_baro message.
static uint16_t mavlink_msg_external_attitude_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t *msg, float qw, float qx, float qy, float qz)
Pack a external_attitude message.
static void mavlink_msg_rosflight_config_status_decode(const mavlink_message_t *msg, mavlink_rosflight_config_status_t *rosflight_config_status)
Decode a rosflight_config_status message into a struct.
static uint16_t mavlink_msg_diff_pressure_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t *msg, float velocity, float diff_pressure, float temperature)
Pack a diff_pressure message.
static void mavlink_test_rosflight_config_status(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
static void mavlink_test_camera_stamped_small_imu(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
static uint16_t mavlink_msg_rosflight_status_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t *msg, uint8_t armed, uint8_t failsafe, uint8_t rc_override, uint8_t offboard, uint8_t error_code, uint8_t control_mode, int16_t num_errors, int16_t loop_time_us)
Pack a rosflight_status message on a channel.
static uint16_t mavlink_msg_rosflight_device_info_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t *msg, const mavlink_rosflight_device_info_t *rosflight_device_info)
Encode a rosflight_device_info struct.
static void mavlink_test_common(uint8_t, uint8_t, mavlink_message_t *last_msg)
static uint16_t mavlink_msg_rosflight_version_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t *msg, const char *version)
Pack a rosflight_version message.
static void mavlink_msg_rosflight_version_decode(const mavlink_message_t *msg, mavlink_rosflight_version_t *rosflight_version)
Decode a rosflight_version message into a struct.
static void mavlink_msg_rosflight_battery_status_decode(const mavlink_message_t *msg, mavlink_rosflight_battery_status_t *rosflight_battery_status)
Decode a rosflight_battery_status message into a struct.
static uint16_t mavlink_msg_small_mag_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t *msg, const mavlink_small_mag_t *small_mag)
Encode a small_mag struct.
static void mavlink_msg_rosflight_config_decode(const mavlink_message_t *msg, mavlink_rosflight_config_t *rosflight_config)
Decode a rosflight_config message into a struct.
static uint16_t mavlink_msg_rosflight_ins_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t *msg, float pos_north, float pos_east, float pos_down, float qw, float qx, float qy, float qz, float u, float v, float w, float p, float q, float r)
Pack a rosflight_ins message on a channel.
static void mavlink_msg_rosflight_status_decode(const mavlink_message_t *msg, mavlink_rosflight_status_t *rosflight_status)
Decode a rosflight_status message into a struct.
static void mavlink_test_rosflight_config(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
static void mavlink_test_small_imu(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
static uint16_t mavlink_msg_rosflight_gnss_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t *msg, const mavlink_rosflight_gnss_t *rosflight_gnss)
Encode a rosflight_gnss struct.
static uint16_t mavlink_msg_rosflight_battery_status_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t *msg, float battery_voltage, float battery_current)
Pack a rosflight_battery_status message.
static uint16_t mavlink_msg_rosflight_config_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t *msg, uint8_t device, uint8_t config)
Pack a rosflight_config message on a channel.
static uint16_t mavlink_msg_rosflight_hard_error_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t *msg, uint32_t error_code, uint32_t pc, uint32_t reset_count, uint32_t doRearm)
Pack a rosflight_hard_error message on a channel.
static uint16_t mavlink_msg_small_imu_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t *msg, const mavlink_small_imu_t *small_imu)
Encode a small_imu struct.
static uint16_t mavlink_msg_small_mag_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t *msg, float xmag, float ymag, float zmag)
Pack a small_mag message.
#define MAVLINK_ASSERT(x)
static uint16_t mavlink_msg_camera_stamped_small_imu_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t *msg, const mavlink_camera_stamped_small_imu_t *camera_stamped_small_imu)
Encode a camera_stamped_small_imu struct.
static uint16_t mavlink_msg_rosflight_aux_cmd_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t *msg, const uint8_t *type_array, const float *aux_cmd_array)
Pack a rosflight_aux_cmd message on a channel.
static void mavlink_test_rosflight_gnss(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
static void mavlink_msg_rosflight_gnss_decode(const mavlink_message_t *msg, mavlink_rosflight_gnss_t *rosflight_gnss)
Decode a rosflight_gnss message into a struct.
static void mavlink_msg_rosflight_gnss_full_decode(const mavlink_message_t *msg, mavlink_rosflight_gnss_full_t *rosflight_gnss_full)
Decode a rosflight_gnss_full message into a struct.
static uint16_t mavlink_msg_rosflight_config_info_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t *msg, const mavlink_rosflight_config_info_t *rosflight_config_info)
Encode a rosflight_config_info struct.
static void mavlink_msg_rosflight_aux_cmd_decode(const mavlink_message_t *msg, mavlink_rosflight_aux_cmd_t *rosflight_aux_cmd)
Decode a rosflight_aux_cmd message into a struct.
#define MAVLINK_MAX_PACKET_LEN
Maximum packet length.
static uint16_t mavlink_msg_rosflight_cmd_ack_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t *msg, uint8_t command, uint8_t success)
Pack a rosflight_cmd_ack message.
static uint16_t mavlink_msg_offboard_control_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t *msg, uint8_t mode, uint8_t ignore, float x, float y, float z, float F)
Pack a offboard_control message on a channel.
static void mavlink_test_rosflight_gnss_full(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
static uint16_t mavlink_msg_named_command_struct_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t *msg, const char *name, uint8_t type, uint8_t ignore, float x, float y, float z, float F)
Pack a named_command_struct message.
static uint16_t mavlink_msg_rosflight_config_status_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t *msg, uint8_t device, uint8_t success, uint8_t reboot_required, const uint8_t *error_message)
Pack a rosflight_config_status message.
static uint16_t mavlink_msg_rosflight_config_status_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t *msg, const mavlink_rosflight_config_status_t *rosflight_config_status)
Encode a rosflight_config_status struct.
static uint16_t mavlink_msg_rosflight_version_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t *msg, const char *version)
Pack a rosflight_version message on a channel.
static uint16_t mavlink_msg_rosflight_cmd_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t *msg, uint8_t command)
Pack a rosflight_cmd message.
static uint16_t mavlink_msg_external_attitude_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t *msg, float qw, float qx, float qy, float qz)
Pack a external_attitude message on a channel.
static void mavlink_test_small_range(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
static uint16_t mavlink_msg_diff_pressure_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t *msg, const mavlink_diff_pressure_t *diff_pressure)
Encode a diff_pressure struct.
static uint16_t mavlink_msg_rosflight_config_request_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t *msg, const mavlink_rosflight_config_request_t *rosflight_config_request)
Encode a rosflight_config_request struct.
static void mavlink_test_rosflight_version(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
static void mavlink_test_rosflight_battery_status(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
static void mavlink_msg_named_command_struct_decode(const mavlink_message_t *msg, mavlink_named_command_struct_t *named_command_struct)
Decode a named_command_struct message into a struct.
static uint16_t mavlink_msg_rosflight_config_request_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t *msg, uint8_t device)
Pack a rosflight_config_request message.
static uint16_t mavlink_msg_rosflight_status_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t *msg, uint8_t armed, uint8_t failsafe, uint8_t rc_override, uint8_t offboard, uint8_t error_code, uint8_t control_mode, int16_t num_errors, int16_t loop_time_us)
Pack a rosflight_status message.
static uint16_t mavlink_msg_rosflight_device_info_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t *msg, uint8_t device, uint8_t max_config, const uint8_t *name, uint8_t num_devices)
Pack a rosflight_device_info message.
static uint16_t mavlink_msg_rosflight_config_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t *msg, uint8_t device, uint8_t config)
Pack a rosflight_config message.
static uint16_t mavlink_msg_rosflight_version_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t *msg, const mavlink_rosflight_version_t *rosflight_version)
Encode a rosflight_version struct.
static void mavlink_test_offboard_control(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
static uint16_t mavlink_msg_rosflight_cmd_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t *msg, uint8_t command)
Pack a rosflight_cmd message on a channel.
static uint16_t mavlink_msg_rosflight_ins_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t *msg, const mavlink_rosflight_ins_t *rosflight_ins)
Encode a rosflight_ins struct.
static uint16_t mavlink_msg_rosflight_gnss_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t *msg, uint32_t time_of_week, uint8_t fix_type, uint64_t time, uint64_t nanos, int32_t lat, int32_t lon, int32_t height, int32_t vel_n, int32_t vel_e, int32_t vel_d, uint32_t h_acc, uint32_t v_acc, int32_t ecef_x, int32_t ecef_y, int32_t ecef_z, uint32_t p_acc, int32_t ecef_v_x, int32_t ecef_v_y, int32_t ecef_v_z, uint32_t s_acc, uint64_t rosflight_timestamp)
Pack a rosflight_gnss message on a channel.
static void mavlink_msg_camera_stamped_small_imu_decode(const mavlink_message_t *msg, mavlink_camera_stamped_small_imu_t *camera_stamped_small_imu)
Decode a camera_stamped_small_imu message into a struct.
static void mavlink_msg_rosflight_config_info_decode(const mavlink_message_t *msg, mavlink_rosflight_config_info_t *rosflight_config_info)
Decode a rosflight_config_info message into a struct.
static uint16_t mavlink_msg_diff_pressure_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t *msg, float velocity, float diff_pressure, float temperature)
Pack a diff_pressure message on a channel.
static void mav_array_memcpy(void *dest, const void *src, size_t n)
static uint16_t mavlink_msg_rosflight_aux_cmd_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t *msg, const uint8_t *type_array, const float *aux_cmd_array)
Pack a rosflight_aux_cmd message.
static void mavlink_test_rosflight_hard_error(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
static uint16_t mavlink_msg_named_command_struct_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t *msg, const char *name, uint8_t type, uint8_t ignore, float x, float y, float z, float F)
Pack a named_command_struct message on a channel.
static uint16_t mavlink_msg_small_imu_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t *msg, uint64_t time_boot_us, float xacc, float yacc, float zacc, float xgyro, float ygyro, float zgyro, float temperature)
Pack a small_imu message.
static uint16_t mavlink_msg_small_range_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t *msg, uint8_t type, float range, float max_range, float min_range)
Pack a small_range message on a channel.
static void mavlink_msg_rosflight_cmd_decode(const mavlink_message_t *msg, mavlink_rosflight_cmd_t *rosflight_cmd)
Decode a rosflight_cmd message into a struct.
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.
static void mavlink_test_all(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
static void mavlink_msg_external_attitude_decode(const mavlink_message_t *msg, mavlink_external_attitude_t *external_attitude)
Decode a external_attitude message into a struct.
static void mavlink_test_rosflight_cmd(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
static uint16_t mavlink_msg_small_baro_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t *msg, float altitude, float pressure, float temperature)
Pack a small_baro message on a channel.
static uint16_t mavlink_msg_rosflight_cmd_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t *msg, const mavlink_rosflight_cmd_t *rosflight_cmd)
Encode a rosflight_cmd struct.
static uint16_t mavlink_msg_rosflight_ins_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t *msg, float pos_north, float pos_east, float pos_down, float qw, float qx, float qy, float qz, float u, float v, float w, float p, float q, float r)
Pack a rosflight_ins message.
static uint16_t mavlink_msg_rosflight_output_raw_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t *msg, uint64_t stamp, const float *values)
Pack a rosflight_output_raw message.
uint8_t error_message[50]
static void mavlink_test_diff_pressure(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
static void mavlink_test_rosflight_aux_cmd(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
static void mavlink_msg_rosflight_output_raw_decode(const mavlink_message_t *msg, mavlink_rosflight_output_raw_t *rosflight_output_raw)
Decode a rosflight_output_raw message into a struct.
static uint16_t mavlink_msg_rosflight_hard_error_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t *msg, uint32_t error_code, uint32_t pc, uint32_t reset_count, uint32_t doRearm)
Pack a rosflight_hard_error message.
static uint16_t mavlink_msg_small_range_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t *msg, const mavlink_small_range_t *small_range)
Encode a small_range struct.
static void mavlink_msg_offboard_control_decode(const mavlink_message_t *msg, mavlink_offboard_control_t *offboard_control)
Decode a offboard_control message into a struct.
uint64_t rosflight_timestamp
static void mavlink_test_rosflight_device_info(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
static uint16_t mavlink_msg_named_command_struct_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t *msg, const mavlink_named_command_struct_t *named_command_struct)
Encode a named_command_struct struct.
static void mavlink_msg_rosflight_ins_decode(const mavlink_message_t *msg, mavlink_rosflight_ins_t *rosflight_ins)
Decode a rosflight_ins message into a struct.
static uint16_t mavlink_msg_small_baro_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t *msg, const mavlink_small_baro_t *small_baro)
Encode a small_baro struct.
static void mavlink_test_small_mag(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
static uint16_t mavlink_msg_camera_stamped_small_imu_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t *msg, uint64_t time_boot_us, float xacc, float yacc, float zacc, float xgyro, float ygyro, float zgyro, float temperature, uint8_t image)
Pack a camera_stamped_small_imu message.
static void mavlink_test_rosflight_ins(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
static void mavlink_test_named_command_struct(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
static uint16_t mavlink_msg_camera_stamped_small_imu_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t *msg, uint64_t time_boot_us, float xacc, float yacc, float zacc, float xgyro, float ygyro, float zgyro, float temperature, uint8_t image)
Pack a camera_stamped_small_imu message on a channel.
static uint16_t mavlink_msg_rosflight_battery_status_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t *msg, const mavlink_rosflight_battery_status_t *rosflight_battery_status)
Encode a rosflight_battery_status struct.
static uint16_t mavlink_msg_rosflight_status_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t *msg, const mavlink_rosflight_status_t *rosflight_status)
Encode a rosflight_status struct.
static void mavlink_test_rosflight_config_request(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
static uint16_t mavlink_msg_rosflight_gnss_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t *msg, uint32_t time_of_week, uint8_t fix_type, uint64_t time, uint64_t nanos, int32_t lat, int32_t lon, int32_t height, int32_t vel_n, int32_t vel_e, int32_t vel_d, uint32_t h_acc, uint32_t v_acc, int32_t ecef_x, int32_t ecef_y, int32_t ecef_z, uint32_t p_acc, int32_t ecef_v_x, int32_t ecef_v_y, int32_t ecef_v_z, uint32_t s_acc, uint64_t rosflight_timestamp)
Pack a rosflight_gnss message.
static uint16_t mavlink_msg_rosflight_hard_error_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t *msg, const mavlink_rosflight_hard_error_t *rosflight_hard_error)
Encode a rosflight_hard_error struct.