Commit 3acd62d9 authored by PX4BuildBot's avatar PX4BuildBot

autogenerated headers for rev...

autogenerated headers for rev https://github.com/mavlink/mavlink/tree/43c569c30e7fefe39dad1809ec9e6731132b525b
parent 8aa96555
...@@ -46,7 +46,12 @@ static void mavlink_test_sens_power(uint8_t system_id, uint8_t component_id, mav ...@@ -46,7 +46,12 @@ static void mavlink_test_sens_power(uint8_t system_id, uint8_t component_id, mav
packet1.adc121_cs2_amp = packet_in.adc121_cs2_amp; packet1.adc121_cs2_amp = packet_in.adc121_cs2_amp;
#ifdef MAVLINK_STATUS_FLAG_OUT_MAVLINK1
if (status->flags & MAVLINK_STATUS_FLAG_OUT_MAVLINK1) {
// cope with extensions
memset(MAVLINK_MSG_ID_SENS_POWER_MIN_LEN + (char *)&packet1, 0, sizeof(packet1)-MAVLINK_MSG_ID_SENS_POWER_MIN_LEN);
}
#endif
memset(&packet2, 0, sizeof(packet2)); memset(&packet2, 0, sizeof(packet2));
mavlink_msg_sens_power_encode(system_id, component_id, &msg, &packet1); mavlink_msg_sens_power_encode(system_id, component_id, &msg, &packet1);
mavlink_msg_sens_power_decode(&msg, &packet2); mavlink_msg_sens_power_decode(&msg, &packet2);
...@@ -107,7 +112,12 @@ static void mavlink_test_sens_mppt(uint8_t system_id, uint8_t component_id, mavl ...@@ -107,7 +112,12 @@ static void mavlink_test_sens_mppt(uint8_t system_id, uint8_t component_id, mavl
packet1.mppt3_status = packet_in.mppt3_status; packet1.mppt3_status = packet_in.mppt3_status;
#ifdef MAVLINK_STATUS_FLAG_OUT_MAVLINK1
if (status->flags & MAVLINK_STATUS_FLAG_OUT_MAVLINK1) {
// cope with extensions
memset(MAVLINK_MSG_ID_SENS_MPPT_MIN_LEN + (char *)&packet1, 0, sizeof(packet1)-MAVLINK_MSG_ID_SENS_MPPT_MIN_LEN);
}
#endif
memset(&packet2, 0, sizeof(packet2)); memset(&packet2, 0, sizeof(packet2));
mavlink_msg_sens_mppt_encode(system_id, component_id, &msg, &packet1); mavlink_msg_sens_mppt_encode(system_id, component_id, &msg, &packet1);
mavlink_msg_sens_mppt_decode(&msg, &packet2); mavlink_msg_sens_mppt_decode(&msg, &packet2);
...@@ -180,7 +190,12 @@ static void mavlink_test_aslctrl_data(uint8_t system_id, uint8_t component_id, m ...@@ -180,7 +190,12 @@ static void mavlink_test_aslctrl_data(uint8_t system_id, uint8_t component_id, m
packet1.SpoilersEngaged = packet_in.SpoilersEngaged; packet1.SpoilersEngaged = packet_in.SpoilersEngaged;
#ifdef MAVLINK_STATUS_FLAG_OUT_MAVLINK1
if (status->flags & MAVLINK_STATUS_FLAG_OUT_MAVLINK1) {
// cope with extensions
memset(MAVLINK_MSG_ID_ASLCTRL_DATA_MIN_LEN + (char *)&packet1, 0, sizeof(packet1)-MAVLINK_MSG_ID_ASLCTRL_DATA_MIN_LEN);
}
#endif
memset(&packet2, 0, sizeof(packet2)); memset(&packet2, 0, sizeof(packet2));
mavlink_msg_aslctrl_data_encode(system_id, component_id, &msg, &packet1); mavlink_msg_aslctrl_data_encode(system_id, component_id, &msg, &packet1);
mavlink_msg_aslctrl_data_decode(&msg, &packet2); mavlink_msg_aslctrl_data_decode(&msg, &packet2);
...@@ -239,7 +254,12 @@ static void mavlink_test_aslctrl_debug(uint8_t system_id, uint8_t component_id, ...@@ -239,7 +254,12 @@ static void mavlink_test_aslctrl_debug(uint8_t system_id, uint8_t component_id,
packet1.i8_2 = packet_in.i8_2; packet1.i8_2 = packet_in.i8_2;
#ifdef MAVLINK_STATUS_FLAG_OUT_MAVLINK1
if (status->flags & MAVLINK_STATUS_FLAG_OUT_MAVLINK1) {
// cope with extensions
memset(MAVLINK_MSG_ID_ASLCTRL_DEBUG_MIN_LEN + (char *)&packet1, 0, sizeof(packet1)-MAVLINK_MSG_ID_ASLCTRL_DEBUG_MIN_LEN);
}
#endif
memset(&packet2, 0, sizeof(packet2)); memset(&packet2, 0, sizeof(packet2));
mavlink_msg_aslctrl_debug_encode(system_id, component_id, &msg, &packet1); mavlink_msg_aslctrl_debug_encode(system_id, component_id, &msg, &packet1);
mavlink_msg_aslctrl_debug_decode(&msg, &packet2); mavlink_msg_aslctrl_debug_decode(&msg, &packet2);
...@@ -291,7 +311,12 @@ static void mavlink_test_asluav_status(uint8_t system_id, uint8_t component_id, ...@@ -291,7 +311,12 @@ static void mavlink_test_asluav_status(uint8_t system_id, uint8_t component_id,
mav_array_memcpy(packet1.Servo_status, packet_in.Servo_status, sizeof(uint8_t)*8); mav_array_memcpy(packet1.Servo_status, packet_in.Servo_status, sizeof(uint8_t)*8);
#ifdef MAVLINK_STATUS_FLAG_OUT_MAVLINK1
if (status->flags & MAVLINK_STATUS_FLAG_OUT_MAVLINK1) {
// cope with extensions
memset(MAVLINK_MSG_ID_ASLUAV_STATUS_MIN_LEN + (char *)&packet1, 0, sizeof(packet1)-MAVLINK_MSG_ID_ASLUAV_STATUS_MIN_LEN);
}
#endif
memset(&packet2, 0, sizeof(packet2)); memset(&packet2, 0, sizeof(packet2));
mavlink_msg_asluav_status_encode(system_id, component_id, &msg, &packet1); mavlink_msg_asluav_status_encode(system_id, component_id, &msg, &packet1);
mavlink_msg_asluav_status_decode(&msg, &packet2); mavlink_msg_asluav_status_decode(&msg, &packet2);
...@@ -346,7 +371,12 @@ static void mavlink_test_ekf_ext(uint8_t system_id, uint8_t component_id, mavlin ...@@ -346,7 +371,12 @@ static void mavlink_test_ekf_ext(uint8_t system_id, uint8_t component_id, mavlin
packet1.alpha = packet_in.alpha; packet1.alpha = packet_in.alpha;
#ifdef MAVLINK_STATUS_FLAG_OUT_MAVLINK1
if (status->flags & MAVLINK_STATUS_FLAG_OUT_MAVLINK1) {
// cope with extensions
memset(MAVLINK_MSG_ID_EKF_EXT_MIN_LEN + (char *)&packet1, 0, sizeof(packet1)-MAVLINK_MSG_ID_EKF_EXT_MIN_LEN);
}
#endif
memset(&packet2, 0, sizeof(packet2)); memset(&packet2, 0, sizeof(packet2));
mavlink_msg_ekf_ext_encode(system_id, component_id, &msg, &packet1); mavlink_msg_ekf_ext_encode(system_id, component_id, &msg, &packet1);
mavlink_msg_ekf_ext_decode(&msg, &packet2); mavlink_msg_ekf_ext_decode(&msg, &packet2);
...@@ -402,7 +432,12 @@ static void mavlink_test_asl_obctrl(uint8_t system_id, uint8_t component_id, mav ...@@ -402,7 +432,12 @@ static void mavlink_test_asl_obctrl(uint8_t system_id, uint8_t component_id, mav
packet1.obctrl_status = packet_in.obctrl_status; packet1.obctrl_status = packet_in.obctrl_status;
#ifdef MAVLINK_STATUS_FLAG_OUT_MAVLINK1
if (status->flags & MAVLINK_STATUS_FLAG_OUT_MAVLINK1) {
// cope with extensions
memset(MAVLINK_MSG_ID_ASL_OBCTRL_MIN_LEN + (char *)&packet1, 0, sizeof(packet1)-MAVLINK_MSG_ID_ASL_OBCTRL_MIN_LEN);
}
#endif
memset(&packet2, 0, sizeof(packet2)); memset(&packet2, 0, sizeof(packet2));
mavlink_msg_asl_obctrl_encode(system_id, component_id, &msg, &packet1); mavlink_msg_asl_obctrl_encode(system_id, component_id, &msg, &packet1);
mavlink_msg_asl_obctrl_decode(&msg, &packet2); mavlink_msg_asl_obctrl_decode(&msg, &packet2);
...@@ -452,7 +487,12 @@ static void mavlink_test_sens_atmos(uint8_t system_id, uint8_t component_id, mav ...@@ -452,7 +487,12 @@ static void mavlink_test_sens_atmos(uint8_t system_id, uint8_t component_id, mav
packet1.Humidity = packet_in.Humidity; packet1.Humidity = packet_in.Humidity;
#ifdef MAVLINK_STATUS_FLAG_OUT_MAVLINK1
if (status->flags & MAVLINK_STATUS_FLAG_OUT_MAVLINK1) {
// cope with extensions
memset(MAVLINK_MSG_ID_SENS_ATMOS_MIN_LEN + (char *)&packet1, 0, sizeof(packet1)-MAVLINK_MSG_ID_SENS_ATMOS_MIN_LEN);
}
#endif
memset(&packet2, 0, sizeof(packet2)); memset(&packet2, 0, sizeof(packet2));
mavlink_msg_sens_atmos_encode(system_id, component_id, &msg, &packet1); mavlink_msg_sens_atmos_encode(system_id, component_id, &msg, &packet1);
mavlink_msg_sens_atmos_decode(&msg, &packet2); mavlink_msg_sens_atmos_decode(&msg, &packet2);
...@@ -513,7 +553,12 @@ static void mavlink_test_sens_batmon(uint8_t system_id, uint8_t component_id, ma ...@@ -513,7 +553,12 @@ static void mavlink_test_sens_batmon(uint8_t system_id, uint8_t component_id, ma
packet1.SoC = packet_in.SoC; packet1.SoC = packet_in.SoC;
#ifdef MAVLINK_STATUS_FLAG_OUT_MAVLINK1
if (status->flags & MAVLINK_STATUS_FLAG_OUT_MAVLINK1) {
// cope with extensions
memset(MAVLINK_MSG_ID_SENS_BATMON_MIN_LEN + (char *)&packet1, 0, sizeof(packet1)-MAVLINK_MSG_ID_SENS_BATMON_MIN_LEN);
}
#endif
memset(&packet2, 0, sizeof(packet2)); memset(&packet2, 0, sizeof(packet2));
mavlink_msg_sens_batmon_encode(system_id, component_id, &msg, &packet1); mavlink_msg_sens_batmon_encode(system_id, component_id, &msg, &packet1);
mavlink_msg_sens_batmon_decode(&msg, &packet2); mavlink_msg_sens_batmon_decode(&msg, &packet2);
...@@ -575,7 +620,12 @@ static void mavlink_test_fw_soaring_data(uint8_t system_id, uint8_t component_id ...@@ -575,7 +620,12 @@ static void mavlink_test_fw_soaring_data(uint8_t system_id, uint8_t component_id
packet1.valid = packet_in.valid; packet1.valid = packet_in.valid;
#ifdef MAVLINK_STATUS_FLAG_OUT_MAVLINK1
if (status->flags & MAVLINK_STATUS_FLAG_OUT_MAVLINK1) {
// cope with extensions
memset(MAVLINK_MSG_ID_FW_SOARING_DATA_MIN_LEN + (char *)&packet1, 0, sizeof(packet1)-MAVLINK_MSG_ID_FW_SOARING_DATA_MIN_LEN);
}
#endif
memset(&packet2, 0, sizeof(packet2)); memset(&packet2, 0, sizeof(packet2));
mavlink_msg_fw_soaring_data_encode(system_id, component_id, &msg, &packet1); mavlink_msg_fw_soaring_data_encode(system_id, component_id, &msg, &packet1);
mavlink_msg_fw_soaring_data_decode(&msg, &packet2); mavlink_msg_fw_soaring_data_decode(&msg, &packet2);
...@@ -631,7 +681,12 @@ static void mavlink_test_sensorpod_status(uint8_t system_id, uint8_t component_i ...@@ -631,7 +681,12 @@ static void mavlink_test_sensorpod_status(uint8_t system_id, uint8_t component_i
packet1.cpu_temp = packet_in.cpu_temp; packet1.cpu_temp = packet_in.cpu_temp;
#ifdef MAVLINK_STATUS_FLAG_OUT_MAVLINK1
if (status->flags & MAVLINK_STATUS_FLAG_OUT_MAVLINK1) {
// cope with extensions
memset(MAVLINK_MSG_ID_SENSORPOD_STATUS_MIN_LEN + (char *)&packet1, 0, sizeof(packet1)-MAVLINK_MSG_ID_SENSORPOD_STATUS_MIN_LEN);
}
#endif
memset(&packet2, 0, sizeof(packet2)); memset(&packet2, 0, sizeof(packet2));
mavlink_msg_sensorpod_status_encode(system_id, component_id, &msg, &packet1); mavlink_msg_sensorpod_status_encode(system_id, component_id, &msg, &packet1);
mavlink_msg_sensorpod_status_decode(&msg, &packet2); mavlink_msg_sensorpod_status_decode(&msg, &packet2);
......
This diff is collapsed.
...@@ -63,7 +63,12 @@ static void mavlink_test_aq_telemetry_f(uint8_t system_id, uint8_t component_id, ...@@ -63,7 +63,12 @@ static void mavlink_test_aq_telemetry_f(uint8_t system_id, uint8_t component_id,
packet1.Index = packet_in.Index; packet1.Index = packet_in.Index;
#ifdef MAVLINK_STATUS_FLAG_OUT_MAVLINK1
if (status->flags & MAVLINK_STATUS_FLAG_OUT_MAVLINK1) {
// cope with extensions
memset(MAVLINK_MSG_ID_AQ_TELEMETRY_F_MIN_LEN + (char *)&packet1, 0, sizeof(packet1)-MAVLINK_MSG_ID_AQ_TELEMETRY_F_MIN_LEN);
}
#endif
memset(&packet2, 0, sizeof(packet2)); memset(&packet2, 0, sizeof(packet2));
mavlink_msg_aq_telemetry_f_encode(system_id, component_id, &msg, &packet1); mavlink_msg_aq_telemetry_f_encode(system_id, component_id, &msg, &packet1);
mavlink_msg_aq_telemetry_f_decode(&msg, &packet2); mavlink_msg_aq_telemetry_f_decode(&msg, &packet2);
...@@ -120,7 +125,12 @@ static void mavlink_test_aq_esc_telemetry(uint8_t system_id, uint8_t component_i ...@@ -120,7 +125,12 @@ static void mavlink_test_aq_esc_telemetry(uint8_t system_id, uint8_t component_i
mav_array_memcpy(packet1.escid, packet_in.escid, sizeof(uint8_t)*4); mav_array_memcpy(packet1.escid, packet_in.escid, sizeof(uint8_t)*4);
mav_array_memcpy(packet1.data_version, packet_in.data_version, sizeof(uint8_t)*4); mav_array_memcpy(packet1.data_version, packet_in.data_version, sizeof(uint8_t)*4);
#ifdef MAVLINK_STATUS_FLAG_OUT_MAVLINK1
if (status->flags & MAVLINK_STATUS_FLAG_OUT_MAVLINK1) {
// cope with extensions
memset(MAVLINK_MSG_ID_AQ_ESC_TELEMETRY_MIN_LEN + (char *)&packet1, 0, sizeof(packet1)-MAVLINK_MSG_ID_AQ_ESC_TELEMETRY_MIN_LEN);
}
#endif
memset(&packet2, 0, sizeof(packet2)); memset(&packet2, 0, sizeof(packet2));
mavlink_msg_aq_esc_telemetry_encode(system_id, component_id, &msg, &packet1); mavlink_msg_aq_esc_telemetry_encode(system_id, component_id, &msg, &packet1);
mavlink_msg_aq_esc_telemetry_decode(&msg, &packet2); mavlink_msg_aq_esc_telemetry_decode(&msg, &packet2);
......
This diff is collapsed.
This diff is collapsed.
...@@ -48,7 +48,12 @@ static void mavlink_test_heartbeat(uint8_t system_id, uint8_t component_id, mavl ...@@ -48,7 +48,12 @@ static void mavlink_test_heartbeat(uint8_t system_id, uint8_t component_id, mavl
packet1.mavlink_version = packet_in.mavlink_version; packet1.mavlink_version = packet_in.mavlink_version;
#ifdef MAVLINK_STATUS_FLAG_OUT_MAVLINK1
if (status->flags & MAVLINK_STATUS_FLAG_OUT_MAVLINK1) {
// cope with extensions
memset(MAVLINK_MSG_ID_HEARTBEAT_MIN_LEN + (char *)&packet1, 0, sizeof(packet1)-MAVLINK_MSG_ID_HEARTBEAT_MIN_LEN);
}
#endif
memset(&packet2, 0, sizeof(packet2)); memset(&packet2, 0, sizeof(packet2));
mavlink_msg_heartbeat_encode(system_id, component_id, &msg, &packet1); mavlink_msg_heartbeat_encode(system_id, component_id, &msg, &packet1);
mavlink_msg_heartbeat_decode(&msg, &packet2); mavlink_msg_heartbeat_decode(&msg, &packet2);
......
This diff is collapsed.
...@@ -64,7 +64,12 @@ static void mavlink_test_test_types(uint8_t system_id, uint8_t component_id, mav ...@@ -64,7 +64,12 @@ static void mavlink_test_test_types(uint8_t system_id, uint8_t component_id, mav
mav_array_memcpy(packet1.u8_array, packet_in.u8_array, sizeof(uint8_t)*3); mav_array_memcpy(packet1.u8_array, packet_in.u8_array, sizeof(uint8_t)*3);
mav_array_memcpy(packet1.s8_array, packet_in.s8_array, sizeof(int8_t)*3); mav_array_memcpy(packet1.s8_array, packet_in.s8_array, sizeof(int8_t)*3);
#ifdef MAVLINK_STATUS_FLAG_OUT_MAVLINK1
if (status->flags & MAVLINK_STATUS_FLAG_OUT_MAVLINK1) {
// cope with extensions
memset(MAVLINK_MSG_ID_TEST_TYPES_MIN_LEN + (char *)&packet1, 0, sizeof(packet1)-MAVLINK_MSG_ID_TEST_TYPES_MIN_LEN);
}
#endif
memset(&packet2, 0, sizeof(packet2)); memset(&packet2, 0, sizeof(packet2));
mavlink_msg_test_types_encode(system_id, component_id, &msg, &packet1); mavlink_msg_test_types_encode(system_id, component_id, &msg, &packet1);
mavlink_msg_test_types_decode(&msg, &packet2); mavlink_msg_test_types_decode(&msg, &packet2);
......
...@@ -49,7 +49,12 @@ static void mavlink_test_nav_filter_bias(uint8_t system_id, uint8_t component_id ...@@ -49,7 +49,12 @@ static void mavlink_test_nav_filter_bias(uint8_t system_id, uint8_t component_id
packet1.gyro_2 = packet_in.gyro_2; packet1.gyro_2 = packet_in.gyro_2;
#ifdef MAVLINK_STATUS_FLAG_OUT_MAVLINK1
if (status->flags & MAVLINK_STATUS_FLAG_OUT_MAVLINK1) {
// cope with extensions
memset(MAVLINK_MSG_ID_NAV_FILTER_BIAS_MIN_LEN + (char *)&packet1, 0, sizeof(packet1)-MAVLINK_MSG_ID_NAV_FILTER_BIAS_MIN_LEN);
}
#endif
memset(&packet2, 0, sizeof(packet2)); memset(&packet2, 0, sizeof(packet2));
mavlink_msg_nav_filter_bias_encode(system_id, component_id, &msg, &packet1); mavlink_msg_nav_filter_bias_encode(system_id, component_id, &msg, &packet1);
mavlink_msg_nav_filter_bias_decode(&msg, &packet2); mavlink_msg_nav_filter_bias_decode(&msg, &packet2);
...@@ -103,7 +108,12 @@ static void mavlink_test_radio_calibration(uint8_t system_id, uint8_t component_ ...@@ -103,7 +108,12 @@ static void mavlink_test_radio_calibration(uint8_t system_id, uint8_t component_
mav_array_memcpy(packet1.pitch, packet_in.pitch, sizeof(uint16_t)*5); mav_array_memcpy(packet1.pitch, packet_in.pitch, sizeof(uint16_t)*5);
mav_array_memcpy(packet1.throttle, packet_in.throttle, sizeof(uint16_t)*5); mav_array_memcpy(packet1.throttle, packet_in.throttle, sizeof(uint16_t)*5);
#ifdef MAVLINK_STATUS_FLAG_OUT_MAVLINK1
if (status->flags & MAVLINK_STATUS_FLAG_OUT_MAVLINK1) {
// cope with extensions
memset(MAVLINK_MSG_ID_RADIO_CALIBRATION_MIN_LEN + (char *)&packet1, 0, sizeof(packet1)-MAVLINK_MSG_ID_RADIO_CALIBRATION_MIN_LEN);
}
#endif
memset(&packet2, 0, sizeof(packet2)); memset(&packet2, 0, sizeof(packet2));
mavlink_msg_radio_calibration_encode(system_id, component_id, &msg, &packet1); mavlink_msg_radio_calibration_encode(system_id, component_id, &msg, &packet1);
mavlink_msg_radio_calibration_decode(&msg, &packet2); mavlink_msg_radio_calibration_decode(&msg, &packet2);
...@@ -154,7 +164,12 @@ static void mavlink_test_ualberta_sys_status(uint8_t system_id, uint8_t componen ...@@ -154,7 +164,12 @@ static void mavlink_test_ualberta_sys_status(uint8_t system_id, uint8_t componen
packet1.pilot = packet_in.pilot; packet1.pilot = packet_in.pilot;
#ifdef MAVLINK_STATUS_FLAG_OUT_MAVLINK1
if (status->flags & MAVLINK_STATUS_FLAG_OUT_MAVLINK1) {
// cope with extensions
memset(MAVLINK_MSG_ID_UALBERTA_SYS_STATUS_MIN_LEN + (char *)&packet1, 0, sizeof(packet1)-MAVLINK_MSG_ID_UALBERTA_SYS_STATUS_MIN_LEN);
}
#endif
memset(&packet2, 0, sizeof(packet2)); memset(&packet2, 0, sizeof(packet2));
mavlink_msg_ualberta_sys_status_encode(system_id, component_id, &msg, &packet1); mavlink_msg_ualberta_sys_status_encode(system_id, component_id, &msg, &packet1);
mavlink_msg_ualberta_sys_status_decode(&msg, &packet2); mavlink_msg_ualberta_sys_status_decode(&msg, &packet2);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment