Commit 1bd6b447 authored by PX4BuildBot's avatar PX4BuildBot

autogenerated headers for rev...

autogenerated headers for rev https://github.com/mavlink/mavlink/tree/9cb7e1d2b3370b7b6ed42e89304272434489ceda
parent 3366f5e4
This diff is collapsed.
......@@ -7,7 +7,7 @@
#ifndef MAVLINK_VERSION_H
#define MAVLINK_VERSION_H
#define MAVLINK_BUILD_DATE "Wed Jul 01 2020"
#define MAVLINK_BUILD_DATE "Thu Jul 09 2020"
#define MAVLINK_WIRE_PROTOCOL_VERSION "2.0"
#define MAVLINK_MAX_DIALECT_PAYLOAD_SIZE 255
......
This diff is collapsed.
......@@ -7,7 +7,7 @@
#ifndef MAVLINK_VERSION_H
#define MAVLINK_VERSION_H
#define MAVLINK_BUILD_DATE "Wed Jul 01 2020"
#define MAVLINK_BUILD_DATE "Thu Jul 09 2020"
#define MAVLINK_WIRE_PROTOCOL_VERSION "2.0"
#define MAVLINK_MAX_DIALECT_PAYLOAD_SIZE 255
......
This diff is collapsed.
......@@ -7,7 +7,7 @@
#ifndef MAVLINK_VERSION_H
#define MAVLINK_VERSION_H
#define MAVLINK_BUILD_DATE "Wed Jul 01 2020"
#define MAVLINK_BUILD_DATE "Thu Jul 09 2020"
#define MAVLINK_WIRE_PROTOCOL_VERSION "2.0"
#define MAVLINK_MAX_DIALECT_PAYLOAD_SIZE 255
......
This diff is collapsed.
This diff is collapsed.
......@@ -10989,6 +10989,65 @@ static void mavlink_test_isbd_link_status(uint8_t system_id, uint8_t component_i
MAVLINK_ASSERT(memcmp(&packet1, &packet2, sizeof(packet1)) == 0);
}
static void mavlink_test_cellular_config(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_CONFIG >= 256) {
return;
}
#endif
mavlink_message_t msg;
uint8_t buffer[MAVLINK_MAX_PACKET_LEN];
uint16_t i;
mavlink_cellular_config_t packet_in = {
5,"BCDEFGHIJKLMNOPQRSTUVWXYZABCDEF","HIJKLMNOPQRSTUVWXYZABCDEFGHIJKL","NOPQRSTUVWXYZABCDEFGHIJKLMNOPQR",104,171
};
mavlink_cellular_config_t packet1, packet2;
memset(&packet1, 0, sizeof(packet1));
packet1.enable_pin = packet_in.enable_pin;
packet1.roaming = packet_in.roaming;
packet1.response = packet_in.response;
mav_array_memcpy(packet1.pin, packet_in.pin, sizeof(char)*32);
mav_array_memcpy(packet1.apn, packet_in.apn, sizeof(char)*32);
mav_array_memcpy(packet1.puk, packet_in.puk, sizeof(char)*32);
#ifdef MAVLINK_STATUS_FLAG_OUT_MAVLINK1
if (status->flags & MAVLINK_STATUS_FLAG_OUT_MAVLINK1) {
// cope with extensions
memset(MAVLINK_MSG_ID_CELLULAR_CONFIG_MIN_LEN + (char *)&packet1, 0, sizeof(packet1)-MAVLINK_MSG_ID_CELLULAR_CONFIG_MIN_LEN);
}
#endif
memset(&packet2, 0, sizeof(packet2));
mavlink_msg_cellular_config_encode(system_id, component_id, &msg, &packet1);
mavlink_msg_cellular_config_decode(&msg, &packet2);
MAVLINK_ASSERT(memcmp(&packet1, &packet2, sizeof(packet1)) == 0);
memset(&packet2, 0, sizeof(packet2));
mavlink_msg_cellular_config_pack(system_id, component_id, &msg , packet1.enable_pin , packet1.pin , packet1.apn , packet1.puk , packet1.roaming , packet1.response );
mavlink_msg_cellular_config_decode(&msg, &packet2);
MAVLINK_ASSERT(memcmp(&packet1, &packet2, sizeof(packet1)) == 0);
memset(&packet2, 0, sizeof(packet2));
mavlink_msg_cellular_config_pack_chan(system_id, component_id, MAVLINK_COMM_0, &msg , packet1.enable_pin , packet1.pin , packet1.apn , packet1.puk , packet1.roaming , packet1.response );
mavlink_msg_cellular_config_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_config_decode(last_msg, &packet2);
MAVLINK_ASSERT(memcmp(&packet1, &packet2, sizeof(packet1)) == 0);
memset(&packet2, 0, sizeof(packet2));
mavlink_msg_cellular_config_send(MAVLINK_COMM_1 , packet1.enable_pin , packet1.pin , packet1.apn , packet1.puk , packet1.roaming , packet1.response );
mavlink_msg_cellular_config_decode(last_msg, &packet2);
MAVLINK_ASSERT(memcmp(&packet1, &packet2, sizeof(packet1)) == 0);
}
static void mavlink_test_raw_rpm(uint8_t system_id, uint8_t component_id, mavlink_message_t *last_msg)
{
#ifdef MAVLINK_STATUS_FLAG_OUT_MAVLINK1
......@@ -12505,6 +12564,7 @@ static void mavlink_test_common(uint8_t system_id, uint8_t component_id, mavlink
mavlink_test_trajectory_representation_bezier(system_id, component_id, last_msg);
mavlink_test_cellular_status(system_id, component_id, last_msg);
mavlink_test_isbd_link_status(system_id, component_id, last_msg);
mavlink_test_cellular_config(system_id, component_id, last_msg);
mavlink_test_raw_rpm(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);
......
......@@ -7,7 +7,7 @@
#ifndef MAVLINK_VERSION_H
#define MAVLINK_VERSION_H
#define MAVLINK_BUILD_DATE "Wed Jul 01 2020"
#define MAVLINK_BUILD_DATE "Thu Jul 09 2020"
#define MAVLINK_WIRE_PROTOCOL_VERSION "2.0"
#define MAVLINK_MAX_DIALECT_PAYLOAD_SIZE 255
......
......@@ -7,7 +7,7 @@
#ifndef MAVLINK_VERSION_H
#define MAVLINK_VERSION_H
#define MAVLINK_BUILD_DATE "Wed Jul 01 2020"
#define MAVLINK_BUILD_DATE "Thu Jul 09 2020"
#define MAVLINK_WIRE_PROTOCOL_VERSION "2.0"
#define MAVLINK_MAX_DIALECT_PAYLOAD_SIZE 255
......
This diff is collapsed.
......@@ -7,7 +7,7 @@
#ifndef MAVLINK_VERSION_H
#define MAVLINK_VERSION_H
#define MAVLINK_BUILD_DATE "Wed Jul 01 2020"
#define MAVLINK_BUILD_DATE "Thu Jul 09 2020"
#define MAVLINK_WIRE_PROTOCOL_VERSION "2.0"
#define MAVLINK_MAX_DIALECT_PAYLOAD_SIZE 255
......
......@@ -1280,6 +1280,21 @@
<description>Invalid Password.</description>
</entry>
</enum>
<enum name="CELLULAR_CONFIG_RESPONSE">
<description>Possible responses from a CELLULAR_CONFIG message.</description>
<entry value="0" name="CELLULAR_CONFIG_RESPONSE_ACCEPTED">
<description>Changes accepted.</description>
</entry>
<entry value="1" name="CELLULAR_CONFIG_RESPONSE_APN_ERROR">
<description>Invalid APN.</description>
</entry>
<entry value="2" name="CELLULAR_CONFIG_RESPONSE_PIN_ERROR">
<description>Invalid PIN.</description>
</entry>
<entry value="3" name="CELLULAR_CONFIG_RESPONSE_REJECTED">
<description>Changes rejected.</description>
</entry>
</enum>
<enum name="WIFI_CONFIG_AP_MODE">
<description>WiFi Mode.</description>
<entry value="0" name="WIFI_CONFIG_AP_MODE_UNDEFINED">
......@@ -6623,6 +6638,17 @@
<field type="uint8_t" name="tx_session_pending">1: Transmission session pending, 0: No transmission session pending.</field>
<field type="uint8_t" name="rx_session_pending">1: Receiving session pending, 0: No receiving session pending.</field>
</message>
<message id="336" name="CELLULAR_CONFIG">
<wip/>
<!-- This message is work-in-progress and it can therefore change. It should NOT be used in stable production environments. -->
<description>Configure cellular modems. This message is re-emitted as an acknowledgement by the modem. The message may also be explicitly requested using MAV_CMD_REQUEST_MESSAGE.</description>
<field type="uint8_t" name="enable_pin">Enable / disable PIN on the SIM card. 0: Unchange setttings 1: PIN disabled, 2: PIN enabled.</field>
<field type="char[32]" name="pin">PIN sent to the simcard. Blank when PIN is disabled. Empty when message is sent back as a response.</field>
<field type="char[32]" name="apn">Name of the cellular APN. Blank to leave it unchanged when setting. Current APN when sent back as a response.</field>
<field type="char[32]" name="puk">Required PUK code in case the user failed to authenticate 3 times with the PIN.</field>
<field type="uint8_t" name="roaming">Configure whether roaming is allowed, 0: settings not changed, 1: roaming disabled, 2: roaming enabled.</field>
<field type="uint8_t" name="response" enum="CELLULAR_CONFIG_RESPONSE">Message acceptance response (sent back to GS).</field>
</message>
<message id="339" name="RAW_RPM">
<wip/>
<!-- This message is work-in-progress it can therefore change, and should NOT be used in stable production environments -->
......
......@@ -7,7 +7,7 @@
#ifndef MAVLINK_VERSION_H
#define MAVLINK_VERSION_H
#define MAVLINK_BUILD_DATE "Wed Jul 01 2020"
#define MAVLINK_BUILD_DATE "Thu Jul 09 2020"
#define MAVLINK_WIRE_PROTOCOL_VERSION "2.0"
#define MAVLINK_MAX_DIALECT_PAYLOAD_SIZE 22
......
This diff is collapsed.
......@@ -7,7 +7,7 @@
#ifndef MAVLINK_VERSION_H
#define MAVLINK_VERSION_H
#define MAVLINK_BUILD_DATE "Wed Jul 01 2020"
#define MAVLINK_BUILD_DATE "Thu Jul 09 2020"
#define MAVLINK_WIRE_PROTOCOL_VERSION "2.0"
#define MAVLINK_MAX_DIALECT_PAYLOAD_SIZE 255
......
This diff is collapsed.
......@@ -7,7 +7,7 @@
#ifndef MAVLINK_VERSION_H
#define MAVLINK_VERSION_H
#define MAVLINK_BUILD_DATE "Wed Jul 01 2020"
#define MAVLINK_BUILD_DATE "Thu Jul 09 2020"
#define MAVLINK_WIRE_PROTOCOL_VERSION "2.0"
#define MAVLINK_MAX_DIALECT_PAYLOAD_SIZE 255
......
......@@ -7,7 +7,7 @@
#ifndef MAVLINK_VERSION_H
#define MAVLINK_VERSION_H
#define MAVLINK_BUILD_DATE "Wed Jul 01 2020"
#define MAVLINK_BUILD_DATE "Thu Jul 09 2020"
#define MAVLINK_WIRE_PROTOCOL_VERSION "2.0"
#define MAVLINK_MAX_DIALECT_PAYLOAD_SIZE 179
......
......@@ -7,7 +7,7 @@
#ifndef MAVLINK_VERSION_H
#define MAVLINK_VERSION_H
#define MAVLINK_BUILD_DATE "Wed Jul 01 2020"
#define MAVLINK_BUILD_DATE "Thu Jul 09 2020"
#define MAVLINK_WIRE_PROTOCOL_VERSION "2.0"
#define MAVLINK_MAX_DIALECT_PAYLOAD_SIZE 255
......
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