3 #define MAVLINK_MSG_ID_GLOBAL_POSITION_INT 33 18 #define MAVLINK_MSG_ID_GLOBAL_POSITION_INT_LEN 28 19 #define MAVLINK_MSG_ID_33_LEN 28 21 #define MAVLINK_MSG_ID_GLOBAL_POSITION_INT_CRC 104 22 #define MAVLINK_MSG_ID_33_CRC 104 26 #define MAVLINK_MESSAGE_INFO_GLOBAL_POSITION_INT { \ 27 "GLOBAL_POSITION_INT", \ 29 { { "time_boot_ms", NULL, MAVLINK_TYPE_UINT32_T, 0, 0, offsetof(mavlink_global_position_int_t, time_boot_ms) }, \ 30 { "lat", NULL, MAVLINK_TYPE_INT32_T, 0, 4, offsetof(mavlink_global_position_int_t, lat) }, \ 31 { "lon", NULL, MAVLINK_TYPE_INT32_T, 0, 8, offsetof(mavlink_global_position_int_t, lon) }, \ 32 { "alt", NULL, MAVLINK_TYPE_INT32_T, 0, 12, offsetof(mavlink_global_position_int_t, alt) }, \ 33 { "relative_alt", NULL, MAVLINK_TYPE_INT32_T, 0, 16, offsetof(mavlink_global_position_int_t, relative_alt) }, \ 34 { "vx", NULL, MAVLINK_TYPE_INT16_T, 0, 20, offsetof(mavlink_global_position_int_t, vx) }, \ 35 { "vy", NULL, MAVLINK_TYPE_INT16_T, 0, 22, offsetof(mavlink_global_position_int_t, vy) }, \ 36 { "vz", NULL, MAVLINK_TYPE_INT16_T, 0, 24, offsetof(mavlink_global_position_int_t, vz) }, \ 37 { "hdg", NULL, MAVLINK_TYPE_UINT16_T, 0, 26, offsetof(mavlink_global_position_int_t, hdg) }, \ 62 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS 116 mavlink_message_t* msg,
119 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS 148 #if MAVLINK_CRC_EXTRA 165 return mavlink_msg_global_position_int_pack(system_id, component_id, msg, global_position_int->
time_boot_ms, global_position_int->
lat, global_position_int->
lon, global_position_int->
alt, global_position_int->
relative_alt, global_position_int->
vx, global_position_int->
vy, global_position_int->
vz, global_position_int->
hdg);
179 return mavlink_msg_global_position_int_pack_chan(system_id, component_id, chan, msg, global_position_int->
time_boot_ms, global_position_int->
lat, global_position_int->
lon, global_position_int->
alt, global_position_int->
relative_alt, global_position_int->
vx, global_position_int->
vy, global_position_int->
vz, global_position_int->
hdg);
196 #ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS 200 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS 212 #if MAVLINK_CRC_EXTRA 229 #if MAVLINK_CRC_EXTRA 237 #if MAVLINK_MSG_ID_GLOBAL_POSITION_INT_LEN <= MAVLINK_MAX_PAYLOAD_LEN 245 static inline void mavlink_msg_global_position_int_send_buf(mavlink_message_t *msgbuf,
mavlink_channel_t chan, uint32_t
time_boot_ms, int32_t
lat, int32_t
lon, int32_t
alt, int32_t
relative_alt, int16_t
vx, int16_t
vy, int16_t
vz, uint16_t
hdg)
247 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS 248 char *buf = (
char *)msgbuf;
259 #if MAVLINK_CRC_EXTRA 276 #if MAVLINK_CRC_EXTRA 297 return _MAV_RETURN_uint32_t(msg, 0);
307 return _MAV_RETURN_int32_t(msg, 4);
317 return _MAV_RETURN_int32_t(msg, 8);
327 return _MAV_RETURN_int32_t(msg, 12);
337 return _MAV_RETURN_int32_t(msg, 16);
347 return _MAV_RETURN_int16_t(msg, 20);
357 return _MAV_RETURN_int16_t(msg, 22);
367 return _MAV_RETURN_int16_t(msg, 24);
377 return _MAV_RETURN_uint16_t(msg, 26);
388 #if MAVLINK_NEED_BYTE_SWAP static int32_t mavlink_msg_global_position_int_get_alt(const mavlink_message_t *msg)
Get field alt from global_position_int message.
static uint32_t mavlink_msg_global_position_int_get_time_boot_ms(const mavlink_message_t *msg)
Send a global_position_int message.
static int32_t mavlink_msg_global_position_int_get_lat(const mavlink_message_t *msg)
Get field lat from global_position_int message.
static int32_t mavlink_msg_global_position_int_get_relative_alt(const mavlink_message_t *msg)
Get field relative_alt from global_position_int message.
static uint16_t mavlink_msg_global_position_int_encode_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t *msg, const mavlink_global_position_int_t *global_position_int)
Encode a global_position_int struct on a channel.
MAVLINK_HELPER uint16_t mavlink_finalize_message(mavlink_message_t *msg, uint8_t system_id, uint8_t component_id, uint8_t length)
Finalize a MAVLink message with MAVLINK_COMM_0 as default channel.
#define _mav_put_int32_t(buf, wire_offset, b)
#define _MAV_PAYLOAD_NON_CONST(msg)
static uint16_t mavlink_msg_global_position_int_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t *msg, uint32_t time_boot_ms, int32_t lat, int32_t lon, int32_t alt, int32_t relative_alt, int16_t vx, int16_t vy, int16_t vz, uint16_t hdg)
Pack a global_position_int message.
static int16_t mavlink_msg_global_position_int_get_vz(const mavlink_message_t *msg)
Get field vz from global_position_int message.
#define _MAV_PAYLOAD(msg)
#define MAVLINK_MSG_ID_GLOBAL_POSITION_INT_LEN
static int32_t mavlink_msg_global_position_int_get_lon(const mavlink_message_t *msg)
Get field lon from global_position_int message.
static int16_t mavlink_msg_global_position_int_get_vx(const mavlink_message_t *msg)
Get field vx from global_position_int message.
static void mavlink_msg_global_position_int_decode(const mavlink_message_t *msg, mavlink_global_position_int_t *global_position_int)
Decode a global_position_int message into a struct.
#define MAVLINK_MSG_ID_GLOBAL_POSITION_INT_CRC
static uint16_t mavlink_msg_global_position_int_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t *msg, const mavlink_global_position_int_t *global_position_int)
Encode a global_position_int struct.
#define MAVLINK_MSG_ID_GLOBAL_POSITION_INT
#define _mav_put_uint16_t(buf, wire_offset, b)
static uint16_t mavlink_msg_global_position_int_get_hdg(const mavlink_message_t *msg)
Get field hdg from global_position_int message.
static uint16_t mavlink_msg_global_position_int_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t *msg, uint32_t time_boot_ms, int32_t lat, int32_t lon, int32_t alt, int32_t relative_alt, int16_t vx, int16_t vy, int16_t vz, uint16_t hdg)
Pack a global_position_int message on a channel.
MAVLINK_HELPER uint16_t mavlink_finalize_message_chan(mavlink_message_t *msg, uint8_t system_id, uint8_t component_id, uint8_t chan, uint8_t length)
Finalize a MAVLink message with channel assignment.
#define _mav_put_int16_t(buf, wire_offset, b)
struct __mavlink_global_position_int_t mavlink_global_position_int_t
static int16_t mavlink_msg_global_position_int_get_vy(const mavlink_message_t *msg)
Get field vy from global_position_int message.
#define _mav_put_uint32_t(buf, wire_offset, b)