3 #define MAVLINK_MSG_ID_SIM_STATE 108 30 #define MAVLINK_MSG_ID_SIM_STATE_LEN 84 31 #define MAVLINK_MSG_ID_108_LEN 84 33 #define MAVLINK_MSG_ID_SIM_STATE_CRC 32 34 #define MAVLINK_MSG_ID_108_CRC 32 38 #define MAVLINK_MESSAGE_INFO_SIM_STATE { \ 41 { { "q1", NULL, MAVLINK_TYPE_FLOAT, 0, 0, offsetof(mavlink_sim_state_t, q1) }, \ 42 { "q2", NULL, MAVLINK_TYPE_FLOAT, 0, 4, offsetof(mavlink_sim_state_t, q2) }, \ 43 { "q3", NULL, MAVLINK_TYPE_FLOAT, 0, 8, offsetof(mavlink_sim_state_t, q3) }, \ 44 { "q4", NULL, MAVLINK_TYPE_FLOAT, 0, 12, offsetof(mavlink_sim_state_t, q4) }, \ 45 { "roll", NULL, MAVLINK_TYPE_FLOAT, 0, 16, offsetof(mavlink_sim_state_t, roll) }, \ 46 { "pitch", NULL, MAVLINK_TYPE_FLOAT, 0, 20, offsetof(mavlink_sim_state_t, pitch) }, \ 47 { "yaw", NULL, MAVLINK_TYPE_FLOAT, 0, 24, offsetof(mavlink_sim_state_t, yaw) }, \ 48 { "xacc", NULL, MAVLINK_TYPE_FLOAT, 0, 28, offsetof(mavlink_sim_state_t, xacc) }, \ 49 { "yacc", NULL, MAVLINK_TYPE_FLOAT, 0, 32, offsetof(mavlink_sim_state_t, yacc) }, \ 50 { "zacc", NULL, MAVLINK_TYPE_FLOAT, 0, 36, offsetof(mavlink_sim_state_t, zacc) }, \ 51 { "xgyro", NULL, MAVLINK_TYPE_FLOAT, 0, 40, offsetof(mavlink_sim_state_t, xgyro) }, \ 52 { "ygyro", NULL, MAVLINK_TYPE_FLOAT, 0, 44, offsetof(mavlink_sim_state_t, ygyro) }, \ 53 { "zgyro", NULL, MAVLINK_TYPE_FLOAT, 0, 48, offsetof(mavlink_sim_state_t, zgyro) }, \ 54 { "lat", NULL, MAVLINK_TYPE_FLOAT, 0, 52, offsetof(mavlink_sim_state_t, lat) }, \ 55 { "lon", NULL, MAVLINK_TYPE_FLOAT, 0, 56, offsetof(mavlink_sim_state_t, lon) }, \ 56 { "alt", NULL, MAVLINK_TYPE_FLOAT, 0, 60, offsetof(mavlink_sim_state_t, alt) }, \ 57 { "std_dev_horz", NULL, MAVLINK_TYPE_FLOAT, 0, 64, offsetof(mavlink_sim_state_t, std_dev_horz) }, \ 58 { "std_dev_vert", NULL, MAVLINK_TYPE_FLOAT, 0, 68, offsetof(mavlink_sim_state_t, std_dev_vert) }, \ 59 { "vn", NULL, MAVLINK_TYPE_FLOAT, 0, 72, offsetof(mavlink_sim_state_t, vn) }, \ 60 { "ve", NULL, MAVLINK_TYPE_FLOAT, 0, 76, offsetof(mavlink_sim_state_t, ve) }, \ 61 { "vd", NULL, MAVLINK_TYPE_FLOAT, 0, 80, offsetof(mavlink_sim_state_t, vd) }, \ 96 float q1,
float q2,
float q3,
float q4,
float roll,
float pitch,
float yaw,
float xacc,
float yacc,
float zacc,
float xgyro,
float ygyro,
float zgyro,
float lat,
float lon,
float alt,
float std_dev_horz,
float std_dev_vert,
float vn,
float ve,
float vd)
98 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS 151 #if MAVLINK_CRC_EXTRA 188 mavlink_message_t* msg,
189 float q1,
float q2,
float q3,
float q4,
float roll,
float pitch,
float yaw,
float xacc,
float yacc,
float zacc,
float xgyro,
float ygyro,
float zgyro,
float lat,
float lon,
float alt,
float std_dev_horz,
float std_dev_vert,
float vn,
float ve,
float vd)
191 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS 244 #if MAVLINK_CRC_EXTRA 261 return mavlink_msg_sim_state_pack(system_id, component_id, msg, sim_state->
q1, sim_state->
q2, sim_state->
q3, sim_state->
q4, sim_state->
roll, sim_state->
pitch, sim_state->
yaw, sim_state->
xacc, sim_state->
yacc, sim_state->
zacc, sim_state->
xgyro, sim_state->
ygyro, sim_state->
zgyro, sim_state->
lat, sim_state->
lon, sim_state->
alt, sim_state->
std_dev_horz, sim_state->
std_dev_vert, sim_state->
vn, sim_state->
ve, sim_state->
vd);
275 return mavlink_msg_sim_state_pack_chan(system_id, component_id, chan, msg, sim_state->
q1, sim_state->
q2, sim_state->
q3, sim_state->
q4, sim_state->
roll, sim_state->
pitch, sim_state->
yaw, sim_state->
xacc, sim_state->
yacc, sim_state->
zacc, sim_state->
xgyro, sim_state->
ygyro, sim_state->
zgyro, sim_state->
lat, sim_state->
lon, sim_state->
alt, sim_state->
std_dev_horz, sim_state->
std_dev_vert, sim_state->
vn, sim_state->
ve, sim_state->
vd);
304 #ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS 306 static inline void mavlink_msg_sim_state_send(
mavlink_channel_t chan,
float q1,
float q2,
float q3,
float q4,
float roll,
float pitch,
float yaw,
float xacc,
float yacc,
float zacc,
float xgyro,
float ygyro,
float zgyro,
float lat,
float lon,
float alt,
float std_dev_horz,
float std_dev_vert,
float vn,
float ve,
float vd)
308 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS 332 #if MAVLINK_CRC_EXTRA 361 #if MAVLINK_CRC_EXTRA 369 #if MAVLINK_MSG_ID_SIM_STATE_LEN <= MAVLINK_MAX_PAYLOAD_LEN 377 static inline void mavlink_msg_sim_state_send_buf(mavlink_message_t *msgbuf,
mavlink_channel_t chan,
float q1,
float q2,
float q3,
float q4,
float roll,
float pitch,
float yaw,
float xacc,
float yacc,
float zacc,
float xgyro,
float ygyro,
float zgyro,
float lat,
float lon,
float alt,
float std_dev_horz,
float std_dev_vert,
float vn,
float ve,
float vd)
379 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS 380 char *buf = (
char *)msgbuf;
403 #if MAVLINK_CRC_EXTRA 432 #if MAVLINK_CRC_EXTRA 453 return _MAV_RETURN_float(msg, 0);
463 return _MAV_RETURN_float(msg, 4);
473 return _MAV_RETURN_float(msg, 8);
483 return _MAV_RETURN_float(msg, 12);
493 return _MAV_RETURN_float(msg, 16);
503 return _MAV_RETURN_float(msg, 20);
513 return _MAV_RETURN_float(msg, 24);
523 return _MAV_RETURN_float(msg, 28);
533 return _MAV_RETURN_float(msg, 32);
543 return _MAV_RETURN_float(msg, 36);
553 return _MAV_RETURN_float(msg, 40);
563 return _MAV_RETURN_float(msg, 44);
573 return _MAV_RETURN_float(msg, 48);
583 return _MAV_RETURN_float(msg, 52);
593 return _MAV_RETURN_float(msg, 56);
603 return _MAV_RETURN_float(msg, 60);
613 return _MAV_RETURN_float(msg, 64);
623 return _MAV_RETURN_float(msg, 68);
633 return _MAV_RETURN_float(msg, 72);
643 return _MAV_RETURN_float(msg, 76);
653 return _MAV_RETURN_float(msg, 80);
664 #if MAVLINK_NEED_BYTE_SWAP #define _mav_put_float(buf, wire_offset, b)
static float mavlink_msg_sim_state_get_ygyro(const mavlink_message_t *msg)
Get field ygyro from sim_state message.
static uint16_t mavlink_msg_sim_state_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t *msg, float q1, float q2, float q3, float q4, float roll, float pitch, float yaw, float xacc, float yacc, float zacc, float xgyro, float ygyro, float zgyro, float lat, float lon, float alt, float std_dev_horz, float std_dev_vert, float vn, float ve, float vd)
Pack a sim_state message on a channel.
static float mavlink_msg_sim_state_get_xacc(const mavlink_message_t *msg)
Get field xacc from sim_state message.
#define MAVLINK_MSG_ID_SIM_STATE
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 float mavlink_msg_sim_state_get_std_dev_vert(const mavlink_message_t *msg)
Get field std_dev_vert from sim_state message.
static float mavlink_msg_sim_state_get_yacc(const mavlink_message_t *msg)
Get field yacc from sim_state message.
static float mavlink_msg_sim_state_get_alt(const mavlink_message_t *msg)
Get field alt from sim_state message.
static float mavlink_msg_sim_state_get_yaw(const mavlink_message_t *msg)
Get field yaw from sim_state message.
#define _MAV_PAYLOAD(msg)
static float mavlink_msg_sim_state_get_q2(const mavlink_message_t *msg)
Get field q2 from sim_state message.
static float mavlink_msg_sim_state_get_pitch(const mavlink_message_t *msg)
Get field pitch from sim_state message.
static uint16_t mavlink_msg_sim_state_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t *msg, const mavlink_sim_state_t *sim_state)
Encode a sim_state struct.
static float mavlink_msg_sim_state_get_lat(const mavlink_message_t *msg)
Get field lat from sim_state message.
#define MAVLINK_MSG_ID_SIM_STATE_CRC
static float mavlink_msg_sim_state_get_std_dev_horz(const mavlink_message_t *msg)
Get field std_dev_horz from sim_state message.
static float mavlink_msg_sim_state_get_vd(const mavlink_message_t *msg)
Get field vd from sim_state message.
static uint16_t mavlink_msg_sim_state_encode_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t *msg, const mavlink_sim_state_t *sim_state)
Encode a sim_state struct on a channel.
struct __mavlink_sim_state_t mavlink_sim_state_t
static uint16_t mavlink_msg_sim_state_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t *msg, float q1, float q2, float q3, float q4, float roll, float pitch, float yaw, float xacc, float yacc, float zacc, float xgyro, float ygyro, float zgyro, float lat, float lon, float alt, float std_dev_horz, float std_dev_vert, float vn, float ve, float vd)
Pack a sim_state message.
static void mavlink_msg_sim_state_decode(const mavlink_message_t *msg, mavlink_sim_state_t *sim_state)
Decode a sim_state message into a struct.
static float mavlink_msg_sim_state_get_q1(const mavlink_message_t *msg)
Send a sim_state message.
static float mavlink_msg_sim_state_get_vn(const mavlink_message_t *msg)
Get field vn from sim_state message.
static float mavlink_msg_sim_state_get_q3(const mavlink_message_t *msg)
Get field q3 from sim_state message.
static float mavlink_msg_sim_state_get_ve(const mavlink_message_t *msg)
Get field ve from sim_state message.
static float mavlink_msg_sim_state_get_q4(const mavlink_message_t *msg)
Get field q4 from sim_state message.
static float mavlink_msg_sim_state_get_xgyro(const mavlink_message_t *msg)
Get field xgyro from sim_state message.
static float mavlink_msg_sim_state_get_roll(const mavlink_message_t *msg)
Get field roll from sim_state message.
static float mavlink_msg_sim_state_get_zgyro(const mavlink_message_t *msg)
Get field zgyro from sim_state 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_sim_state_get_zacc(const mavlink_message_t *msg)
Get field zacc from sim_state message.
static float mavlink_msg_sim_state_get_lon(const mavlink_message_t *msg)
Get field lon from sim_state message.
#define MAVLINK_MSG_ID_SIM_STATE_LEN