3 #define MAVLINK_MSG_ID_ATT_POS_MOCAP 138 14 #define MAVLINK_MSG_ID_ATT_POS_MOCAP_LEN 36 15 #define MAVLINK_MSG_ID_138_LEN 36 17 #define MAVLINK_MSG_ID_ATT_POS_MOCAP_CRC 109 18 #define MAVLINK_MSG_ID_138_CRC 109 20 #define MAVLINK_MSG_ATT_POS_MOCAP_FIELD_Q_LEN 4 22 #define MAVLINK_MESSAGE_INFO_ATT_POS_MOCAP { \ 25 { { "time_usec", NULL, MAVLINK_TYPE_UINT64_T, 0, 0, offsetof(mavlink_att_pos_mocap_t, time_usec) }, \ 26 { "q", NULL, MAVLINK_TYPE_FLOAT, 4, 8, offsetof(mavlink_att_pos_mocap_t, q) }, \ 27 { "x", NULL, MAVLINK_TYPE_FLOAT, 0, 24, offsetof(mavlink_att_pos_mocap_t, x) }, \ 28 { "y", NULL, MAVLINK_TYPE_FLOAT, 0, 28, offsetof(mavlink_att_pos_mocap_t, y) }, \ 29 { "z", NULL, MAVLINK_TYPE_FLOAT, 0, 32, offsetof(mavlink_att_pos_mocap_t, z) }, \ 48 uint64_t
time_usec,
const float *
q,
float x,
float y,
float z)
50 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS 56 _mav_put_float_array(buf, 8, q, 4);
90 mavlink_message_t* msg,
93 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS 99 _mav_put_float_array(buf, 8, q, 4);
112 #if MAVLINK_CRC_EXTRA 156 #ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS 160 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS 166 _mav_put_float_array(buf, 8,
q, 4);
167 #if MAVLINK_CRC_EXTRA 179 #if MAVLINK_CRC_EXTRA 187 #if MAVLINK_MSG_ID_ATT_POS_MOCAP_LEN <= MAVLINK_MAX_PAYLOAD_LEN 195 static inline void mavlink_msg_att_pos_mocap_send_buf(mavlink_message_t *msgbuf,
mavlink_channel_t chan, uint64_t
time_usec,
const float *
q,
float x,
float y,
float z)
197 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS 198 char *buf = (
char *)msgbuf;
203 _mav_put_float_array(buf, 8,
q, 4);
204 #if MAVLINK_CRC_EXTRA 216 #if MAVLINK_CRC_EXTRA 237 return _MAV_RETURN_uint64_t(msg, 0);
247 return _MAV_RETURN_float_array(msg, q, 4, 8);
257 return _MAV_RETURN_float(msg, 24);
267 return _MAV_RETURN_float(msg, 28);
277 return _MAV_RETURN_float(msg, 32);
288 #if MAVLINK_NEED_BYTE_SWAP #define _mav_put_float(buf, wire_offset, b)
#define MAVLINK_MSG_ID_ATT_POS_MOCAP
static uint16_t mavlink_msg_att_pos_mocap_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t *msg, const mavlink_att_pos_mocap_t *att_pos_mocap)
Encode a att_pos_mocap struct.
struct __mavlink_att_pos_mocap_t mavlink_att_pos_mocap_t
static uint64_t mavlink_msg_att_pos_mocap_get_time_usec(const mavlink_message_t *msg)
Send a att_pos_mocap message.
static void mavlink_msg_att_pos_mocap_decode(const mavlink_message_t *msg, mavlink_att_pos_mocap_t *att_pos_mocap)
Decode a att_pos_mocap message into a struct.
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_uint64_t(buf, wire_offset, b)
#define _MAV_PAYLOAD_NON_CONST(msg)
static float mavlink_msg_att_pos_mocap_get_y(const mavlink_message_t *msg)
Get field y from att_pos_mocap message.
static uint16_t mavlink_msg_att_pos_mocap_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t *msg, uint64_t time_usec, const float *q, float x, float y, float z)
Pack a att_pos_mocap message on a channel.
#define _MAV_PAYLOAD(msg)
static float mavlink_msg_att_pos_mocap_get_z(const mavlink_message_t *msg)
Get field z from att_pos_mocap message.
static void mav_array_memcpy(void *dest, const void *src, size_t n)
#define MAVLINK_MSG_ID_ATT_POS_MOCAP_CRC
static uint16_t mavlink_msg_att_pos_mocap_get_q(const mavlink_message_t *msg, float *q)
Get field q from att_pos_mocap message.
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.
static uint16_t mavlink_msg_att_pos_mocap_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t *msg, uint64_t time_usec, const float *q, float x, float y, float z)
Pack a att_pos_mocap message.
static uint16_t mavlink_msg_att_pos_mocap_encode_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t *msg, const mavlink_att_pos_mocap_t *att_pos_mocap)
Encode a att_pos_mocap struct on a channel.
#define MAVLINK_MSG_ID_ATT_POS_MOCAP_LEN
static float mavlink_msg_att_pos_mocap_get_x(const mavlink_message_t *msg)
Get field x from att_pos_mocap message.