3 #define MAVLINK_MSG_ID_HIGHRES_IMU 105 24 #define MAVLINK_MSG_ID_HIGHRES_IMU_LEN 62 25 #define MAVLINK_MSG_ID_105_LEN 62 27 #define MAVLINK_MSG_ID_HIGHRES_IMU_CRC 93 28 #define MAVLINK_MSG_ID_105_CRC 93 32 #define MAVLINK_MESSAGE_INFO_HIGHRES_IMU { \ 35 { { "time_usec", NULL, MAVLINK_TYPE_UINT64_T, 0, 0, offsetof(mavlink_highres_imu_t, time_usec) }, \ 36 { "xacc", NULL, MAVLINK_TYPE_FLOAT, 0, 8, offsetof(mavlink_highres_imu_t, xacc) }, \ 37 { "yacc", NULL, MAVLINK_TYPE_FLOAT, 0, 12, offsetof(mavlink_highres_imu_t, yacc) }, \ 38 { "zacc", NULL, MAVLINK_TYPE_FLOAT, 0, 16, offsetof(mavlink_highres_imu_t, zacc) }, \ 39 { "xgyro", NULL, MAVLINK_TYPE_FLOAT, 0, 20, offsetof(mavlink_highres_imu_t, xgyro) }, \ 40 { "ygyro", NULL, MAVLINK_TYPE_FLOAT, 0, 24, offsetof(mavlink_highres_imu_t, ygyro) }, \ 41 { "zgyro", NULL, MAVLINK_TYPE_FLOAT, 0, 28, offsetof(mavlink_highres_imu_t, zgyro) }, \ 42 { "xmag", NULL, MAVLINK_TYPE_FLOAT, 0, 32, offsetof(mavlink_highres_imu_t, xmag) }, \ 43 { "ymag", NULL, MAVLINK_TYPE_FLOAT, 0, 36, offsetof(mavlink_highres_imu_t, ymag) }, \ 44 { "zmag", NULL, MAVLINK_TYPE_FLOAT, 0, 40, offsetof(mavlink_highres_imu_t, zmag) }, \ 45 { "abs_pressure", NULL, MAVLINK_TYPE_FLOAT, 0, 44, offsetof(mavlink_highres_imu_t, abs_pressure) }, \ 46 { "diff_pressure", NULL, MAVLINK_TYPE_FLOAT, 0, 48, offsetof(mavlink_highres_imu_t, diff_pressure) }, \ 47 { "pressure_alt", NULL, MAVLINK_TYPE_FLOAT, 0, 52, offsetof(mavlink_highres_imu_t, pressure_alt) }, \ 48 { "temperature", NULL, MAVLINK_TYPE_FLOAT, 0, 56, offsetof(mavlink_highres_imu_t, temperature) }, \ 49 { "fields_updated", NULL, MAVLINK_TYPE_UINT16_T, 0, 60, offsetof(mavlink_highres_imu_t, fields_updated) }, \ 78 uint64_t
time_usec,
float xacc,
float yacc,
float zacc,
float xgyro,
float ygyro,
float zgyro,
float xmag,
float ymag,
float zmag,
float abs_pressure,
float diff_pressure,
float pressure_alt,
float temperature, uint16_t
fields_updated)
80 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS 121 #if MAVLINK_CRC_EXTRA 152 mavlink_message_t* msg,
153 uint64_t
time_usec,
float xacc,
float yacc,
float zacc,
float xgyro,
float ygyro,
float zgyro,
float xmag,
float ymag,
float zmag,
float abs_pressure,
float diff_pressure,
float pressure_alt,
float temperature,uint16_t
fields_updated)
155 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS 196 #if MAVLINK_CRC_EXTRA 213 return mavlink_msg_highres_imu_pack(system_id, component_id, msg, highres_imu->
time_usec, highres_imu->
xacc, highres_imu->
yacc, highres_imu->
zacc, highres_imu->
xgyro, highres_imu->
ygyro, highres_imu->
zgyro, highres_imu->
xmag, highres_imu->
ymag, highres_imu->
zmag, highres_imu->
abs_pressure, highres_imu->
diff_pressure, highres_imu->
pressure_alt, highres_imu->
temperature, highres_imu->
fields_updated);
227 return mavlink_msg_highres_imu_pack_chan(system_id, component_id, chan, msg, highres_imu->
time_usec, highres_imu->
xacc, highres_imu->
yacc, highres_imu->
zacc, highres_imu->
xgyro, highres_imu->
ygyro, highres_imu->
zgyro, highres_imu->
xmag, highres_imu->
ymag, highres_imu->
zmag, highres_imu->
abs_pressure, highres_imu->
diff_pressure, highres_imu->
pressure_alt, highres_imu->
temperature, highres_imu->
fields_updated);
250 #ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS 252 static inline void mavlink_msg_highres_imu_send(
mavlink_channel_t chan, uint64_t
time_usec,
float xacc,
float yacc,
float zacc,
float xgyro,
float ygyro,
float zgyro,
float xmag,
float ymag,
float zmag,
float abs_pressure,
float diff_pressure,
float pressure_alt,
float temperature, uint16_t
fields_updated)
254 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS 272 #if MAVLINK_CRC_EXTRA 295 #if MAVLINK_CRC_EXTRA 303 #if MAVLINK_MSG_ID_HIGHRES_IMU_LEN <= MAVLINK_MAX_PAYLOAD_LEN 311 static inline void mavlink_msg_highres_imu_send_buf(mavlink_message_t *msgbuf,
mavlink_channel_t chan, uint64_t
time_usec,
float xacc,
float yacc,
float zacc,
float xgyro,
float ygyro,
float zgyro,
float xmag,
float ymag,
float zmag,
float abs_pressure,
float diff_pressure,
float pressure_alt,
float temperature, uint16_t
fields_updated)
313 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS 314 char *buf = (
char *)msgbuf;
331 #if MAVLINK_CRC_EXTRA 354 #if MAVLINK_CRC_EXTRA 375 return _MAV_RETURN_uint64_t(msg, 0);
385 return _MAV_RETURN_float(msg, 8);
395 return _MAV_RETURN_float(msg, 12);
405 return _MAV_RETURN_float(msg, 16);
415 return _MAV_RETURN_float(msg, 20);
425 return _MAV_RETURN_float(msg, 24);
435 return _MAV_RETURN_float(msg, 28);
445 return _MAV_RETURN_float(msg, 32);
455 return _MAV_RETURN_float(msg, 36);
465 return _MAV_RETURN_float(msg, 40);
475 return _MAV_RETURN_float(msg, 44);
485 return _MAV_RETURN_float(msg, 48);
495 return _MAV_RETURN_float(msg, 52);
505 return _MAV_RETURN_float(msg, 56);
515 return _MAV_RETURN_uint16_t(msg, 60);
526 #if MAVLINK_NEED_BYTE_SWAP static float mavlink_msg_highres_imu_get_xmag(const mavlink_message_t *msg)
Get field xmag from highres_imu message.
#define _mav_put_float(buf, wire_offset, b)
static float mavlink_msg_highres_imu_get_temperature(const mavlink_message_t *msg)
Get field temperature from highres_imu message.
static uint16_t mavlink_msg_highres_imu_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t *msg, uint64_t time_usec, float xacc, float yacc, float zacc, float xgyro, float ygyro, float zgyro, float xmag, float ymag, float zmag, float abs_pressure, float diff_pressure, float pressure_alt, float temperature, uint16_t fields_updated)
Pack a highres_imu message.
#define MAVLINK_MSG_ID_HIGHRES_IMU
#define MAVLINK_MSG_ID_HIGHRES_IMU_CRC
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)
static uint16_t mavlink_msg_highres_imu_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t *msg, const mavlink_highres_imu_t *highres_imu)
Encode a highres_imu struct.
#define _MAV_PAYLOAD_NON_CONST(msg)
static float mavlink_msg_highres_imu_get_yacc(const mavlink_message_t *msg)
Get field yacc from highres_imu message.
static float mavlink_msg_highres_imu_get_zmag(const mavlink_message_t *msg)
Get field zmag from highres_imu message.
#define _MAV_PAYLOAD(msg)
static float mavlink_msg_highres_imu_get_ymag(const mavlink_message_t *msg)
Get field ymag from highres_imu message.
struct __mavlink_highres_imu_t mavlink_highres_imu_t
static float mavlink_msg_highres_imu_get_xacc(const mavlink_message_t *msg)
Get field xacc from highres_imu message.
static float mavlink_msg_highres_imu_get_diff_pressure(const mavlink_message_t *msg)
Get field diff_pressure from highres_imu message.
static uint16_t mavlink_msg_highres_imu_get_fields_updated(const mavlink_message_t *msg)
Get field fields_updated from highres_imu message.
static float mavlink_msg_highres_imu_get_ygyro(const mavlink_message_t *msg)
Get field ygyro from highres_imu message.
#define MAVLINK_MSG_ID_HIGHRES_IMU_LEN
static void mavlink_msg_highres_imu_decode(const mavlink_message_t *msg, mavlink_highres_imu_t *highres_imu)
Decode a highres_imu message into a struct.
static float mavlink_msg_highres_imu_get_abs_pressure(const mavlink_message_t *msg)
Get field abs_pressure from highres_imu message.
#define _mav_put_uint16_t(buf, wire_offset, b)
static float mavlink_msg_highres_imu_get_xgyro(const mavlink_message_t *msg)
Get field xgyro from highres_imu message.
static uint64_t mavlink_msg_highres_imu_get_time_usec(const mavlink_message_t *msg)
Send a highres_imu message.
static float mavlink_msg_highres_imu_get_pressure_alt(const mavlink_message_t *msg)
Get field pressure_alt from highres_imu 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_highres_imu_encode_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t *msg, const mavlink_highres_imu_t *highres_imu)
Encode a highres_imu struct on a channel.
static uint16_t mavlink_msg_highres_imu_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t *msg, uint64_t time_usec, float xacc, float yacc, float zacc, float xgyro, float ygyro, float zgyro, float xmag, float ymag, float zmag, float abs_pressure, float diff_pressure, float pressure_alt, float temperature, uint16_t fields_updated)
Pack a highres_imu message on a channel.
static float mavlink_msg_highres_imu_get_zgyro(const mavlink_message_t *msg)
Get field zgyro from highres_imu message.
static float mavlink_msg_highres_imu_get_zacc(const mavlink_message_t *msg)
Get field zacc from highres_imu message.