Commit 7c0ec616 authored by PX4BuildBot's avatar PX4BuildBot

autogenerated headers for rev...

autogenerated headers for rev https://github.com/mavlink/mavlink/tree/840d9f22b998cad6fb107a8dd32175f00ae065ed
parent dc7d9fe7
This diff is collapsed.
...@@ -9,6 +9,6 @@ ...@@ -9,6 +9,6 @@
#define MAVLINK_BUILD_DATE "Sun Nov 03 2019" #define MAVLINK_BUILD_DATE "Sun Nov 03 2019"
#define MAVLINK_WIRE_PROTOCOL_VERSION "2.0" #define MAVLINK_WIRE_PROTOCOL_VERSION "2.0"
#define MAVLINK_MAX_DIALECT_PAYLOAD_SIZE 258 #define MAVLINK_MAX_DIALECT_PAYLOAD_SIZE 255
#endif // MAVLINK_VERSION_H #endif // MAVLINK_VERSION_H
This diff is collapsed.
...@@ -9,6 +9,6 @@ ...@@ -9,6 +9,6 @@
#define MAVLINK_BUILD_DATE "Sun Nov 03 2019" #define MAVLINK_BUILD_DATE "Sun Nov 03 2019"
#define MAVLINK_WIRE_PROTOCOL_VERSION "2.0" #define MAVLINK_WIRE_PROTOCOL_VERSION "2.0"
#define MAVLINK_MAX_DIALECT_PAYLOAD_SIZE 258 #define MAVLINK_MAX_DIALECT_PAYLOAD_SIZE 255
#endif // MAVLINK_VERSION_H #endif // MAVLINK_VERSION_H
This diff is collapsed.
...@@ -9,6 +9,6 @@ ...@@ -9,6 +9,6 @@
#define MAVLINK_BUILD_DATE "Sun Nov 03 2019" #define MAVLINK_BUILD_DATE "Sun Nov 03 2019"
#define MAVLINK_WIRE_PROTOCOL_VERSION "2.0" #define MAVLINK_WIRE_PROTOCOL_VERSION "2.0"
#define MAVLINK_MAX_DIALECT_PAYLOAD_SIZE 258 #define MAVLINK_MAX_DIALECT_PAYLOAD_SIZE 255
#endif // MAVLINK_VERSION_H #endif // MAVLINK_VERSION_H
This diff is collapsed.
...@@ -8,18 +8,18 @@ typedef struct __mavlink_play_tune_v2_t { ...@@ -8,18 +8,18 @@ typedef struct __mavlink_play_tune_v2_t {
uint32_t format; /*< Tune format*/ uint32_t format; /*< Tune format*/
uint8_t target_system; /*< System ID*/ uint8_t target_system; /*< System ID*/
uint8_t target_component; /*< Component ID*/ uint8_t target_component; /*< Component ID*/
char tune[252]; /*< Tune definition as a NULL-terminated string.*/ char tune[248]; /*< Tune definition as a NULL-terminated string.*/
}) mavlink_play_tune_v2_t; }) mavlink_play_tune_v2_t;
#define MAVLINK_MSG_ID_PLAY_TUNE_V2_LEN 258 #define MAVLINK_MSG_ID_PLAY_TUNE_V2_LEN 254
#define MAVLINK_MSG_ID_PLAY_TUNE_V2_MIN_LEN 258 #define MAVLINK_MSG_ID_PLAY_TUNE_V2_MIN_LEN 254
#define MAVLINK_MSG_ID_400_LEN 258 #define MAVLINK_MSG_ID_400_LEN 254
#define MAVLINK_MSG_ID_400_MIN_LEN 258 #define MAVLINK_MSG_ID_400_MIN_LEN 254
#define MAVLINK_MSG_ID_PLAY_TUNE_V2_CRC 12 #define MAVLINK_MSG_ID_PLAY_TUNE_V2_CRC 110
#define MAVLINK_MSG_ID_400_CRC 12 #define MAVLINK_MSG_ID_400_CRC 110
#define MAVLINK_MSG_PLAY_TUNE_V2_FIELD_TUNE_LEN 252 #define MAVLINK_MSG_PLAY_TUNE_V2_FIELD_TUNE_LEN 248
#if MAVLINK_COMMAND_24BIT #if MAVLINK_COMMAND_24BIT
#define MAVLINK_MESSAGE_INFO_PLAY_TUNE_V2 { \ #define MAVLINK_MESSAGE_INFO_PLAY_TUNE_V2 { \
...@@ -29,7 +29,7 @@ typedef struct __mavlink_play_tune_v2_t { ...@@ -29,7 +29,7 @@ typedef struct __mavlink_play_tune_v2_t {
{ { "target_system", NULL, MAVLINK_TYPE_UINT8_T, 0, 4, offsetof(mavlink_play_tune_v2_t, target_system) }, \ { { "target_system", NULL, MAVLINK_TYPE_UINT8_T, 0, 4, offsetof(mavlink_play_tune_v2_t, target_system) }, \
{ "target_component", NULL, MAVLINK_TYPE_UINT8_T, 0, 5, offsetof(mavlink_play_tune_v2_t, target_component) }, \ { "target_component", NULL, MAVLINK_TYPE_UINT8_T, 0, 5, offsetof(mavlink_play_tune_v2_t, target_component) }, \
{ "format", NULL, MAVLINK_TYPE_UINT32_T, 0, 0, offsetof(mavlink_play_tune_v2_t, format) }, \ { "format", NULL, MAVLINK_TYPE_UINT32_T, 0, 0, offsetof(mavlink_play_tune_v2_t, format) }, \
{ "tune", NULL, MAVLINK_TYPE_CHAR, 252, 6, offsetof(mavlink_play_tune_v2_t, tune) }, \ { "tune", NULL, MAVLINK_TYPE_CHAR, 248, 6, offsetof(mavlink_play_tune_v2_t, tune) }, \
} \ } \
} }
#else #else
...@@ -39,7 +39,7 @@ typedef struct __mavlink_play_tune_v2_t { ...@@ -39,7 +39,7 @@ typedef struct __mavlink_play_tune_v2_t {
{ { "target_system", NULL, MAVLINK_TYPE_UINT8_T, 0, 4, offsetof(mavlink_play_tune_v2_t, target_system) }, \ { { "target_system", NULL, MAVLINK_TYPE_UINT8_T, 0, 4, offsetof(mavlink_play_tune_v2_t, target_system) }, \
{ "target_component", NULL, MAVLINK_TYPE_UINT8_T, 0, 5, offsetof(mavlink_play_tune_v2_t, target_component) }, \ { "target_component", NULL, MAVLINK_TYPE_UINT8_T, 0, 5, offsetof(mavlink_play_tune_v2_t, target_component) }, \
{ "format", NULL, MAVLINK_TYPE_UINT32_T, 0, 0, offsetof(mavlink_play_tune_v2_t, format) }, \ { "format", NULL, MAVLINK_TYPE_UINT32_T, 0, 0, offsetof(mavlink_play_tune_v2_t, format) }, \
{ "tune", NULL, MAVLINK_TYPE_CHAR, 252, 6, offsetof(mavlink_play_tune_v2_t, tune) }, \ { "tune", NULL, MAVLINK_TYPE_CHAR, 248, 6, offsetof(mavlink_play_tune_v2_t, tune) }, \
} \ } \
} }
#endif #endif
...@@ -64,14 +64,14 @@ static inline uint16_t mavlink_msg_play_tune_v2_pack(uint8_t system_id, uint8_t ...@@ -64,14 +64,14 @@ static inline uint16_t mavlink_msg_play_tune_v2_pack(uint8_t system_id, uint8_t
_mav_put_uint32_t(buf, 0, format); _mav_put_uint32_t(buf, 0, format);
_mav_put_uint8_t(buf, 4, target_system); _mav_put_uint8_t(buf, 4, target_system);
_mav_put_uint8_t(buf, 5, target_component); _mav_put_uint8_t(buf, 5, target_component);
_mav_put_char_array(buf, 6, tune, 252); _mav_put_char_array(buf, 6, tune, 248);
memcpy(_MAV_PAYLOAD_NON_CONST(msg), buf, MAVLINK_MSG_ID_PLAY_TUNE_V2_LEN); memcpy(_MAV_PAYLOAD_NON_CONST(msg), buf, MAVLINK_MSG_ID_PLAY_TUNE_V2_LEN);
#else #else
mavlink_play_tune_v2_t packet; mavlink_play_tune_v2_t packet;
packet.format = format; packet.format = format;
packet.target_system = target_system; packet.target_system = target_system;
packet.target_component = target_component; packet.target_component = target_component;
mav_array_memcpy(packet.tune, tune, sizeof(char)*252); mav_array_memcpy(packet.tune, tune, sizeof(char)*248);
memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_PLAY_TUNE_V2_LEN); memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_PLAY_TUNE_V2_LEN);
#endif #endif
...@@ -100,14 +100,14 @@ static inline uint16_t mavlink_msg_play_tune_v2_pack_chan(uint8_t system_id, uin ...@@ -100,14 +100,14 @@ static inline uint16_t mavlink_msg_play_tune_v2_pack_chan(uint8_t system_id, uin
_mav_put_uint32_t(buf, 0, format); _mav_put_uint32_t(buf, 0, format);
_mav_put_uint8_t(buf, 4, target_system); _mav_put_uint8_t(buf, 4, target_system);
_mav_put_uint8_t(buf, 5, target_component); _mav_put_uint8_t(buf, 5, target_component);
_mav_put_char_array(buf, 6, tune, 252); _mav_put_char_array(buf, 6, tune, 248);
memcpy(_MAV_PAYLOAD_NON_CONST(msg), buf, MAVLINK_MSG_ID_PLAY_TUNE_V2_LEN); memcpy(_MAV_PAYLOAD_NON_CONST(msg), buf, MAVLINK_MSG_ID_PLAY_TUNE_V2_LEN);
#else #else
mavlink_play_tune_v2_t packet; mavlink_play_tune_v2_t packet;
packet.format = format; packet.format = format;
packet.target_system = target_system; packet.target_system = target_system;
packet.target_component = target_component; packet.target_component = target_component;
mav_array_memcpy(packet.tune, tune, sizeof(char)*252); mav_array_memcpy(packet.tune, tune, sizeof(char)*248);
memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_PLAY_TUNE_V2_LEN); memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_PLAY_TUNE_V2_LEN);
#endif #endif
...@@ -160,14 +160,14 @@ static inline void mavlink_msg_play_tune_v2_send(mavlink_channel_t chan, uint8_t ...@@ -160,14 +160,14 @@ static inline void mavlink_msg_play_tune_v2_send(mavlink_channel_t chan, uint8_t
_mav_put_uint32_t(buf, 0, format); _mav_put_uint32_t(buf, 0, format);
_mav_put_uint8_t(buf, 4, target_system); _mav_put_uint8_t(buf, 4, target_system);
_mav_put_uint8_t(buf, 5, target_component); _mav_put_uint8_t(buf, 5, target_component);
_mav_put_char_array(buf, 6, tune, 252); _mav_put_char_array(buf, 6, tune, 248);
_mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_PLAY_TUNE_V2, buf, MAVLINK_MSG_ID_PLAY_TUNE_V2_MIN_LEN, MAVLINK_MSG_ID_PLAY_TUNE_V2_LEN, MAVLINK_MSG_ID_PLAY_TUNE_V2_CRC); _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_PLAY_TUNE_V2, buf, MAVLINK_MSG_ID_PLAY_TUNE_V2_MIN_LEN, MAVLINK_MSG_ID_PLAY_TUNE_V2_LEN, MAVLINK_MSG_ID_PLAY_TUNE_V2_CRC);
#else #else
mavlink_play_tune_v2_t packet; mavlink_play_tune_v2_t packet;
packet.format = format; packet.format = format;
packet.target_system = target_system; packet.target_system = target_system;
packet.target_component = target_component; packet.target_component = target_component;
mav_array_memcpy(packet.tune, tune, sizeof(char)*252); mav_array_memcpy(packet.tune, tune, sizeof(char)*248);
_mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_PLAY_TUNE_V2, (const char *)&packet, MAVLINK_MSG_ID_PLAY_TUNE_V2_MIN_LEN, MAVLINK_MSG_ID_PLAY_TUNE_V2_LEN, MAVLINK_MSG_ID_PLAY_TUNE_V2_CRC); _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_PLAY_TUNE_V2, (const char *)&packet, MAVLINK_MSG_ID_PLAY_TUNE_V2_MIN_LEN, MAVLINK_MSG_ID_PLAY_TUNE_V2_LEN, MAVLINK_MSG_ID_PLAY_TUNE_V2_CRC);
#endif #endif
} }
...@@ -201,14 +201,14 @@ static inline void mavlink_msg_play_tune_v2_send_buf(mavlink_message_t *msgbuf, ...@@ -201,14 +201,14 @@ static inline void mavlink_msg_play_tune_v2_send_buf(mavlink_message_t *msgbuf,
_mav_put_uint32_t(buf, 0, format); _mav_put_uint32_t(buf, 0, format);
_mav_put_uint8_t(buf, 4, target_system); _mav_put_uint8_t(buf, 4, target_system);
_mav_put_uint8_t(buf, 5, target_component); _mav_put_uint8_t(buf, 5, target_component);
_mav_put_char_array(buf, 6, tune, 252); _mav_put_char_array(buf, 6, tune, 248);
_mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_PLAY_TUNE_V2, buf, MAVLINK_MSG_ID_PLAY_TUNE_V2_MIN_LEN, MAVLINK_MSG_ID_PLAY_TUNE_V2_LEN, MAVLINK_MSG_ID_PLAY_TUNE_V2_CRC); _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_PLAY_TUNE_V2, buf, MAVLINK_MSG_ID_PLAY_TUNE_V2_MIN_LEN, MAVLINK_MSG_ID_PLAY_TUNE_V2_LEN, MAVLINK_MSG_ID_PLAY_TUNE_V2_CRC);
#else #else
mavlink_play_tune_v2_t *packet = (mavlink_play_tune_v2_t *)msgbuf; mavlink_play_tune_v2_t *packet = (mavlink_play_tune_v2_t *)msgbuf;
packet->format = format; packet->format = format;
packet->target_system = target_system; packet->target_system = target_system;
packet->target_component = target_component; packet->target_component = target_component;
mav_array_memcpy(packet->tune, tune, sizeof(char)*252); mav_array_memcpy(packet->tune, tune, sizeof(char)*248);
_mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_PLAY_TUNE_V2, (const char *)packet, MAVLINK_MSG_ID_PLAY_TUNE_V2_MIN_LEN, MAVLINK_MSG_ID_PLAY_TUNE_V2_LEN, MAVLINK_MSG_ID_PLAY_TUNE_V2_CRC); _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_PLAY_TUNE_V2, (const char *)packet, MAVLINK_MSG_ID_PLAY_TUNE_V2_MIN_LEN, MAVLINK_MSG_ID_PLAY_TUNE_V2_LEN, MAVLINK_MSG_ID_PLAY_TUNE_V2_CRC);
#endif #endif
} }
...@@ -256,7 +256,7 @@ static inline uint32_t mavlink_msg_play_tune_v2_get_format(const mavlink_message ...@@ -256,7 +256,7 @@ static inline uint32_t mavlink_msg_play_tune_v2_get_format(const mavlink_message
*/ */
static inline uint16_t mavlink_msg_play_tune_v2_get_tune(const mavlink_message_t* msg, char *tune) static inline uint16_t mavlink_msg_play_tune_v2_get_tune(const mavlink_message_t* msg, char *tune)
{ {
return _MAV_RETURN_char_array(msg, tune, 252, 6); return _MAV_RETURN_char_array(msg, tune, 248, 6);
} }
/** /**
......
...@@ -10985,7 +10985,7 @@ static void mavlink_test_play_tune_v2(uint8_t system_id, uint8_t component_id, m ...@@ -10985,7 +10985,7 @@ static void mavlink_test_play_tune_v2(uint8_t system_id, uint8_t component_id, m
uint8_t buffer[MAVLINK_MAX_PACKET_LEN]; uint8_t buffer[MAVLINK_MAX_PACKET_LEN];
uint16_t i; uint16_t i;
mavlink_play_tune_v2_t packet_in = { mavlink_play_tune_v2_t packet_in = {
963497464,17,84,"GHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVW" 963497464,17,84,"GHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRS"
}; };
mavlink_play_tune_v2_t packet1, packet2; mavlink_play_tune_v2_t packet1, packet2;
memset(&packet1, 0, sizeof(packet1)); memset(&packet1, 0, sizeof(packet1));
...@@ -10993,7 +10993,7 @@ static void mavlink_test_play_tune_v2(uint8_t system_id, uint8_t component_id, m ...@@ -10993,7 +10993,7 @@ static void mavlink_test_play_tune_v2(uint8_t system_id, uint8_t component_id, m
packet1.target_system = packet_in.target_system; packet1.target_system = packet_in.target_system;
packet1.target_component = packet_in.target_component; packet1.target_component = packet_in.target_component;
mav_array_memcpy(packet1.tune, packet_in.tune, sizeof(char)*252); mav_array_memcpy(packet1.tune, packet_in.tune, sizeof(char)*248);
#ifdef MAVLINK_STATUS_FLAG_OUT_MAVLINK1 #ifdef MAVLINK_STATUS_FLAG_OUT_MAVLINK1
if (status->flags & MAVLINK_STATUS_FLAG_OUT_MAVLINK1) { if (status->flags & MAVLINK_STATUS_FLAG_OUT_MAVLINK1) {
......
...@@ -9,6 +9,6 @@ ...@@ -9,6 +9,6 @@
#define MAVLINK_BUILD_DATE "Sun Nov 03 2019" #define MAVLINK_BUILD_DATE "Sun Nov 03 2019"
#define MAVLINK_WIRE_PROTOCOL_VERSION "2.0" #define MAVLINK_WIRE_PROTOCOL_VERSION "2.0"
#define MAVLINK_MAX_DIALECT_PAYLOAD_SIZE 258 #define MAVLINK_MAX_DIALECT_PAYLOAD_SIZE 255
#endif // MAVLINK_VERSION_H #endif // MAVLINK_VERSION_H
...@@ -9,6 +9,6 @@ ...@@ -9,6 +9,6 @@
#define MAVLINK_BUILD_DATE "Sun Nov 03 2019" #define MAVLINK_BUILD_DATE "Sun Nov 03 2019"
#define MAVLINK_WIRE_PROTOCOL_VERSION "2.0" #define MAVLINK_WIRE_PROTOCOL_VERSION "2.0"
#define MAVLINK_MAX_DIALECT_PAYLOAD_SIZE 258 #define MAVLINK_MAX_DIALECT_PAYLOAD_SIZE 255
#endif // MAVLINK_VERSION_H #endif // MAVLINK_VERSION_H
This diff is collapsed.
...@@ -9,6 +9,6 @@ ...@@ -9,6 +9,6 @@
#define MAVLINK_BUILD_DATE "Sun Nov 03 2019" #define MAVLINK_BUILD_DATE "Sun Nov 03 2019"
#define MAVLINK_WIRE_PROTOCOL_VERSION "2.0" #define MAVLINK_WIRE_PROTOCOL_VERSION "2.0"
#define MAVLINK_MAX_DIALECT_PAYLOAD_SIZE 258 #define MAVLINK_MAX_DIALECT_PAYLOAD_SIZE 255
#endif // MAVLINK_VERSION_H #endif // MAVLINK_VERSION_H
...@@ -5861,7 +5861,7 @@ ...@@ -5861,7 +5861,7 @@
<field type="uint8_t" name="target_system">System ID</field> <field type="uint8_t" name="target_system">System ID</field>
<field type="uint8_t" name="target_component">Component ID</field> <field type="uint8_t" name="target_component">Component ID</field>
<field type="uint32_t" name="format" enum="TUNE_FORMAT">Tune format</field> <field type="uint32_t" name="format" enum="TUNE_FORMAT">Tune format</field>
<field type="char[252]" name="tune">Tune definition as a NULL-terminated string.</field> <field type="char[248]" name="tune">Tune definition as a NULL-terminated string.</field>
</message> </message>
<message id="401" name="SUPPORTED_TUNES"> <message id="401" name="SUPPORTED_TUNES">
<wip/> <wip/>
......
This diff is collapsed.
...@@ -9,6 +9,6 @@ ...@@ -9,6 +9,6 @@
#define MAVLINK_BUILD_DATE "Sun Nov 03 2019" #define MAVLINK_BUILD_DATE "Sun Nov 03 2019"
#define MAVLINK_WIRE_PROTOCOL_VERSION "2.0" #define MAVLINK_WIRE_PROTOCOL_VERSION "2.0"
#define MAVLINK_MAX_DIALECT_PAYLOAD_SIZE 258 #define MAVLINK_MAX_DIALECT_PAYLOAD_SIZE 255
#endif // MAVLINK_VERSION_H #endif // MAVLINK_VERSION_H
This diff is collapsed.
...@@ -9,6 +9,6 @@ ...@@ -9,6 +9,6 @@
#define MAVLINK_BUILD_DATE "Sun Nov 03 2019" #define MAVLINK_BUILD_DATE "Sun Nov 03 2019"
#define MAVLINK_WIRE_PROTOCOL_VERSION "2.0" #define MAVLINK_WIRE_PROTOCOL_VERSION "2.0"
#define MAVLINK_MAX_DIALECT_PAYLOAD_SIZE 258 #define MAVLINK_MAX_DIALECT_PAYLOAD_SIZE 255
#endif // MAVLINK_VERSION_H #endif // MAVLINK_VERSION_H
...@@ -9,6 +9,6 @@ ...@@ -9,6 +9,6 @@
#define MAVLINK_BUILD_DATE "Sun Nov 03 2019" #define MAVLINK_BUILD_DATE "Sun Nov 03 2019"
#define MAVLINK_WIRE_PROTOCOL_VERSION "2.0" #define MAVLINK_WIRE_PROTOCOL_VERSION "2.0"
#define MAVLINK_MAX_DIALECT_PAYLOAD_SIZE 258 #define MAVLINK_MAX_DIALECT_PAYLOAD_SIZE 255
#endif // MAVLINK_VERSION_H #endif // MAVLINK_VERSION_H
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