3 #define MAVLINK_MSG_ID_HIL_SENSOR 107 24 #define MAVLINK_MSG_ID_HIL_SENSOR_LEN 64 25 #define MAVLINK_MSG_ID_107_LEN 64 27 #define MAVLINK_MSG_ID_HIL_SENSOR_CRC 108 28 #define MAVLINK_MSG_ID_107_CRC 108 32 #define MAVLINK_MESSAGE_INFO_HIL_SENSOR { \ 35 { { "time_usec", NULL, MAVLINK_TYPE_UINT64_T, 0, 0, offsetof(mavlink_hil_sensor_t, time_usec) }, \ 36 { "xacc", NULL, MAVLINK_TYPE_FLOAT, 0, 8, offsetof(mavlink_hil_sensor_t, xacc) }, \ 37 { "yacc", NULL, MAVLINK_TYPE_FLOAT, 0, 12, offsetof(mavlink_hil_sensor_t, yacc) }, \ 38 { "zacc", NULL, MAVLINK_TYPE_FLOAT, 0, 16, offsetof(mavlink_hil_sensor_t, zacc) }, \ 39 { "xgyro", NULL, MAVLINK_TYPE_FLOAT, 0, 20, offsetof(mavlink_hil_sensor_t, xgyro) }, \ 40 { "ygyro", NULL, MAVLINK_TYPE_FLOAT, 0, 24, offsetof(mavlink_hil_sensor_t, ygyro) }, \ 41 { "zgyro", NULL, MAVLINK_TYPE_FLOAT, 0, 28, offsetof(mavlink_hil_sensor_t, zgyro) }, \ 42 { "xmag", NULL, MAVLINK_TYPE_FLOAT, 0, 32, offsetof(mavlink_hil_sensor_t, xmag) }, \ 43 { "ymag", NULL, MAVLINK_TYPE_FLOAT, 0, 36, offsetof(mavlink_hil_sensor_t, ymag) }, \ 44 { "zmag", NULL, MAVLINK_TYPE_FLOAT, 0, 40, offsetof(mavlink_hil_sensor_t, zmag) }, \ 45 { "abs_pressure", NULL, MAVLINK_TYPE_FLOAT, 0, 44, offsetof(mavlink_hil_sensor_t, abs_pressure) }, \ 46 { "diff_pressure", NULL, MAVLINK_TYPE_FLOAT, 0, 48, offsetof(mavlink_hil_sensor_t, diff_pressure) }, \ 47 { "pressure_alt", NULL, MAVLINK_TYPE_FLOAT, 0, 52, offsetof(mavlink_hil_sensor_t, pressure_alt) }, \ 48 { "temperature", NULL, MAVLINK_TYPE_FLOAT, 0, 56, offsetof(mavlink_hil_sensor_t, temperature) }, \ 49 { "fields_updated", NULL, MAVLINK_TYPE_UINT32_T, 0, 60, offsetof(mavlink_hil_sensor_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, uint32_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,uint32_t
fields_updated)
155 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS 196 #if MAVLINK_CRC_EXTRA 213 return mavlink_msg_hil_sensor_pack(system_id, component_id, msg, hil_sensor->
time_usec, hil_sensor->
xacc, hil_sensor->
yacc, hil_sensor->
zacc, hil_sensor->
xgyro, hil_sensor->
ygyro, hil_sensor->
zgyro, hil_sensor->
xmag, hil_sensor->
ymag, hil_sensor->
zmag, hil_sensor->
abs_pressure, hil_sensor->
diff_pressure, hil_sensor->
pressure_alt, hil_sensor->
temperature, hil_sensor->
fields_updated);
227 return mavlink_msg_hil_sensor_pack_chan(system_id, component_id, chan, msg, hil_sensor->
time_usec, hil_sensor->
xacc, hil_sensor->
yacc, hil_sensor->
zacc, hil_sensor->
xgyro, hil_sensor->
ygyro, hil_sensor->
zgyro, hil_sensor->
xmag, hil_sensor->
ymag, hil_sensor->
zmag, hil_sensor->
abs_pressure, hil_sensor->
diff_pressure, hil_sensor->
pressure_alt, hil_sensor->
temperature, hil_sensor->
fields_updated);
250 #ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS 252 static inline void mavlink_msg_hil_sensor_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, uint32_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_HIL_SENSOR_LEN <= MAVLINK_MAX_PAYLOAD_LEN 311 static inline void mavlink_msg_hil_sensor_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, uint32_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_uint32_t(msg, 60);
526 #if MAVLINK_NEED_BYTE_SWAP static float mavlink_msg_hil_sensor_get_xgyro(const mavlink_message_t *msg)
Get field xgyro from hil_sensor message.
#define _mav_put_float(buf, wire_offset, b)
#define MAVLINK_MSG_ID_HIL_SENSOR_CRC
static float mavlink_msg_hil_sensor_get_ymag(const mavlink_message_t *msg)
Get field ymag from hil_sensor message.
struct __mavlink_hil_sensor_t mavlink_hil_sensor_t
static float mavlink_msg_hil_sensor_get_zacc(const mavlink_message_t *msg)
Get field zacc from hil_sensor message.
#define MAVLINK_MSG_ID_HIL_SENSOR_LEN
static float mavlink_msg_hil_sensor_get_pressure_alt(const mavlink_message_t *msg)
Get field pressure_alt from hil_sensor message.
static float mavlink_msg_hil_sensor_get_xmag(const mavlink_message_t *msg)
Get field xmag from hil_sensor message.
static uint16_t mavlink_msg_hil_sensor_encode_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t *msg, const mavlink_hil_sensor_t *hil_sensor)
Encode a hil_sensor 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.
static float mavlink_msg_hil_sensor_get_abs_pressure(const mavlink_message_t *msg)
Get field abs_pressure from hil_sensor message.
#define _mav_put_uint64_t(buf, wire_offset, b)
#define _MAV_PAYLOAD_NON_CONST(msg)
static float mavlink_msg_hil_sensor_get_zgyro(const mavlink_message_t *msg)
Get field zgyro from hil_sensor message.
#define _MAV_PAYLOAD(msg)
static float mavlink_msg_hil_sensor_get_yacc(const mavlink_message_t *msg)
Get field yacc from hil_sensor message.
static uint16_t mavlink_msg_hil_sensor_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, uint32_t fields_updated)
Pack a hil_sensor message on a channel.
static void mavlink_msg_hil_sensor_decode(const mavlink_message_t *msg, mavlink_hil_sensor_t *hil_sensor)
Decode a hil_sensor message into a struct.
static float mavlink_msg_hil_sensor_get_diff_pressure(const mavlink_message_t *msg)
Get field diff_pressure from hil_sensor message.
static uint64_t mavlink_msg_hil_sensor_get_time_usec(const mavlink_message_t *msg)
Send a hil_sensor message.
static float mavlink_msg_hil_sensor_get_ygyro(const mavlink_message_t *msg)
Get field ygyro from hil_sensor message.
static uint16_t mavlink_msg_hil_sensor_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, uint32_t fields_updated)
Pack a hil_sensor message.
static float mavlink_msg_hil_sensor_get_zmag(const mavlink_message_t *msg)
Get field zmag from hil_sensor message.
static uint16_t mavlink_msg_hil_sensor_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t *msg, const mavlink_hil_sensor_t *hil_sensor)
Encode a hil_sensor struct.
static uint32_t mavlink_msg_hil_sensor_get_fields_updated(const mavlink_message_t *msg)
Get field fields_updated from hil_sensor 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 float mavlink_msg_hil_sensor_get_temperature(const mavlink_message_t *msg)
Get field temperature from hil_sensor message.
static float mavlink_msg_hil_sensor_get_xacc(const mavlink_message_t *msg)
Get field xacc from hil_sensor message.
#define MAVLINK_MSG_ID_HIL_SENSOR
#define _mav_put_uint32_t(buf, wire_offset, b)