update
This commit is contained in:
@@ -11,10 +11,10 @@ typedef struct __mavlink_open_drone_id_location_t {
|
||||
float altitude_geodetic; /*< [m] The geodetic altitude as defined by WGS84. If unknown: -1000 m.*/
|
||||
float height; /*< [m] The current height of the unmanned aircraft above the take-off location or the ground as indicated by height_reference. If unknown: -1000 m.*/
|
||||
float timestamp; /*< [s] Seconds after the full hour with reference to UTC time. Typically the GPS outputs a time-of-week value in milliseconds. First convert that to UTC and then convert for this field using ((float) (time_week_ms % (60*60*1000))) / 1000.*/
|
||||
uint16_t target_system; /*< System ID (0 for broadcast).*/
|
||||
uint16_t direction; /*< [cdeg] Direction over ground (not heading, but direction of movement) measured clockwise from true North: 0 - 35999 centi-degrees. If unknown: 36100 centi-degrees.*/
|
||||
uint16_t speed_horizontal; /*< [cm/s] Ground speed. Positive only. If unknown: 25500 cm/s. If speed is larger than 25425 cm/s, use 25425 cm/s.*/
|
||||
int16_t speed_vertical; /*< [cm/s] The vertical speed. Up is positive. If unknown: 6300 cm/s. If speed is larger than 6200 cm/s, use 6200 cm/s. If lower than -6200 cm/s, use -6200 cm/s.*/
|
||||
uint8_t target_system; /*< System ID (0 for broadcast).*/
|
||||
uint8_t target_component; /*< Component ID (0 for broadcast).*/
|
||||
uint8_t id_or_mac[20]; /*< Only used for drone ID data received from other UAs. See detailed description at https://mavlink.io/en/services/opendroneid.html. */
|
||||
uint8_t status; /*< Indicates whether the unmanned aircraft is on the ground or in the air.*/
|
||||
@@ -26,13 +26,13 @@ typedef struct __mavlink_open_drone_id_location_t {
|
||||
uint8_t timestamp_accuracy; /*< The accuracy of the timestamps.*/
|
||||
} mavlink_open_drone_id_location_t;
|
||||
|
||||
#define MAVLINK_MSG_ID_OPEN_DRONE_ID_LOCATION_LEN 59
|
||||
#define MAVLINK_MSG_ID_OPEN_DRONE_ID_LOCATION_MIN_LEN 59
|
||||
#define MAVLINK_MSG_ID_12901_LEN 59
|
||||
#define MAVLINK_MSG_ID_12901_MIN_LEN 59
|
||||
#define MAVLINK_MSG_ID_OPEN_DRONE_ID_LOCATION_LEN 60
|
||||
#define MAVLINK_MSG_ID_OPEN_DRONE_ID_LOCATION_MIN_LEN 60
|
||||
#define MAVLINK_MSG_ID_12901_LEN 60
|
||||
#define MAVLINK_MSG_ID_12901_MIN_LEN 60
|
||||
|
||||
#define MAVLINK_MSG_ID_OPEN_DRONE_ID_LOCATION_CRC 254
|
||||
#define MAVLINK_MSG_ID_12901_CRC 254
|
||||
#define MAVLINK_MSG_ID_OPEN_DRONE_ID_LOCATION_CRC 67
|
||||
#define MAVLINK_MSG_ID_12901_CRC 67
|
||||
|
||||
#define MAVLINK_MSG_OPEN_DRONE_ID_LOCATION_FIELD_ID_OR_MAC_LEN 20
|
||||
|
||||
@@ -41,50 +41,50 @@ typedef struct __mavlink_open_drone_id_location_t {
|
||||
12901, \
|
||||
"OPEN_DRONE_ID_LOCATION", \
|
||||
19, \
|
||||
{ { "target_system", NULL, MAVLINK_TYPE_UINT8_T, 0, 30, offsetof(mavlink_open_drone_id_location_t, target_system) }, \
|
||||
{ "target_component", NULL, MAVLINK_TYPE_UINT8_T, 0, 31, offsetof(mavlink_open_drone_id_location_t, target_component) }, \
|
||||
{ "id_or_mac", NULL, MAVLINK_TYPE_UINT8_T, 20, 32, offsetof(mavlink_open_drone_id_location_t, id_or_mac) }, \
|
||||
{ "status", NULL, MAVLINK_TYPE_UINT8_T, 0, 52, offsetof(mavlink_open_drone_id_location_t, status) }, \
|
||||
{ "direction", NULL, MAVLINK_TYPE_UINT16_T, 0, 24, offsetof(mavlink_open_drone_id_location_t, direction) }, \
|
||||
{ "speed_horizontal", NULL, MAVLINK_TYPE_UINT16_T, 0, 26, offsetof(mavlink_open_drone_id_location_t, speed_horizontal) }, \
|
||||
{ "speed_vertical", NULL, MAVLINK_TYPE_INT16_T, 0, 28, offsetof(mavlink_open_drone_id_location_t, speed_vertical) }, \
|
||||
{ { "target_system", NULL, MAVLINK_TYPE_UINT16_T, 0, 24, offsetof(mavlink_open_drone_id_location_t, target_system) }, \
|
||||
{ "target_component", NULL, MAVLINK_TYPE_UINT8_T, 0, 32, offsetof(mavlink_open_drone_id_location_t, target_component) }, \
|
||||
{ "id_or_mac", NULL, MAVLINK_TYPE_UINT8_T, 20, 33, offsetof(mavlink_open_drone_id_location_t, id_or_mac) }, \
|
||||
{ "status", NULL, MAVLINK_TYPE_UINT8_T, 0, 53, offsetof(mavlink_open_drone_id_location_t, status) }, \
|
||||
{ "direction", NULL, MAVLINK_TYPE_UINT16_T, 0, 26, offsetof(mavlink_open_drone_id_location_t, direction) }, \
|
||||
{ "speed_horizontal", NULL, MAVLINK_TYPE_UINT16_T, 0, 28, offsetof(mavlink_open_drone_id_location_t, speed_horizontal) }, \
|
||||
{ "speed_vertical", NULL, MAVLINK_TYPE_INT16_T, 0, 30, offsetof(mavlink_open_drone_id_location_t, speed_vertical) }, \
|
||||
{ "latitude", NULL, MAVLINK_TYPE_INT32_T, 0, 0, offsetof(mavlink_open_drone_id_location_t, latitude) }, \
|
||||
{ "longitude", NULL, MAVLINK_TYPE_INT32_T, 0, 4, offsetof(mavlink_open_drone_id_location_t, longitude) }, \
|
||||
{ "altitude_barometric", NULL, MAVLINK_TYPE_FLOAT, 0, 8, offsetof(mavlink_open_drone_id_location_t, altitude_barometric) }, \
|
||||
{ "altitude_geodetic", NULL, MAVLINK_TYPE_FLOAT, 0, 12, offsetof(mavlink_open_drone_id_location_t, altitude_geodetic) }, \
|
||||
{ "height_reference", NULL, MAVLINK_TYPE_UINT8_T, 0, 53, offsetof(mavlink_open_drone_id_location_t, height_reference) }, \
|
||||
{ "height_reference", NULL, MAVLINK_TYPE_UINT8_T, 0, 54, offsetof(mavlink_open_drone_id_location_t, height_reference) }, \
|
||||
{ "height", NULL, MAVLINK_TYPE_FLOAT, 0, 16, offsetof(mavlink_open_drone_id_location_t, height) }, \
|
||||
{ "horizontal_accuracy", NULL, MAVLINK_TYPE_UINT8_T, 0, 54, offsetof(mavlink_open_drone_id_location_t, horizontal_accuracy) }, \
|
||||
{ "vertical_accuracy", NULL, MAVLINK_TYPE_UINT8_T, 0, 55, offsetof(mavlink_open_drone_id_location_t, vertical_accuracy) }, \
|
||||
{ "barometer_accuracy", NULL, MAVLINK_TYPE_UINT8_T, 0, 56, offsetof(mavlink_open_drone_id_location_t, barometer_accuracy) }, \
|
||||
{ "speed_accuracy", NULL, MAVLINK_TYPE_UINT8_T, 0, 57, offsetof(mavlink_open_drone_id_location_t, speed_accuracy) }, \
|
||||
{ "horizontal_accuracy", NULL, MAVLINK_TYPE_UINT8_T, 0, 55, offsetof(mavlink_open_drone_id_location_t, horizontal_accuracy) }, \
|
||||
{ "vertical_accuracy", NULL, MAVLINK_TYPE_UINT8_T, 0, 56, offsetof(mavlink_open_drone_id_location_t, vertical_accuracy) }, \
|
||||
{ "barometer_accuracy", NULL, MAVLINK_TYPE_UINT8_T, 0, 57, offsetof(mavlink_open_drone_id_location_t, barometer_accuracy) }, \
|
||||
{ "speed_accuracy", NULL, MAVLINK_TYPE_UINT8_T, 0, 58, offsetof(mavlink_open_drone_id_location_t, speed_accuracy) }, \
|
||||
{ "timestamp", NULL, MAVLINK_TYPE_FLOAT, 0, 20, offsetof(mavlink_open_drone_id_location_t, timestamp) }, \
|
||||
{ "timestamp_accuracy", NULL, MAVLINK_TYPE_UINT8_T, 0, 58, offsetof(mavlink_open_drone_id_location_t, timestamp_accuracy) }, \
|
||||
{ "timestamp_accuracy", NULL, MAVLINK_TYPE_UINT8_T, 0, 59, offsetof(mavlink_open_drone_id_location_t, timestamp_accuracy) }, \
|
||||
} \
|
||||
}
|
||||
#else
|
||||
#define MAVLINK_MESSAGE_INFO_OPEN_DRONE_ID_LOCATION { \
|
||||
"OPEN_DRONE_ID_LOCATION", \
|
||||
19, \
|
||||
{ { "target_system", NULL, MAVLINK_TYPE_UINT8_T, 0, 30, offsetof(mavlink_open_drone_id_location_t, target_system) }, \
|
||||
{ "target_component", NULL, MAVLINK_TYPE_UINT8_T, 0, 31, offsetof(mavlink_open_drone_id_location_t, target_component) }, \
|
||||
{ "id_or_mac", NULL, MAVLINK_TYPE_UINT8_T, 20, 32, offsetof(mavlink_open_drone_id_location_t, id_or_mac) }, \
|
||||
{ "status", NULL, MAVLINK_TYPE_UINT8_T, 0, 52, offsetof(mavlink_open_drone_id_location_t, status) }, \
|
||||
{ "direction", NULL, MAVLINK_TYPE_UINT16_T, 0, 24, offsetof(mavlink_open_drone_id_location_t, direction) }, \
|
||||
{ "speed_horizontal", NULL, MAVLINK_TYPE_UINT16_T, 0, 26, offsetof(mavlink_open_drone_id_location_t, speed_horizontal) }, \
|
||||
{ "speed_vertical", NULL, MAVLINK_TYPE_INT16_T, 0, 28, offsetof(mavlink_open_drone_id_location_t, speed_vertical) }, \
|
||||
{ { "target_system", NULL, MAVLINK_TYPE_UINT16_T, 0, 24, offsetof(mavlink_open_drone_id_location_t, target_system) }, \
|
||||
{ "target_component", NULL, MAVLINK_TYPE_UINT8_T, 0, 32, offsetof(mavlink_open_drone_id_location_t, target_component) }, \
|
||||
{ "id_or_mac", NULL, MAVLINK_TYPE_UINT8_T, 20, 33, offsetof(mavlink_open_drone_id_location_t, id_or_mac) }, \
|
||||
{ "status", NULL, MAVLINK_TYPE_UINT8_T, 0, 53, offsetof(mavlink_open_drone_id_location_t, status) }, \
|
||||
{ "direction", NULL, MAVLINK_TYPE_UINT16_T, 0, 26, offsetof(mavlink_open_drone_id_location_t, direction) }, \
|
||||
{ "speed_horizontal", NULL, MAVLINK_TYPE_UINT16_T, 0, 28, offsetof(mavlink_open_drone_id_location_t, speed_horizontal) }, \
|
||||
{ "speed_vertical", NULL, MAVLINK_TYPE_INT16_T, 0, 30, offsetof(mavlink_open_drone_id_location_t, speed_vertical) }, \
|
||||
{ "latitude", NULL, MAVLINK_TYPE_INT32_T, 0, 0, offsetof(mavlink_open_drone_id_location_t, latitude) }, \
|
||||
{ "longitude", NULL, MAVLINK_TYPE_INT32_T, 0, 4, offsetof(mavlink_open_drone_id_location_t, longitude) }, \
|
||||
{ "altitude_barometric", NULL, MAVLINK_TYPE_FLOAT, 0, 8, offsetof(mavlink_open_drone_id_location_t, altitude_barometric) }, \
|
||||
{ "altitude_geodetic", NULL, MAVLINK_TYPE_FLOAT, 0, 12, offsetof(mavlink_open_drone_id_location_t, altitude_geodetic) }, \
|
||||
{ "height_reference", NULL, MAVLINK_TYPE_UINT8_T, 0, 53, offsetof(mavlink_open_drone_id_location_t, height_reference) }, \
|
||||
{ "height_reference", NULL, MAVLINK_TYPE_UINT8_T, 0, 54, offsetof(mavlink_open_drone_id_location_t, height_reference) }, \
|
||||
{ "height", NULL, MAVLINK_TYPE_FLOAT, 0, 16, offsetof(mavlink_open_drone_id_location_t, height) }, \
|
||||
{ "horizontal_accuracy", NULL, MAVLINK_TYPE_UINT8_T, 0, 54, offsetof(mavlink_open_drone_id_location_t, horizontal_accuracy) }, \
|
||||
{ "vertical_accuracy", NULL, MAVLINK_TYPE_UINT8_T, 0, 55, offsetof(mavlink_open_drone_id_location_t, vertical_accuracy) }, \
|
||||
{ "barometer_accuracy", NULL, MAVLINK_TYPE_UINT8_T, 0, 56, offsetof(mavlink_open_drone_id_location_t, barometer_accuracy) }, \
|
||||
{ "speed_accuracy", NULL, MAVLINK_TYPE_UINT8_T, 0, 57, offsetof(mavlink_open_drone_id_location_t, speed_accuracy) }, \
|
||||
{ "horizontal_accuracy", NULL, MAVLINK_TYPE_UINT8_T, 0, 55, offsetof(mavlink_open_drone_id_location_t, horizontal_accuracy) }, \
|
||||
{ "vertical_accuracy", NULL, MAVLINK_TYPE_UINT8_T, 0, 56, offsetof(mavlink_open_drone_id_location_t, vertical_accuracy) }, \
|
||||
{ "barometer_accuracy", NULL, MAVLINK_TYPE_UINT8_T, 0, 57, offsetof(mavlink_open_drone_id_location_t, barometer_accuracy) }, \
|
||||
{ "speed_accuracy", NULL, MAVLINK_TYPE_UINT8_T, 0, 58, offsetof(mavlink_open_drone_id_location_t, speed_accuracy) }, \
|
||||
{ "timestamp", NULL, MAVLINK_TYPE_FLOAT, 0, 20, offsetof(mavlink_open_drone_id_location_t, timestamp) }, \
|
||||
{ "timestamp_accuracy", NULL, MAVLINK_TYPE_UINT8_T, 0, 58, offsetof(mavlink_open_drone_id_location_t, timestamp_accuracy) }, \
|
||||
{ "timestamp_accuracy", NULL, MAVLINK_TYPE_UINT8_T, 0, 59, offsetof(mavlink_open_drone_id_location_t, timestamp_accuracy) }, \
|
||||
} \
|
||||
}
|
||||
#endif
|
||||
@@ -117,7 +117,7 @@ typedef struct __mavlink_open_drone_id_location_t {
|
||||
* @return length of the message in bytes (excluding serial stream start sign)
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_open_drone_id_location_pack(uint16_t system_id, uint8_t component_id, mavlink_message_t* msg,
|
||||
uint8_t target_system, uint8_t target_component, const uint8_t *id_or_mac, uint8_t status, uint16_t direction, uint16_t speed_horizontal, int16_t speed_vertical, int32_t latitude, int32_t longitude, float altitude_barometric, float altitude_geodetic, uint8_t height_reference, float height, uint8_t horizontal_accuracy, uint8_t vertical_accuracy, uint8_t barometer_accuracy, uint8_t speed_accuracy, float timestamp, uint8_t timestamp_accuracy)
|
||||
uint16_t target_system, uint8_t target_component, const uint8_t *id_or_mac, uint8_t status, uint16_t direction, uint16_t speed_horizontal, int16_t speed_vertical, int32_t latitude, int32_t longitude, float altitude_barometric, float altitude_geodetic, uint8_t height_reference, float height, uint8_t horizontal_accuracy, uint8_t vertical_accuracy, uint8_t barometer_accuracy, uint8_t speed_accuracy, float timestamp, uint8_t timestamp_accuracy)
|
||||
{
|
||||
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
|
||||
char buf[MAVLINK_MSG_ID_OPEN_DRONE_ID_LOCATION_LEN];
|
||||
@@ -127,19 +127,19 @@ static inline uint16_t mavlink_msg_open_drone_id_location_pack(uint16_t system_i
|
||||
_mav_put_float(buf, 12, altitude_geodetic);
|
||||
_mav_put_float(buf, 16, height);
|
||||
_mav_put_float(buf, 20, timestamp);
|
||||
_mav_put_uint16_t(buf, 24, direction);
|
||||
_mav_put_uint16_t(buf, 26, speed_horizontal);
|
||||
_mav_put_int16_t(buf, 28, speed_vertical);
|
||||
_mav_put_uint8_t(buf, 30, target_system);
|
||||
_mav_put_uint8_t(buf, 31, target_component);
|
||||
_mav_put_uint8_t(buf, 52, status);
|
||||
_mav_put_uint8_t(buf, 53, height_reference);
|
||||
_mav_put_uint8_t(buf, 54, horizontal_accuracy);
|
||||
_mav_put_uint8_t(buf, 55, vertical_accuracy);
|
||||
_mav_put_uint8_t(buf, 56, barometer_accuracy);
|
||||
_mav_put_uint8_t(buf, 57, speed_accuracy);
|
||||
_mav_put_uint8_t(buf, 58, timestamp_accuracy);
|
||||
_mav_put_uint8_t_array(buf, 32, id_or_mac, 20);
|
||||
_mav_put_uint16_t(buf, 24, target_system);
|
||||
_mav_put_uint16_t(buf, 26, direction);
|
||||
_mav_put_uint16_t(buf, 28, speed_horizontal);
|
||||
_mav_put_int16_t(buf, 30, speed_vertical);
|
||||
_mav_put_uint8_t(buf, 32, target_component);
|
||||
_mav_put_uint8_t(buf, 53, status);
|
||||
_mav_put_uint8_t(buf, 54, height_reference);
|
||||
_mav_put_uint8_t(buf, 55, horizontal_accuracy);
|
||||
_mav_put_uint8_t(buf, 56, vertical_accuracy);
|
||||
_mav_put_uint8_t(buf, 57, barometer_accuracy);
|
||||
_mav_put_uint8_t(buf, 58, speed_accuracy);
|
||||
_mav_put_uint8_t(buf, 59, timestamp_accuracy);
|
||||
_mav_put_uint8_t_array(buf, 33, id_or_mac, 20);
|
||||
memcpy(_MAV_PAYLOAD_NON_CONST(msg), buf, MAVLINK_MSG_ID_OPEN_DRONE_ID_LOCATION_LEN);
|
||||
#else
|
||||
mavlink_open_drone_id_location_t packet;
|
||||
@@ -149,10 +149,10 @@ static inline uint16_t mavlink_msg_open_drone_id_location_pack(uint16_t system_i
|
||||
packet.altitude_geodetic = altitude_geodetic;
|
||||
packet.height = height;
|
||||
packet.timestamp = timestamp;
|
||||
packet.target_system = target_system;
|
||||
packet.direction = direction;
|
||||
packet.speed_horizontal = speed_horizontal;
|
||||
packet.speed_vertical = speed_vertical;
|
||||
packet.target_system = target_system;
|
||||
packet.target_component = target_component;
|
||||
packet.status = status;
|
||||
packet.height_reference = height_reference;
|
||||
@@ -198,7 +198,7 @@ static inline uint16_t mavlink_msg_open_drone_id_location_pack(uint16_t system_i
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_open_drone_id_location_pack_chan(uint16_t system_id, uint8_t component_id, uint8_t chan,
|
||||
mavlink_message_t* msg,
|
||||
uint8_t target_system,uint8_t target_component,const uint8_t *id_or_mac,uint8_t status,uint16_t direction,uint16_t speed_horizontal,int16_t speed_vertical,int32_t latitude,int32_t longitude,float altitude_barometric,float altitude_geodetic,uint8_t height_reference,float height,uint8_t horizontal_accuracy,uint8_t vertical_accuracy,uint8_t barometer_accuracy,uint8_t speed_accuracy,float timestamp,uint8_t timestamp_accuracy)
|
||||
uint16_t target_system,uint8_t target_component,const uint8_t *id_or_mac,uint8_t status,uint16_t direction,uint16_t speed_horizontal,int16_t speed_vertical,int32_t latitude,int32_t longitude,float altitude_barometric,float altitude_geodetic,uint8_t height_reference,float height,uint8_t horizontal_accuracy,uint8_t vertical_accuracy,uint8_t barometer_accuracy,uint8_t speed_accuracy,float timestamp,uint8_t timestamp_accuracy)
|
||||
{
|
||||
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
|
||||
char buf[MAVLINK_MSG_ID_OPEN_DRONE_ID_LOCATION_LEN];
|
||||
@@ -208,19 +208,19 @@ static inline uint16_t mavlink_msg_open_drone_id_location_pack_chan(uint16_t sys
|
||||
_mav_put_float(buf, 12, altitude_geodetic);
|
||||
_mav_put_float(buf, 16, height);
|
||||
_mav_put_float(buf, 20, timestamp);
|
||||
_mav_put_uint16_t(buf, 24, direction);
|
||||
_mav_put_uint16_t(buf, 26, speed_horizontal);
|
||||
_mav_put_int16_t(buf, 28, speed_vertical);
|
||||
_mav_put_uint8_t(buf, 30, target_system);
|
||||
_mav_put_uint8_t(buf, 31, target_component);
|
||||
_mav_put_uint8_t(buf, 52, status);
|
||||
_mav_put_uint8_t(buf, 53, height_reference);
|
||||
_mav_put_uint8_t(buf, 54, horizontal_accuracy);
|
||||
_mav_put_uint8_t(buf, 55, vertical_accuracy);
|
||||
_mav_put_uint8_t(buf, 56, barometer_accuracy);
|
||||
_mav_put_uint8_t(buf, 57, speed_accuracy);
|
||||
_mav_put_uint8_t(buf, 58, timestamp_accuracy);
|
||||
_mav_put_uint8_t_array(buf, 32, id_or_mac, 20);
|
||||
_mav_put_uint16_t(buf, 24, target_system);
|
||||
_mav_put_uint16_t(buf, 26, direction);
|
||||
_mav_put_uint16_t(buf, 28, speed_horizontal);
|
||||
_mav_put_int16_t(buf, 30, speed_vertical);
|
||||
_mav_put_uint8_t(buf, 32, target_component);
|
||||
_mav_put_uint8_t(buf, 53, status);
|
||||
_mav_put_uint8_t(buf, 54, height_reference);
|
||||
_mav_put_uint8_t(buf, 55, horizontal_accuracy);
|
||||
_mav_put_uint8_t(buf, 56, vertical_accuracy);
|
||||
_mav_put_uint8_t(buf, 57, barometer_accuracy);
|
||||
_mav_put_uint8_t(buf, 58, speed_accuracy);
|
||||
_mav_put_uint8_t(buf, 59, timestamp_accuracy);
|
||||
_mav_put_uint8_t_array(buf, 33, id_or_mac, 20);
|
||||
memcpy(_MAV_PAYLOAD_NON_CONST(msg), buf, MAVLINK_MSG_ID_OPEN_DRONE_ID_LOCATION_LEN);
|
||||
#else
|
||||
mavlink_open_drone_id_location_t packet;
|
||||
@@ -230,10 +230,10 @@ static inline uint16_t mavlink_msg_open_drone_id_location_pack_chan(uint16_t sys
|
||||
packet.altitude_geodetic = altitude_geodetic;
|
||||
packet.height = height;
|
||||
packet.timestamp = timestamp;
|
||||
packet.target_system = target_system;
|
||||
packet.direction = direction;
|
||||
packet.speed_horizontal = speed_horizontal;
|
||||
packet.speed_vertical = speed_vertical;
|
||||
packet.target_system = target_system;
|
||||
packet.target_component = target_component;
|
||||
packet.status = status;
|
||||
packet.height_reference = height_reference;
|
||||
@@ -303,7 +303,7 @@ static inline uint16_t mavlink_msg_open_drone_id_location_encode_chan(uint16_t s
|
||||
*/
|
||||
#ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS
|
||||
|
||||
static inline void mavlink_msg_open_drone_id_location_send(mavlink_channel_t chan, uint8_t target_system, uint8_t target_component, const uint8_t *id_or_mac, uint8_t status, uint16_t direction, uint16_t speed_horizontal, int16_t speed_vertical, int32_t latitude, int32_t longitude, float altitude_barometric, float altitude_geodetic, uint8_t height_reference, float height, uint8_t horizontal_accuracy, uint8_t vertical_accuracy, uint8_t barometer_accuracy, uint8_t speed_accuracy, float timestamp, uint8_t timestamp_accuracy)
|
||||
static inline void mavlink_msg_open_drone_id_location_send(mavlink_channel_t chan, uint16_t target_system, uint8_t target_component, const uint8_t *id_or_mac, uint8_t status, uint16_t direction, uint16_t speed_horizontal, int16_t speed_vertical, int32_t latitude, int32_t longitude, float altitude_barometric, float altitude_geodetic, uint8_t height_reference, float height, uint8_t horizontal_accuracy, uint8_t vertical_accuracy, uint8_t barometer_accuracy, uint8_t speed_accuracy, float timestamp, uint8_t timestamp_accuracy)
|
||||
{
|
||||
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
|
||||
char buf[MAVLINK_MSG_ID_OPEN_DRONE_ID_LOCATION_LEN];
|
||||
@@ -313,19 +313,19 @@ static inline void mavlink_msg_open_drone_id_location_send(mavlink_channel_t cha
|
||||
_mav_put_float(buf, 12, altitude_geodetic);
|
||||
_mav_put_float(buf, 16, height);
|
||||
_mav_put_float(buf, 20, timestamp);
|
||||
_mav_put_uint16_t(buf, 24, direction);
|
||||
_mav_put_uint16_t(buf, 26, speed_horizontal);
|
||||
_mav_put_int16_t(buf, 28, speed_vertical);
|
||||
_mav_put_uint8_t(buf, 30, target_system);
|
||||
_mav_put_uint8_t(buf, 31, target_component);
|
||||
_mav_put_uint8_t(buf, 52, status);
|
||||
_mav_put_uint8_t(buf, 53, height_reference);
|
||||
_mav_put_uint8_t(buf, 54, horizontal_accuracy);
|
||||
_mav_put_uint8_t(buf, 55, vertical_accuracy);
|
||||
_mav_put_uint8_t(buf, 56, barometer_accuracy);
|
||||
_mav_put_uint8_t(buf, 57, speed_accuracy);
|
||||
_mav_put_uint8_t(buf, 58, timestamp_accuracy);
|
||||
_mav_put_uint8_t_array(buf, 32, id_or_mac, 20);
|
||||
_mav_put_uint16_t(buf, 24, target_system);
|
||||
_mav_put_uint16_t(buf, 26, direction);
|
||||
_mav_put_uint16_t(buf, 28, speed_horizontal);
|
||||
_mav_put_int16_t(buf, 30, speed_vertical);
|
||||
_mav_put_uint8_t(buf, 32, target_component);
|
||||
_mav_put_uint8_t(buf, 53, status);
|
||||
_mav_put_uint8_t(buf, 54, height_reference);
|
||||
_mav_put_uint8_t(buf, 55, horizontal_accuracy);
|
||||
_mav_put_uint8_t(buf, 56, vertical_accuracy);
|
||||
_mav_put_uint8_t(buf, 57, barometer_accuracy);
|
||||
_mav_put_uint8_t(buf, 58, speed_accuracy);
|
||||
_mav_put_uint8_t(buf, 59, timestamp_accuracy);
|
||||
_mav_put_uint8_t_array(buf, 33, id_or_mac, 20);
|
||||
_mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_OPEN_DRONE_ID_LOCATION, buf, MAVLINK_MSG_ID_OPEN_DRONE_ID_LOCATION_MIN_LEN, MAVLINK_MSG_ID_OPEN_DRONE_ID_LOCATION_LEN, MAVLINK_MSG_ID_OPEN_DRONE_ID_LOCATION_CRC);
|
||||
#else
|
||||
mavlink_open_drone_id_location_t packet;
|
||||
@@ -335,10 +335,10 @@ static inline void mavlink_msg_open_drone_id_location_send(mavlink_channel_t cha
|
||||
packet.altitude_geodetic = altitude_geodetic;
|
||||
packet.height = height;
|
||||
packet.timestamp = timestamp;
|
||||
packet.target_system = target_system;
|
||||
packet.direction = direction;
|
||||
packet.speed_horizontal = speed_horizontal;
|
||||
packet.speed_vertical = speed_vertical;
|
||||
packet.target_system = target_system;
|
||||
packet.target_component = target_component;
|
||||
packet.status = status;
|
||||
packet.height_reference = height_reference;
|
||||
@@ -374,7 +374,7 @@ static inline void mavlink_msg_open_drone_id_location_send_struct(mavlink_channe
|
||||
is usually the receive buffer for the channel, and allows a reply to an
|
||||
incoming message with minimum stack space usage.
|
||||
*/
|
||||
static inline void mavlink_msg_open_drone_id_location_send_buf(mavlink_message_t *msgbuf, mavlink_channel_t chan, uint8_t target_system, uint8_t target_component, const uint8_t *id_or_mac, uint8_t status, uint16_t direction, uint16_t speed_horizontal, int16_t speed_vertical, int32_t latitude, int32_t longitude, float altitude_barometric, float altitude_geodetic, uint8_t height_reference, float height, uint8_t horizontal_accuracy, uint8_t vertical_accuracy, uint8_t barometer_accuracy, uint8_t speed_accuracy, float timestamp, uint8_t timestamp_accuracy)
|
||||
static inline void mavlink_msg_open_drone_id_location_send_buf(mavlink_message_t *msgbuf, mavlink_channel_t chan, uint16_t target_system, uint8_t target_component, const uint8_t *id_or_mac, uint8_t status, uint16_t direction, uint16_t speed_horizontal, int16_t speed_vertical, int32_t latitude, int32_t longitude, float altitude_barometric, float altitude_geodetic, uint8_t height_reference, float height, uint8_t horizontal_accuracy, uint8_t vertical_accuracy, uint8_t barometer_accuracy, uint8_t speed_accuracy, float timestamp, uint8_t timestamp_accuracy)
|
||||
{
|
||||
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
|
||||
char *buf = (char *)msgbuf;
|
||||
@@ -384,19 +384,19 @@ static inline void mavlink_msg_open_drone_id_location_send_buf(mavlink_message_t
|
||||
_mav_put_float(buf, 12, altitude_geodetic);
|
||||
_mav_put_float(buf, 16, height);
|
||||
_mav_put_float(buf, 20, timestamp);
|
||||
_mav_put_uint16_t(buf, 24, direction);
|
||||
_mav_put_uint16_t(buf, 26, speed_horizontal);
|
||||
_mav_put_int16_t(buf, 28, speed_vertical);
|
||||
_mav_put_uint8_t(buf, 30, target_system);
|
||||
_mav_put_uint8_t(buf, 31, target_component);
|
||||
_mav_put_uint8_t(buf, 52, status);
|
||||
_mav_put_uint8_t(buf, 53, height_reference);
|
||||
_mav_put_uint8_t(buf, 54, horizontal_accuracy);
|
||||
_mav_put_uint8_t(buf, 55, vertical_accuracy);
|
||||
_mav_put_uint8_t(buf, 56, barometer_accuracy);
|
||||
_mav_put_uint8_t(buf, 57, speed_accuracy);
|
||||
_mav_put_uint8_t(buf, 58, timestamp_accuracy);
|
||||
_mav_put_uint8_t_array(buf, 32, id_or_mac, 20);
|
||||
_mav_put_uint16_t(buf, 24, target_system);
|
||||
_mav_put_uint16_t(buf, 26, direction);
|
||||
_mav_put_uint16_t(buf, 28, speed_horizontal);
|
||||
_mav_put_int16_t(buf, 30, speed_vertical);
|
||||
_mav_put_uint8_t(buf, 32, target_component);
|
||||
_mav_put_uint8_t(buf, 53, status);
|
||||
_mav_put_uint8_t(buf, 54, height_reference);
|
||||
_mav_put_uint8_t(buf, 55, horizontal_accuracy);
|
||||
_mav_put_uint8_t(buf, 56, vertical_accuracy);
|
||||
_mav_put_uint8_t(buf, 57, barometer_accuracy);
|
||||
_mav_put_uint8_t(buf, 58, speed_accuracy);
|
||||
_mav_put_uint8_t(buf, 59, timestamp_accuracy);
|
||||
_mav_put_uint8_t_array(buf, 33, id_or_mac, 20);
|
||||
_mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_OPEN_DRONE_ID_LOCATION, buf, MAVLINK_MSG_ID_OPEN_DRONE_ID_LOCATION_MIN_LEN, MAVLINK_MSG_ID_OPEN_DRONE_ID_LOCATION_LEN, MAVLINK_MSG_ID_OPEN_DRONE_ID_LOCATION_CRC);
|
||||
#else
|
||||
mavlink_open_drone_id_location_t *packet = (mavlink_open_drone_id_location_t *)msgbuf;
|
||||
@@ -406,10 +406,10 @@ static inline void mavlink_msg_open_drone_id_location_send_buf(mavlink_message_t
|
||||
packet->altitude_geodetic = altitude_geodetic;
|
||||
packet->height = height;
|
||||
packet->timestamp = timestamp;
|
||||
packet->target_system = target_system;
|
||||
packet->direction = direction;
|
||||
packet->speed_horizontal = speed_horizontal;
|
||||
packet->speed_vertical = speed_vertical;
|
||||
packet->target_system = target_system;
|
||||
packet->target_component = target_component;
|
||||
packet->status = status;
|
||||
packet->height_reference = height_reference;
|
||||
@@ -434,9 +434,9 @@ static inline void mavlink_msg_open_drone_id_location_send_buf(mavlink_message_t
|
||||
*
|
||||
* @return System ID (0 for broadcast).
|
||||
*/
|
||||
static inline uint8_t mavlink_msg_open_drone_id_location_get_target_system(const mavlink_message_t* msg)
|
||||
static inline uint16_t mavlink_msg_open_drone_id_location_get_target_system(const mavlink_message_t* msg)
|
||||
{
|
||||
return _MAV_RETURN_uint8_t(msg, 30);
|
||||
return _MAV_RETURN_uint16_t(msg, 24);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -446,7 +446,7 @@ static inline uint8_t mavlink_msg_open_drone_id_location_get_target_system(const
|
||||
*/
|
||||
static inline uint8_t mavlink_msg_open_drone_id_location_get_target_component(const mavlink_message_t* msg)
|
||||
{
|
||||
return _MAV_RETURN_uint8_t(msg, 31);
|
||||
return _MAV_RETURN_uint8_t(msg, 32);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -456,7 +456,7 @@ static inline uint8_t mavlink_msg_open_drone_id_location_get_target_component(co
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_open_drone_id_location_get_id_or_mac(const mavlink_message_t* msg, uint8_t *id_or_mac)
|
||||
{
|
||||
return _MAV_RETURN_uint8_t_array(msg, id_or_mac, 20, 32);
|
||||
return _MAV_RETURN_uint8_t_array(msg, id_or_mac, 20, 33);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -466,7 +466,7 @@ static inline uint16_t mavlink_msg_open_drone_id_location_get_id_or_mac(const ma
|
||||
*/
|
||||
static inline uint8_t mavlink_msg_open_drone_id_location_get_status(const mavlink_message_t* msg)
|
||||
{
|
||||
return _MAV_RETURN_uint8_t(msg, 52);
|
||||
return _MAV_RETURN_uint8_t(msg, 53);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -476,7 +476,7 @@ static inline uint8_t mavlink_msg_open_drone_id_location_get_status(const mavlin
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_open_drone_id_location_get_direction(const mavlink_message_t* msg)
|
||||
{
|
||||
return _MAV_RETURN_uint16_t(msg, 24);
|
||||
return _MAV_RETURN_uint16_t(msg, 26);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -486,7 +486,7 @@ static inline uint16_t mavlink_msg_open_drone_id_location_get_direction(const ma
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_open_drone_id_location_get_speed_horizontal(const mavlink_message_t* msg)
|
||||
{
|
||||
return _MAV_RETURN_uint16_t(msg, 26);
|
||||
return _MAV_RETURN_uint16_t(msg, 28);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -496,7 +496,7 @@ static inline uint16_t mavlink_msg_open_drone_id_location_get_speed_horizontal(c
|
||||
*/
|
||||
static inline int16_t mavlink_msg_open_drone_id_location_get_speed_vertical(const mavlink_message_t* msg)
|
||||
{
|
||||
return _MAV_RETURN_int16_t(msg, 28);
|
||||
return _MAV_RETURN_int16_t(msg, 30);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -546,7 +546,7 @@ static inline float mavlink_msg_open_drone_id_location_get_altitude_geodetic(con
|
||||
*/
|
||||
static inline uint8_t mavlink_msg_open_drone_id_location_get_height_reference(const mavlink_message_t* msg)
|
||||
{
|
||||
return _MAV_RETURN_uint8_t(msg, 53);
|
||||
return _MAV_RETURN_uint8_t(msg, 54);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -566,7 +566,7 @@ static inline float mavlink_msg_open_drone_id_location_get_height(const mavlink_
|
||||
*/
|
||||
static inline uint8_t mavlink_msg_open_drone_id_location_get_horizontal_accuracy(const mavlink_message_t* msg)
|
||||
{
|
||||
return _MAV_RETURN_uint8_t(msg, 54);
|
||||
return _MAV_RETURN_uint8_t(msg, 55);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -576,7 +576,7 @@ static inline uint8_t mavlink_msg_open_drone_id_location_get_horizontal_accuracy
|
||||
*/
|
||||
static inline uint8_t mavlink_msg_open_drone_id_location_get_vertical_accuracy(const mavlink_message_t* msg)
|
||||
{
|
||||
return _MAV_RETURN_uint8_t(msg, 55);
|
||||
return _MAV_RETURN_uint8_t(msg, 56);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -586,7 +586,7 @@ static inline uint8_t mavlink_msg_open_drone_id_location_get_vertical_accuracy(c
|
||||
*/
|
||||
static inline uint8_t mavlink_msg_open_drone_id_location_get_barometer_accuracy(const mavlink_message_t* msg)
|
||||
{
|
||||
return _MAV_RETURN_uint8_t(msg, 56);
|
||||
return _MAV_RETURN_uint8_t(msg, 57);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -596,7 +596,7 @@ static inline uint8_t mavlink_msg_open_drone_id_location_get_barometer_accuracy(
|
||||
*/
|
||||
static inline uint8_t mavlink_msg_open_drone_id_location_get_speed_accuracy(const mavlink_message_t* msg)
|
||||
{
|
||||
return _MAV_RETURN_uint8_t(msg, 57);
|
||||
return _MAV_RETURN_uint8_t(msg, 58);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -616,7 +616,7 @@ static inline float mavlink_msg_open_drone_id_location_get_timestamp(const mavli
|
||||
*/
|
||||
static inline uint8_t mavlink_msg_open_drone_id_location_get_timestamp_accuracy(const mavlink_message_t* msg)
|
||||
{
|
||||
return _MAV_RETURN_uint8_t(msg, 58);
|
||||
return _MAV_RETURN_uint8_t(msg, 59);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -634,10 +634,10 @@ static inline void mavlink_msg_open_drone_id_location_decode(const mavlink_messa
|
||||
open_drone_id_location->altitude_geodetic = mavlink_msg_open_drone_id_location_get_altitude_geodetic(msg);
|
||||
open_drone_id_location->height = mavlink_msg_open_drone_id_location_get_height(msg);
|
||||
open_drone_id_location->timestamp = mavlink_msg_open_drone_id_location_get_timestamp(msg);
|
||||
open_drone_id_location->target_system = mavlink_msg_open_drone_id_location_get_target_system(msg);
|
||||
open_drone_id_location->direction = mavlink_msg_open_drone_id_location_get_direction(msg);
|
||||
open_drone_id_location->speed_horizontal = mavlink_msg_open_drone_id_location_get_speed_horizontal(msg);
|
||||
open_drone_id_location->speed_vertical = mavlink_msg_open_drone_id_location_get_speed_vertical(msg);
|
||||
open_drone_id_location->target_system = mavlink_msg_open_drone_id_location_get_target_system(msg);
|
||||
open_drone_id_location->target_component = mavlink_msg_open_drone_id_location_get_target_component(msg);
|
||||
mavlink_msg_open_drone_id_location_get_id_or_mac(msg, open_drone_id_location->id_or_mac);
|
||||
open_drone_id_location->status = mavlink_msg_open_drone_id_location_get_status(msg);
|
||||
|
||||
Reference in New Issue
Block a user