3 #define MAVLINK_MSG_ID_ATTITUDE_QUATERNION_COV 61 15 #define MAVLINK_MSG_ID_ATTITUDE_QUATERNION_COV_LEN 68 16 #define MAVLINK_MSG_ID_61_LEN 68 18 #define MAVLINK_MSG_ID_ATTITUDE_QUATERNION_COV_CRC 153 19 #define MAVLINK_MSG_ID_61_CRC 153 21 #define MAVLINK_MSG_ATTITUDE_QUATERNION_COV_FIELD_Q_LEN 4 22 #define MAVLINK_MSG_ATTITUDE_QUATERNION_COV_FIELD_COVARIANCE_LEN 9 24 #define MAVLINK_MESSAGE_INFO_ATTITUDE_QUATERNION_COV { \ 25 "ATTITUDE_QUATERNION_COV", \ 27 { { "time_boot_ms", NULL, MAVLINK_TYPE_UINT32_T, 0, 0, offsetof(mavlink_attitude_quaternion_cov_t, time_boot_ms) }, \ 28 { "q", NULL, MAVLINK_TYPE_FLOAT, 4, 4, offsetof(mavlink_attitude_quaternion_cov_t, q) }, \ 29 { "rollspeed", NULL, MAVLINK_TYPE_FLOAT, 0, 20, offsetof(mavlink_attitude_quaternion_cov_t, rollspeed) }, \ 30 { "pitchspeed", NULL, MAVLINK_TYPE_FLOAT, 0, 24, offsetof(mavlink_attitude_quaternion_cov_t, pitchspeed) }, \ 31 { "yawspeed", NULL, MAVLINK_TYPE_FLOAT, 0, 28, offsetof(mavlink_attitude_quaternion_cov_t, yawspeed) }, \ 32 { "covariance", NULL, MAVLINK_TYPE_FLOAT, 9, 32, offsetof(mavlink_attitude_quaternion_cov_t, covariance) }, \ 54 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS 60 _mav_put_float_array(buf, 4, q, 4);
61 _mav_put_float_array(buf, 32, covariance, 9);
97 mavlink_message_t* msg,
100 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS 106 _mav_put_float_array(buf, 4, q, 4);
107 _mav_put_float_array(buf, 32, covariance, 9);
121 #if MAVLINK_CRC_EXTRA 166 #ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS 170 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS 176 _mav_put_float_array(buf, 4,
q, 4);
177 _mav_put_float_array(buf, 32, covariance, 9);
178 #if MAVLINK_CRC_EXTRA 191 #if MAVLINK_CRC_EXTRA 199 #if MAVLINK_MSG_ID_ATTITUDE_QUATERNION_COV_LEN <= MAVLINK_MAX_PAYLOAD_LEN 209 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS 210 char *buf = (
char *)msgbuf;
215 _mav_put_float_array(buf, 4,
q, 4);
216 _mav_put_float_array(buf, 32, covariance, 9);
217 #if MAVLINK_CRC_EXTRA 230 #if MAVLINK_CRC_EXTRA 251 return _MAV_RETURN_uint32_t(msg, 0);
261 return _MAV_RETURN_float_array(msg, q, 4, 4);
271 return _MAV_RETURN_float(msg, 20);
281 return _MAV_RETURN_float(msg, 24);
291 return _MAV_RETURN_float(msg, 28);
301 return _MAV_RETURN_float_array(msg, covariance, 9, 32);
312 #if MAVLINK_NEED_BYTE_SWAP #define _mav_put_float(buf, wire_offset, b)
static uint16_t mavlink_msg_attitude_quaternion_cov_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t *msg, uint32_t time_boot_ms, const float *q, float rollspeed, float pitchspeed, float yawspeed, const float *covariance)
Pack a attitude_quaternion_cov message on a channel.
static float mavlink_msg_attitude_quaternion_cov_get_yawspeed(const mavlink_message_t *msg)
Get field yawspeed from attitude_quaternion_cov message.
#define MAVLINK_MSG_ID_ATTITUDE_QUATERNION_COV
static uint16_t mavlink_msg_attitude_quaternion_cov_encode_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t *msg, const mavlink_attitude_quaternion_cov_t *attitude_quaternion_cov)
Encode a attitude_quaternion_cov 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_PAYLOAD_NON_CONST(msg)
static uint16_t mavlink_msg_attitude_quaternion_cov_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t *msg, const mavlink_attitude_quaternion_cov_t *attitude_quaternion_cov)
Encode a attitude_quaternion_cov struct.
#define _MAV_PAYLOAD(msg)
static float mavlink_msg_attitude_quaternion_cov_get_rollspeed(const mavlink_message_t *msg)
Get field rollspeed from attitude_quaternion_cov message.
#define MAVLINK_MSG_ID_ATTITUDE_QUATERNION_COV_CRC
static float mavlink_msg_attitude_quaternion_cov_get_pitchspeed(const mavlink_message_t *msg)
Get field pitchspeed from attitude_quaternion_cov message.
static uint32_t mavlink_msg_attitude_quaternion_cov_get_time_boot_ms(const mavlink_message_t *msg)
Send a attitude_quaternion_cov message.
static void mav_array_memcpy(void *dest, const void *src, size_t n)
static uint16_t mavlink_msg_attitude_quaternion_cov_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t *msg, uint32_t time_boot_ms, const float *q, float rollspeed, float pitchspeed, float yawspeed, const float *covariance)
Pack a attitude_quaternion_cov message.
static void mavlink_msg_attitude_quaternion_cov_decode(const mavlink_message_t *msg, mavlink_attitude_quaternion_cov_t *attitude_quaternion_cov)
Decode a attitude_quaternion_cov message into a struct.
static uint16_t mavlink_msg_attitude_quaternion_cov_get_covariance(const mavlink_message_t *msg, float *covariance)
Get field covariance from attitude_quaternion_cov message.
#define MAVLINK_MSG_ID_ATTITUDE_QUATERNION_COV_LEN
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_attitude_quaternion_cov_get_q(const mavlink_message_t *msg, float *q)
Get field q from attitude_quaternion_cov message.
struct __mavlink_attitude_quaternion_cov_t mavlink_attitude_quaternion_cov_t
#define _mav_put_uint32_t(buf, wire_offset, b)