Commit 339abb5f authored by PX4BuildBot's avatar PX4BuildBot

autogenerated headers for rev...

autogenerated headers for rev https://github.com/mavlink/mavlink/tree/51034c701130135b59af9dc91d546933e47a7635
parent e89c3300
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
......@@ -10045,6 +10045,66 @@ static void mavlink_test_trajectory_representation_bezier(uint8_t system_id, uin
MAVLINK_ASSERT(memcmp(&packet1, &packet2, sizeof(packet1)) == 0);
}
static void mavlink_test_cellular_status(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
{
#ifdef MAVLINK_STATUS_FLAG_OUT_MAVLINK1
mavlink_status_t *status = mavlink_get_channel_status(MAVLINK_COMM_0);
if ((status->flags & MAVLINK_STATUS_FLAG_OUT_MAVLINK1) && MAVLINK_MSG_ID_CELLULAR_STATUS >= 256) {
return;
}
#endif
mavlink_message_t msg;
uint8_t buffer[MAVLINK_MAX_PACKET_LEN];
uint16_t i;
mavlink_cellular_status_t packet_in = {
963497464,17443,17547,17651,17755,41,108
};
mavlink_cellular_status_t packet1, packet2;
memset(&packet1, 0, sizeof(packet1));
packet1.cid = packet_in.cid;
packet1.status = packet_in.status;
packet1.mcc = packet_in.mcc;
packet1.mnc = packet_in.mnc;
packet1.lac = packet_in.lac;
packet1.type = packet_in.type;
packet1.quality = packet_in.quality;
#ifdef MAVLINK_STATUS_FLAG_OUT_MAVLINK1
if (status->flags & MAVLINK_STATUS_FLAG_OUT_MAVLINK1) {
// cope with extensions
memset(MAVLINK_MSG_ID_CELLULAR_STATUS_MIN_LEN + (char *)&packet1, 0, sizeof(packet1)-MAVLINK_MSG_ID_CELLULAR_STATUS_MIN_LEN);
}
#endif
memset(&packet2, 0, sizeof(packet2));
mavlink_msg_cellular_status_encode(system_id, component_id, &msg, &packet1);
mavlink_msg_cellular_status_decode(&msg, &packet2);
MAVLINK_ASSERT(memcmp(&packet1, &packet2, sizeof(packet1)) == 0);
memset(&packet2, 0, sizeof(packet2));
mavlink_msg_cellular_status_pack(system_id, component_id, &msg , packet1.status , packet1.type , packet1.quality , packet1.mcc , packet1.mnc , packet1.lac , packet1.cid );
mavlink_msg_cellular_status_decode(&msg, &packet2);
MAVLINK_ASSERT(memcmp(&packet1, &packet2, sizeof(packet1)) == 0);
memset(&packet2, 0, sizeof(packet2));
mavlink_msg_cellular_status_pack_chan(system_id, component_id, MAVLINK_COMM_0, &msg , packet1.status , packet1.type , packet1.quality , packet1.mcc , packet1.mnc , packet1.lac , packet1.cid );
mavlink_msg_cellular_status_decode(&msg, &packet2);
MAVLINK_ASSERT(memcmp(&packet1, &packet2, sizeof(packet1)) == 0);
memset(&packet2, 0, sizeof(packet2));
mavlink_msg_to_send_buffer(buffer, &msg);
for (i=0; i<mavlink_msg_get_send_buffer_length(&msg); i++) {
comm_send_ch(MAVLINK_COMM_0, buffer[i]);
}
mavlink_msg_cellular_status_decode(last_msg, &packet2);
MAVLINK_ASSERT(memcmp(&packet1, &packet2, sizeof(packet1)) == 0);
memset(&packet2, 0, sizeof(packet2));
mavlink_msg_cellular_status_send(MAVLINK_COMM_1 , packet1.status , packet1.type , packet1.quality , packet1.mcc , packet1.mnc , packet1.lac , packet1.cid );
mavlink_msg_cellular_status_decode(last_msg, &packet2);
MAVLINK_ASSERT(memcmp(&packet1, &packet2, sizeof(packet1)) == 0);
}
static void mavlink_test_utm_global_position(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
{
#ifdef MAVLINK_STATUS_FLAG_OUT_MAVLINK1
......@@ -10455,6 +10515,7 @@ static void mavlink_test_common(uint8_t system_id, uint8_t component_id, mavlink
mavlink_test_odometry(system_id, component_id, last_msg);
mavlink_test_trajectory_representation_waypoints(system_id, component_id, last_msg);
mavlink_test_trajectory_representation_bezier(system_id, component_id, last_msg);
mavlink_test_cellular_status(system_id, component_id, last_msg);
mavlink_test_utm_global_position(system_id, component_id, last_msg);
mavlink_test_debug_float_array(system_id, component_id, last_msg);
mavlink_test_orbit_execution_status(system_id, component_id, last_msg);
......
This diff is collapsed.
......@@ -3137,6 +3137,20 @@
<description>The fields next_lat, next_lon and next_alt contain valid data.</description>
</entry>
</enum>
<enum name="CELLULAR_NETWORK_RADIO_TYPE">
<description>Cellular network radio type</description>
<entry value="0" name="CELLULAR_NETWORK_RADIO_TYPE_NONE"/>
<entry value="1" name="CELLULAR_NETWORK_RADIO_TYPE_GSM"/>
<entry value="2" name="CELLULAR_NETWORK_RADIO_TYPE_CDMA"/>
<entry value="3" name="CELLULAR_NETWORK_RADIO_TYPE_WCDMA"/>
<entry value="4" name="CELLULAR_NETWORK_RADIO_TYPE_LTE"/>
</enum>
<enum name="CELLULAR_NETWORK_STATUS_FLAG">
<description>These flags encode the cellular network status</description>
<entry value="1" name="CELLULAR_NETWORK_STATUS_FLAG_ROAMING">
<description>Roaming is active</description>
</entry>
</enum>
</enums>
<messages>
<message id="0" name="HEARTBEAT">
......@@ -4970,6 +4984,17 @@
<field type="float[5]" name="delta" units="s">Bezier time horizon, set to NaN if velocity/acceleration should not be incorporated</field>
<field type="float[5]" name="pos_yaw" units="rad">Yaw, set to NaN for unchanged</field>
</message>
<message id="334" name="CELLULAR_STATUS">
<wip/>
<description>Report current used cellular network status</description>
<field type="uint16_t" name="status" enum="CELLULAR_NETWORK_STATUS_FLAG" display="bitmask">Status bitmap</field>
<field type="uint8_t" name="type" enum="CELLULAR_NETWORK_RADIO_TYPE">Cellular network radio type: gsm, cdma, lte...</field>
<field type="uint8_t" name="quality">Cellular network RSSI/RSRP in dBm, absolute value</field>
<field type="uint16_t" name="mcc">Mobile country code. If unknown, set to: UINT16_MAX</field>
<field type="uint16_t" name="mnc">Mobile network code. If unknown, set to: UINT16_MAX</field>
<field type="uint16_t" name="lac">Location area code. If unknown, set to: 0</field>
<field type="uint32_t" name="cid">Cell ID. If unknown, set to: UINT32_MAX</field>
</message>
<message id="340" name="UTM_GLOBAL_POSITION">
<wip/>
<!-- This message is work-in-progress it can therefore change, and should NOT be used in stable production environments -->
......
This diff is collapsed.
This diff is collapsed.
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