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) }, \
77 static inline uint16_t mavlink_msg_highres_imu_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
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
105 packet.
xgyro = xgyro;
106 packet.
ygyro = ygyro;
107 packet.
zgyro = zgyro;
121 #if MAVLINK_CRC_EXTRA
151 static inline uint16_t mavlink_msg_highres_imu_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan,
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
180 packet.
xgyro = xgyro;
181 packet.
ygyro = ygyro;
182 packet.
zgyro = zgyro;
196 #if MAVLINK_CRC_EXTRA
211 static inline 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)
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);
225 static inline 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)
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
283 packet.
xgyro = xgyro;
284 packet.
ygyro = ygyro;
285 packet.
zgyro = zgyro;
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
342 packet->
xgyro = xgyro;
343 packet->
ygyro = ygyro;
344 packet->
zgyro = zgyro;
354 #if MAVLINK_CRC_EXTRA
373 static inline uint64_t mavlink_msg_highres_imu_get_time_usec(
const mavlink_message_t* msg)
375 return _MAV_RETURN_uint64_t(msg, 0);
383 static inline float mavlink_msg_highres_imu_get_xacc(
const mavlink_message_t* msg)
385 return _MAV_RETURN_float(msg, 8);
393 static inline float mavlink_msg_highres_imu_get_yacc(
const mavlink_message_t* msg)
395 return _MAV_RETURN_float(msg, 12);
403 static inline float mavlink_msg_highres_imu_get_zacc(
const mavlink_message_t* msg)
405 return _MAV_RETURN_float(msg, 16);
413 static inline float mavlink_msg_highres_imu_get_xgyro(
const mavlink_message_t* msg)
415 return _MAV_RETURN_float(msg, 20);
423 static inline float mavlink_msg_highres_imu_get_ygyro(
const mavlink_message_t* msg)
425 return _MAV_RETURN_float(msg, 24);
433 static inline float mavlink_msg_highres_imu_get_zgyro(
const mavlink_message_t* msg)
435 return _MAV_RETURN_float(msg, 28);
443 static inline float mavlink_msg_highres_imu_get_xmag(
const mavlink_message_t* msg)
445 return _MAV_RETURN_float(msg, 32);
453 static inline float mavlink_msg_highres_imu_get_ymag(
const mavlink_message_t* msg)
455 return _MAV_RETURN_float(msg, 36);
463 static inline float mavlink_msg_highres_imu_get_zmag(
const mavlink_message_t* msg)
465 return _MAV_RETURN_float(msg, 40);
473 static inline float mavlink_msg_highres_imu_get_abs_pressure(
const mavlink_message_t* msg)
475 return _MAV_RETURN_float(msg, 44);
483 static inline float mavlink_msg_highres_imu_get_diff_pressure(
const mavlink_message_t* msg)
485 return _MAV_RETURN_float(msg, 48);
493 static inline float mavlink_msg_highres_imu_get_pressure_alt(
const mavlink_message_t* msg)
495 return _MAV_RETURN_float(msg, 52);
503 static inline float mavlink_msg_highres_imu_get_temperature(
const mavlink_message_t* msg)
505 return _MAV_RETURN_float(msg, 56);
513 static inline uint16_t mavlink_msg_highres_imu_get_fields_updated(
const mavlink_message_t* msg)
515 return _MAV_RETURN_uint16_t(msg, 60);
524 static inline void mavlink_msg_highres_imu_decode(
const mavlink_message_t* msg,
mavlink_highres_imu_t* highres_imu)
526 #if MAVLINK_NEED_BYTE_SWAP
527 highres_imu->
time_usec = mavlink_msg_highres_imu_get_time_usec(msg);
528 highres_imu->
xacc = mavlink_msg_highres_imu_get_xacc(msg);
529 highres_imu->
yacc = mavlink_msg_highres_imu_get_yacc(msg);
530 highres_imu->
zacc = mavlink_msg_highres_imu_get_zacc(msg);
531 highres_imu->
xgyro = mavlink_msg_highres_imu_get_xgyro(msg);
532 highres_imu->
ygyro = mavlink_msg_highres_imu_get_ygyro(msg);
533 highres_imu->
zgyro = mavlink_msg_highres_imu_get_zgyro(msg);
534 highres_imu->
xmag = mavlink_msg_highres_imu_get_xmag(msg);
535 highres_imu->
ymag = mavlink_msg_highres_imu_get_ymag(msg);
536 highres_imu->
zmag = mavlink_msg_highres_imu_get_zmag(msg);
537 highres_imu->
abs_pressure = mavlink_msg_highres_imu_get_abs_pressure(msg);
538 highres_imu->
diff_pressure = mavlink_msg_highres_imu_get_diff_pressure(msg);
539 highres_imu->
pressure_alt = mavlink_msg_highres_imu_get_pressure_alt(msg);
540 highres_imu->
temperature = mavlink_msg_highres_imu_get_temperature(msg);
541 highres_imu->
fields_updated = mavlink_msg_highres_imu_get_fields_updated(msg);
#define _mav_put_float(buf, wire_offset, b)
Definition: protocol.h:145
float ygyro
Angular speed around Y axis (rad / sec)
Definition: mavlink_msg_highres_imu.h:12
float xgyro
Angular speed around X axis (rad / sec)
Definition: mavlink_msg_highres_imu.h:11
#define MAVLINK_MSG_ID_HIGHRES_IMU
Definition: mavlink_msg_highres_imu.h:3
#define MAVLINK_MSG_ID_HIGHRES_IMU_CRC
Definition: mavlink_msg_highres_imu.h:27
float zgyro
Angular speed around Z axis (rad / sec)
Definition: mavlink_msg_highres_imu.h:13
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.
Definition: mavlink_helpers.h:105
#define _mav_put_uint64_t(buf, wire_offset, b)
Definition: protocol.h:143
#define _MAV_PAYLOAD_NON_CONST(msg)
Definition: mavlink_types.h:172
uint16_t fields_updated
Bitmask for fields that have updated since last message, bit 0 = xacc, bit 12: temperature.
Definition: mavlink_msg_highres_imu.h:21
float zacc
Z acceleration (m/s^2)
Definition: mavlink_msg_highres_imu.h:10
mavlink_channel_t
Definition: mavlink_types.h:178
#define _MAV_PAYLOAD(msg)
Definition: mavlink_types.h:171
float xmag
X Magnetic field (Gauss)
Definition: mavlink_msg_highres_imu.h:14
float temperature
Temperature in degrees celsius.
Definition: mavlink_msg_highres_imu.h:20
struct __mavlink_highres_imu_t mavlink_highres_imu_t
float zmag
Z Magnetic field (Gauss)
Definition: mavlink_msg_highres_imu.h:16
float diff_pressure
Differential pressure in millibar.
Definition: mavlink_msg_highres_imu.h:18
float ymag
Y Magnetic field (Gauss)
Definition: mavlink_msg_highres_imu.h:15
Definition: mavlink_msg_highres_imu.h:5
#define MAVLINK_MSG_ID_HIGHRES_IMU_LEN
Definition: mavlink_msg_highres_imu.h:24
uint64_t time_usec
Timestamp (microseconds, synced to UNIX time or since system boot)
Definition: mavlink_msg_highres_imu.h:7
float abs_pressure
Absolute pressure in millibar.
Definition: mavlink_msg_highres_imu.h:17
float xacc
X acceleration (m/s^2)
Definition: mavlink_msg_highres_imu.h:8
#define _mav_put_uint16_t(buf, wire_offset, b)
Definition: protocol.h:139
float pressure_alt
Altitude calculated from pressure.
Definition: mavlink_msg_highres_imu.h:19
float yacc
Y acceleration (m/s^2)
Definition: mavlink_msg_highres_imu.h:9
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.
Definition: mavlink_helpers.h:71