update ins1/ins2/atmo

This commit is contained in:
matt
2020-10-22 07:15:10 +08:00
parent 54c7286a2c
commit d1fe3a364f
11 changed files with 249 additions and 57 deletions
File diff suppressed because one or more lines are too long
+38 -13
View File
@@ -3,7 +3,7 @@
#define MAVLINK_MSG_ID_EMB_ATMO_COM 20101
MAVPACKED(
typedef struct __mavlink_emb_atmo_com_t {
uint32_t time_boot_ms; /*< [ms] Timestamp (milliseconds since system boot)*/
float Airspeed; /*< Magnitude of air velocity [m/s]*/
@@ -12,11 +12,12 @@ typedef struct __mavlink_emb_atmo_com_t {
float ps; /*< Static pressure [Pa]*/
float qbar; /*< Dynamic pressure [Pa]*/
uint8_t seq; /*< sequeue index*/
} mavlink_emb_atmo_com_t;
float mach; /*< Mach*/
}) mavlink_emb_atmo_com_t;
#define MAVLINK_MSG_ID_EMB_ATMO_COM_LEN 25
#define MAVLINK_MSG_ID_EMB_ATMO_COM_LEN 29
#define MAVLINK_MSG_ID_EMB_ATMO_COM_MIN_LEN 25
#define MAVLINK_MSG_ID_20101_LEN 25
#define MAVLINK_MSG_ID_20101_LEN 29
#define MAVLINK_MSG_ID_20101_MIN_LEN 25
#define MAVLINK_MSG_ID_EMB_ATMO_COM_CRC 87
@@ -28,7 +29,7 @@ typedef struct __mavlink_emb_atmo_com_t {
#define MAVLINK_MESSAGE_INFO_EMB_ATMO_COM { \
20101, \
"EMB_ATMO_COM", \
7, \
8, \
{ { "time_boot_ms", NULL, MAVLINK_TYPE_UINT32_T, 0, 0, offsetof(mavlink_emb_atmo_com_t, time_boot_ms) }, \
{ "Airspeed", NULL, MAVLINK_TYPE_FLOAT, 0, 4, offsetof(mavlink_emb_atmo_com_t, Airspeed) }, \
{ "beta", NULL, MAVLINK_TYPE_FLOAT, 0, 8, offsetof(mavlink_emb_atmo_com_t, beta) }, \
@@ -36,12 +37,13 @@ typedef struct __mavlink_emb_atmo_com_t {
{ "ps", NULL, MAVLINK_TYPE_FLOAT, 0, 16, offsetof(mavlink_emb_atmo_com_t, ps) }, \
{ "qbar", NULL, MAVLINK_TYPE_FLOAT, 0, 20, offsetof(mavlink_emb_atmo_com_t, qbar) }, \
{ "seq", NULL, MAVLINK_TYPE_UINT8_T, 0, 24, offsetof(mavlink_emb_atmo_com_t, seq) }, \
{ "mach", NULL, MAVLINK_TYPE_FLOAT, 0, 25, offsetof(mavlink_emb_atmo_com_t, mach) }, \
} \
}
#else
#define MAVLINK_MESSAGE_INFO_EMB_ATMO_COM { \
"EMB_ATMO_COM", \
7, \
8, \
{ { "time_boot_ms", NULL, MAVLINK_TYPE_UINT32_T, 0, 0, offsetof(mavlink_emb_atmo_com_t, time_boot_ms) }, \
{ "Airspeed", NULL, MAVLINK_TYPE_FLOAT, 0, 4, offsetof(mavlink_emb_atmo_com_t, Airspeed) }, \
{ "beta", NULL, MAVLINK_TYPE_FLOAT, 0, 8, offsetof(mavlink_emb_atmo_com_t, beta) }, \
@@ -49,6 +51,7 @@ typedef struct __mavlink_emb_atmo_com_t {
{ "ps", NULL, MAVLINK_TYPE_FLOAT, 0, 16, offsetof(mavlink_emb_atmo_com_t, ps) }, \
{ "qbar", NULL, MAVLINK_TYPE_FLOAT, 0, 20, offsetof(mavlink_emb_atmo_com_t, qbar) }, \
{ "seq", NULL, MAVLINK_TYPE_UINT8_T, 0, 24, offsetof(mavlink_emb_atmo_com_t, seq) }, \
{ "mach", NULL, MAVLINK_TYPE_FLOAT, 0, 25, offsetof(mavlink_emb_atmo_com_t, mach) }, \
} \
}
#endif
@@ -66,10 +69,11 @@ typedef struct __mavlink_emb_atmo_com_t {
* @param ps Static pressure [Pa]
* @param qbar Dynamic pressure [Pa]
* @param seq sequeue index
* @param mach Mach
* @return length of the message in bytes (excluding serial stream start sign)
*/
static inline uint16_t mavlink_msg_emb_atmo_com_pack(uint16_t system_id, uint8_t component_id, mavlink_message_t* msg,
uint32_t time_boot_ms, float Airspeed, float beta, float alpha, float ps, float qbar, uint8_t seq)
uint32_t time_boot_ms, float Airspeed, float beta, float alpha, float ps, float qbar, uint8_t seq, float mach)
{
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
char buf[MAVLINK_MSG_ID_EMB_ATMO_COM_LEN];
@@ -80,6 +84,7 @@ static inline uint16_t mavlink_msg_emb_atmo_com_pack(uint16_t system_id, uint8_t
_mav_put_float(buf, 16, ps);
_mav_put_float(buf, 20, qbar);
_mav_put_uint8_t(buf, 24, seq);
_mav_put_float(buf, 25, mach);
memcpy(_MAV_PAYLOAD_NON_CONST(msg), buf, MAVLINK_MSG_ID_EMB_ATMO_COM_LEN);
#else
@@ -91,6 +96,7 @@ static inline uint16_t mavlink_msg_emb_atmo_com_pack(uint16_t system_id, uint8_t
packet.ps = ps;
packet.qbar = qbar;
packet.seq = seq;
packet.mach = mach;
memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_EMB_ATMO_COM_LEN);
#endif
@@ -112,11 +118,12 @@ static inline uint16_t mavlink_msg_emb_atmo_com_pack(uint16_t system_id, uint8_t
* @param ps Static pressure [Pa]
* @param qbar Dynamic pressure [Pa]
* @param seq sequeue index
* @param mach Mach
* @return length of the message in bytes (excluding serial stream start sign)
*/
static inline uint16_t mavlink_msg_emb_atmo_com_pack_chan(uint16_t system_id, uint8_t component_id, uint8_t chan,
mavlink_message_t* msg,
uint32_t time_boot_ms,float Airspeed,float beta,float alpha,float ps,float qbar,uint8_t seq)
uint32_t time_boot_ms,float Airspeed,float beta,float alpha,float ps,float qbar,uint8_t seq,float mach)
{
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
char buf[MAVLINK_MSG_ID_EMB_ATMO_COM_LEN];
@@ -127,6 +134,7 @@ static inline uint16_t mavlink_msg_emb_atmo_com_pack_chan(uint16_t system_id, ui
_mav_put_float(buf, 16, ps);
_mav_put_float(buf, 20, qbar);
_mav_put_uint8_t(buf, 24, seq);
_mav_put_float(buf, 25, mach);
memcpy(_MAV_PAYLOAD_NON_CONST(msg), buf, MAVLINK_MSG_ID_EMB_ATMO_COM_LEN);
#else
@@ -138,6 +146,7 @@ static inline uint16_t mavlink_msg_emb_atmo_com_pack_chan(uint16_t system_id, ui
packet.ps = ps;
packet.qbar = qbar;
packet.seq = seq;
packet.mach = mach;
memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_EMB_ATMO_COM_LEN);
#endif
@@ -156,7 +165,7 @@ static inline uint16_t mavlink_msg_emb_atmo_com_pack_chan(uint16_t system_id, ui
*/
static inline uint16_t mavlink_msg_emb_atmo_com_encode(uint16_t system_id, uint8_t component_id, mavlink_message_t* msg, const mavlink_emb_atmo_com_t* emb_atmo_com)
{
return mavlink_msg_emb_atmo_com_pack(system_id, component_id, msg, emb_atmo_com->time_boot_ms, emb_atmo_com->Airspeed, emb_atmo_com->beta, emb_atmo_com->alpha, emb_atmo_com->ps, emb_atmo_com->qbar, emb_atmo_com->seq);
return mavlink_msg_emb_atmo_com_pack(system_id, component_id, msg, emb_atmo_com->time_boot_ms, emb_atmo_com->Airspeed, emb_atmo_com->beta, emb_atmo_com->alpha, emb_atmo_com->ps, emb_atmo_com->qbar, emb_atmo_com->seq, emb_atmo_com->mach);
}
/**
@@ -170,7 +179,7 @@ static inline uint16_t mavlink_msg_emb_atmo_com_encode(uint16_t system_id, uint8
*/
static inline uint16_t mavlink_msg_emb_atmo_com_encode_chan(uint16_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t* msg, const mavlink_emb_atmo_com_t* emb_atmo_com)
{
return mavlink_msg_emb_atmo_com_pack_chan(system_id, component_id, chan, msg, emb_atmo_com->time_boot_ms, emb_atmo_com->Airspeed, emb_atmo_com->beta, emb_atmo_com->alpha, emb_atmo_com->ps, emb_atmo_com->qbar, emb_atmo_com->seq);
return mavlink_msg_emb_atmo_com_pack_chan(system_id, component_id, chan, msg, emb_atmo_com->time_boot_ms, emb_atmo_com->Airspeed, emb_atmo_com->beta, emb_atmo_com->alpha, emb_atmo_com->ps, emb_atmo_com->qbar, emb_atmo_com->seq, emb_atmo_com->mach);
}
/**
@@ -184,10 +193,11 @@ static inline uint16_t mavlink_msg_emb_atmo_com_encode_chan(uint16_t system_id,
* @param ps Static pressure [Pa]
* @param qbar Dynamic pressure [Pa]
* @param seq sequeue index
* @param mach Mach
*/
#ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS
static inline void mavlink_msg_emb_atmo_com_send(mavlink_channel_t chan, uint32_t time_boot_ms, float Airspeed, float beta, float alpha, float ps, float qbar, uint8_t seq)
static inline void mavlink_msg_emb_atmo_com_send(mavlink_channel_t chan, uint32_t time_boot_ms, float Airspeed, float beta, float alpha, float ps, float qbar, uint8_t seq, float mach)
{
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
char buf[MAVLINK_MSG_ID_EMB_ATMO_COM_LEN];
@@ -198,6 +208,7 @@ static inline void mavlink_msg_emb_atmo_com_send(mavlink_channel_t chan, uint32_
_mav_put_float(buf, 16, ps);
_mav_put_float(buf, 20, qbar);
_mav_put_uint8_t(buf, 24, seq);
_mav_put_float(buf, 25, mach);
_mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_EMB_ATMO_COM, buf, MAVLINK_MSG_ID_EMB_ATMO_COM_MIN_LEN, MAVLINK_MSG_ID_EMB_ATMO_COM_LEN, MAVLINK_MSG_ID_EMB_ATMO_COM_CRC);
#else
@@ -209,6 +220,7 @@ static inline void mavlink_msg_emb_atmo_com_send(mavlink_channel_t chan, uint32_
packet.ps = ps;
packet.qbar = qbar;
packet.seq = seq;
packet.mach = mach;
_mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_EMB_ATMO_COM, (const char *)&packet, MAVLINK_MSG_ID_EMB_ATMO_COM_MIN_LEN, MAVLINK_MSG_ID_EMB_ATMO_COM_LEN, MAVLINK_MSG_ID_EMB_ATMO_COM_CRC);
#endif
@@ -222,7 +234,7 @@ static inline void mavlink_msg_emb_atmo_com_send(mavlink_channel_t chan, uint32_
static inline void mavlink_msg_emb_atmo_com_send_struct(mavlink_channel_t chan, const mavlink_emb_atmo_com_t* emb_atmo_com)
{
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
mavlink_msg_emb_atmo_com_send(chan, emb_atmo_com->time_boot_ms, emb_atmo_com->Airspeed, emb_atmo_com->beta, emb_atmo_com->alpha, emb_atmo_com->ps, emb_atmo_com->qbar, emb_atmo_com->seq);
mavlink_msg_emb_atmo_com_send(chan, emb_atmo_com->time_boot_ms, emb_atmo_com->Airspeed, emb_atmo_com->beta, emb_atmo_com->alpha, emb_atmo_com->ps, emb_atmo_com->qbar, emb_atmo_com->seq, emb_atmo_com->mach);
#else
_mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_EMB_ATMO_COM, (const char *)emb_atmo_com, MAVLINK_MSG_ID_EMB_ATMO_COM_MIN_LEN, MAVLINK_MSG_ID_EMB_ATMO_COM_LEN, MAVLINK_MSG_ID_EMB_ATMO_COM_CRC);
#endif
@@ -236,7 +248,7 @@ static inline void mavlink_msg_emb_atmo_com_send_struct(mavlink_channel_t chan,
is usually the receive buffer for the channel, and allows a reply to an
incoming message with minimum stack space usage.
*/
static inline void mavlink_msg_emb_atmo_com_send_buf(mavlink_message_t *msgbuf, mavlink_channel_t chan, uint32_t time_boot_ms, float Airspeed, float beta, float alpha, float ps, float qbar, uint8_t seq)
static inline void mavlink_msg_emb_atmo_com_send_buf(mavlink_message_t *msgbuf, mavlink_channel_t chan, uint32_t time_boot_ms, float Airspeed, float beta, float alpha, float ps, float qbar, uint8_t seq, float mach)
{
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
char *buf = (char *)msgbuf;
@@ -247,6 +259,7 @@ static inline void mavlink_msg_emb_atmo_com_send_buf(mavlink_message_t *msgbuf,
_mav_put_float(buf, 16, ps);
_mav_put_float(buf, 20, qbar);
_mav_put_uint8_t(buf, 24, seq);
_mav_put_float(buf, 25, mach);
_mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_EMB_ATMO_COM, buf, MAVLINK_MSG_ID_EMB_ATMO_COM_MIN_LEN, MAVLINK_MSG_ID_EMB_ATMO_COM_LEN, MAVLINK_MSG_ID_EMB_ATMO_COM_CRC);
#else
@@ -258,6 +271,7 @@ static inline void mavlink_msg_emb_atmo_com_send_buf(mavlink_message_t *msgbuf,
packet->ps = ps;
packet->qbar = qbar;
packet->seq = seq;
packet->mach = mach;
_mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_EMB_ATMO_COM, (const char *)packet, MAVLINK_MSG_ID_EMB_ATMO_COM_MIN_LEN, MAVLINK_MSG_ID_EMB_ATMO_COM_LEN, MAVLINK_MSG_ID_EMB_ATMO_COM_CRC);
#endif
@@ -339,6 +353,16 @@ static inline uint8_t mavlink_msg_emb_atmo_com_get_seq(const mavlink_message_t*
return _MAV_RETURN_uint8_t(msg, 24);
}
/**
* @brief Get field mach from emb_atmo_com message
*
* @return Mach
*/
static inline float mavlink_msg_emb_atmo_com_get_mach(const mavlink_message_t* msg)
{
return _MAV_RETURN_float(msg, 25);
}
/**
* @brief Decode a emb_atmo_com message into a struct
*
@@ -355,6 +379,7 @@ static inline void mavlink_msg_emb_atmo_com_decode(const mavlink_message_t* msg,
emb_atmo_com->ps = mavlink_msg_emb_atmo_com_get_ps(msg);
emb_atmo_com->qbar = mavlink_msg_emb_atmo_com_get_qbar(msg);
emb_atmo_com->seq = mavlink_msg_emb_atmo_com_get_seq(msg);
emb_atmo_com->mach = mavlink_msg_emb_atmo_com_get_mach(msg);
#else
uint8_t len = msg->len < MAVLINK_MSG_ID_EMB_ATMO_COM_LEN? msg->len : MAVLINK_MSG_ID_EMB_ATMO_COM_LEN;
memset(emb_atmo_com, 0, MAVLINK_MSG_ID_EMB_ATMO_COM_LEN);
+88 -13
View File
@@ -3,7 +3,7 @@
#define MAVLINK_MSG_ID_INS1 20103
MAVPACKED(
typedef struct __mavlink_ins1_t {
double lon; /*< lon(deg)*/
double lat; /*< lat(deg)*/
@@ -27,11 +27,14 @@ typedef struct __mavlink_ins1_t {
uint8_t gps_status; /*< gps_status*/
uint8_t BIT; /*< BIT*/
uint8_t seq; /*< sequeue index*/
} mavlink_ins1_t;
uint16_t eph; /*< GPS HDOP horizontal dilution of position (unitless). If unknown, set to: UINT16_MAX*/
uint16_t epv; /*< GPS VDOP vertical dilution of position (unitless). If unknown, set to: UINT16_MAX*/
uint8_t satellites_visible; /*< Number of satellites visible. If unknown, set to 255*/
}) mavlink_ins1_t;
#define MAVLINK_MSG_ID_INS1_LEN 85
#define MAVLINK_MSG_ID_INS1_LEN 90
#define MAVLINK_MSG_ID_INS1_MIN_LEN 85
#define MAVLINK_MSG_ID_20103_LEN 85
#define MAVLINK_MSG_ID_20103_LEN 90
#define MAVLINK_MSG_ID_20103_MIN_LEN 85
#define MAVLINK_MSG_ID_INS1_CRC 187
@@ -43,7 +46,7 @@ typedef struct __mavlink_ins1_t {
#define MAVLINK_MESSAGE_INFO_INS1 { \
20103, \
"INS1", \
22, \
25, \
{ { "time_boot_ms", NULL, MAVLINK_TYPE_UINT32_T, 0, 24, offsetof(mavlink_ins1_t, time_boot_ms) }, \
{ "pitch", NULL, MAVLINK_TYPE_FLOAT, 0, 28, offsetof(mavlink_ins1_t, pitch) }, \
{ "roll", NULL, MAVLINK_TYPE_FLOAT, 0, 32, offsetof(mavlink_ins1_t, roll) }, \
@@ -66,12 +69,15 @@ typedef struct __mavlink_ins1_t {
{ "gps_status", NULL, MAVLINK_TYPE_UINT8_T, 0, 82, offsetof(mavlink_ins1_t, gps_status) }, \
{ "BIT", NULL, MAVLINK_TYPE_UINT8_T, 0, 83, offsetof(mavlink_ins1_t, BIT) }, \
{ "seq", NULL, MAVLINK_TYPE_UINT8_T, 0, 84, offsetof(mavlink_ins1_t, seq) }, \
{ "eph", NULL, MAVLINK_TYPE_UINT16_T, 0, 85, offsetof(mavlink_ins1_t, eph) }, \
{ "epv", NULL, MAVLINK_TYPE_UINT16_T, 0, 87, offsetof(mavlink_ins1_t, epv) }, \
{ "satellites_visible", NULL, MAVLINK_TYPE_UINT8_T, 0, 89, offsetof(mavlink_ins1_t, satellites_visible) }, \
} \
}
#else
#define MAVLINK_MESSAGE_INFO_INS1 { \
"INS1", \
22, \
25, \
{ { "time_boot_ms", NULL, MAVLINK_TYPE_UINT32_T, 0, 24, offsetof(mavlink_ins1_t, time_boot_ms) }, \
{ "pitch", NULL, MAVLINK_TYPE_FLOAT, 0, 28, offsetof(mavlink_ins1_t, pitch) }, \
{ "roll", NULL, MAVLINK_TYPE_FLOAT, 0, 32, offsetof(mavlink_ins1_t, roll) }, \
@@ -94,6 +100,9 @@ typedef struct __mavlink_ins1_t {
{ "gps_status", NULL, MAVLINK_TYPE_UINT8_T, 0, 82, offsetof(mavlink_ins1_t, gps_status) }, \
{ "BIT", NULL, MAVLINK_TYPE_UINT8_T, 0, 83, offsetof(mavlink_ins1_t, BIT) }, \
{ "seq", NULL, MAVLINK_TYPE_UINT8_T, 0, 84, offsetof(mavlink_ins1_t, seq) }, \
{ "eph", NULL, MAVLINK_TYPE_UINT16_T, 0, 85, offsetof(mavlink_ins1_t, eph) }, \
{ "epv", NULL, MAVLINK_TYPE_UINT16_T, 0, 87, offsetof(mavlink_ins1_t, epv) }, \
{ "satellites_visible", NULL, MAVLINK_TYPE_UINT8_T, 0, 89, offsetof(mavlink_ins1_t, satellites_visible) }, \
} \
}
#endif
@@ -126,10 +135,13 @@ typedef struct __mavlink_ins1_t {
* @param gps_status gps_status
* @param BIT BIT
* @param seq sequeue index
* @param eph GPS HDOP horizontal dilution of position (unitless). If unknown, set to: UINT16_MAX
* @param epv GPS VDOP vertical dilution of position (unitless). If unknown, set to: UINT16_MAX
* @param satellites_visible Number of satellites visible. If unknown, set to 255
* @return length of the message in bytes (excluding serial stream start sign)
*/
static inline uint16_t mavlink_msg_ins1_pack(uint16_t system_id, uint8_t component_id, mavlink_message_t* msg,
uint32_t time_boot_ms, float pitch, float roll, float yaw, double lon, double lat, float alt, float v_north, float v_up, float v_east, float gx, float gy, float gz, float ax, float ay, float az, double time, uint8_t sys_status, uint8_t com_status, uint8_t gps_status, uint8_t BIT, uint8_t seq)
uint32_t time_boot_ms, float pitch, float roll, float yaw, double lon, double lat, float alt, float v_north, float v_up, float v_east, float gx, float gy, float gz, float ax, float ay, float az, double time, uint8_t sys_status, uint8_t com_status, uint8_t gps_status, uint8_t BIT, uint8_t seq, uint16_t eph, uint16_t epv, uint8_t satellites_visible)
{
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
char buf[MAVLINK_MSG_ID_INS1_LEN];
@@ -155,6 +167,9 @@ static inline uint16_t mavlink_msg_ins1_pack(uint16_t system_id, uint8_t compone
_mav_put_uint8_t(buf, 82, gps_status);
_mav_put_uint8_t(buf, 83, BIT);
_mav_put_uint8_t(buf, 84, seq);
_mav_put_uint16_t(buf, 85, eph);
_mav_put_uint16_t(buf, 87, epv);
_mav_put_uint8_t(buf, 89, satellites_visible);
memcpy(_MAV_PAYLOAD_NON_CONST(msg), buf, MAVLINK_MSG_ID_INS1_LEN);
#else
@@ -181,6 +196,9 @@ static inline uint16_t mavlink_msg_ins1_pack(uint16_t system_id, uint8_t compone
packet.gps_status = gps_status;
packet.BIT = BIT;
packet.seq = seq;
packet.eph = eph;
packet.epv = epv;
packet.satellites_visible = satellites_visible;
memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_INS1_LEN);
#endif
@@ -217,11 +235,14 @@ static inline uint16_t mavlink_msg_ins1_pack(uint16_t system_id, uint8_t compone
* @param gps_status gps_status
* @param BIT BIT
* @param seq sequeue index
* @param eph GPS HDOP horizontal dilution of position (unitless). If unknown, set to: UINT16_MAX
* @param epv GPS VDOP vertical dilution of position (unitless). If unknown, set to: UINT16_MAX
* @param satellites_visible Number of satellites visible. If unknown, set to 255
* @return length of the message in bytes (excluding serial stream start sign)
*/
static inline uint16_t mavlink_msg_ins1_pack_chan(uint16_t system_id, uint8_t component_id, uint8_t chan,
mavlink_message_t* msg,
uint32_t time_boot_ms,float pitch,float roll,float yaw,double lon,double lat,float alt,float v_north,float v_up,float v_east,float gx,float gy,float gz,float ax,float ay,float az,double time,uint8_t sys_status,uint8_t com_status,uint8_t gps_status,uint8_t BIT,uint8_t seq)
uint32_t time_boot_ms,float pitch,float roll,float yaw,double lon,double lat,float alt,float v_north,float v_up,float v_east,float gx,float gy,float gz,float ax,float ay,float az,double time,uint8_t sys_status,uint8_t com_status,uint8_t gps_status,uint8_t BIT,uint8_t seq,uint16_t eph,uint16_t epv,uint8_t satellites_visible)
{
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
char buf[MAVLINK_MSG_ID_INS1_LEN];
@@ -247,6 +268,9 @@ static inline uint16_t mavlink_msg_ins1_pack_chan(uint16_t system_id, uint8_t co
_mav_put_uint8_t(buf, 82, gps_status);
_mav_put_uint8_t(buf, 83, BIT);
_mav_put_uint8_t(buf, 84, seq);
_mav_put_uint16_t(buf, 85, eph);
_mav_put_uint16_t(buf, 87, epv);
_mav_put_uint8_t(buf, 89, satellites_visible);
memcpy(_MAV_PAYLOAD_NON_CONST(msg), buf, MAVLINK_MSG_ID_INS1_LEN);
#else
@@ -273,6 +297,9 @@ static inline uint16_t mavlink_msg_ins1_pack_chan(uint16_t system_id, uint8_t co
packet.gps_status = gps_status;
packet.BIT = BIT;
packet.seq = seq;
packet.eph = eph;
packet.epv = epv;
packet.satellites_visible = satellites_visible;
memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_INS1_LEN);
#endif
@@ -291,7 +318,7 @@ static inline uint16_t mavlink_msg_ins1_pack_chan(uint16_t system_id, uint8_t co
*/
static inline uint16_t mavlink_msg_ins1_encode(uint16_t system_id, uint8_t component_id, mavlink_message_t* msg, const mavlink_ins1_t* ins1)
{
return mavlink_msg_ins1_pack(system_id, component_id, msg, ins1->time_boot_ms, ins1->pitch, ins1->roll, ins1->yaw, ins1->lon, ins1->lat, ins1->alt, ins1->v_north, ins1->v_up, ins1->v_east, ins1->gx, ins1->gy, ins1->gz, ins1->ax, ins1->ay, ins1->az, ins1->time, ins1->sys_status, ins1->com_status, ins1->gps_status, ins1->BIT, ins1->seq);
return mavlink_msg_ins1_pack(system_id, component_id, msg, ins1->time_boot_ms, ins1->pitch, ins1->roll, ins1->yaw, ins1->lon, ins1->lat, ins1->alt, ins1->v_north, ins1->v_up, ins1->v_east, ins1->gx, ins1->gy, ins1->gz, ins1->ax, ins1->ay, ins1->az, ins1->time, ins1->sys_status, ins1->com_status, ins1->gps_status, ins1->BIT, ins1->seq, ins1->eph, ins1->epv, ins1->satellites_visible);
}
/**
@@ -305,7 +332,7 @@ static inline uint16_t mavlink_msg_ins1_encode(uint16_t system_id, uint8_t compo
*/
static inline uint16_t mavlink_msg_ins1_encode_chan(uint16_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t* msg, const mavlink_ins1_t* ins1)
{
return mavlink_msg_ins1_pack_chan(system_id, component_id, chan, msg, ins1->time_boot_ms, ins1->pitch, ins1->roll, ins1->yaw, ins1->lon, ins1->lat, ins1->alt, ins1->v_north, ins1->v_up, ins1->v_east, ins1->gx, ins1->gy, ins1->gz, ins1->ax, ins1->ay, ins1->az, ins1->time, ins1->sys_status, ins1->com_status, ins1->gps_status, ins1->BIT, ins1->seq);
return mavlink_msg_ins1_pack_chan(system_id, component_id, chan, msg, ins1->time_boot_ms, ins1->pitch, ins1->roll, ins1->yaw, ins1->lon, ins1->lat, ins1->alt, ins1->v_north, ins1->v_up, ins1->v_east, ins1->gx, ins1->gy, ins1->gz, ins1->ax, ins1->ay, ins1->az, ins1->time, ins1->sys_status, ins1->com_status, ins1->gps_status, ins1->BIT, ins1->seq, ins1->eph, ins1->epv, ins1->satellites_visible);
}
/**
@@ -334,10 +361,13 @@ static inline uint16_t mavlink_msg_ins1_encode_chan(uint16_t system_id, uint8_t
* @param gps_status gps_status
* @param BIT BIT
* @param seq sequeue index
* @param eph GPS HDOP horizontal dilution of position (unitless). If unknown, set to: UINT16_MAX
* @param epv GPS VDOP vertical dilution of position (unitless). If unknown, set to: UINT16_MAX
* @param satellites_visible Number of satellites visible. If unknown, set to 255
*/
#ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS
static inline void mavlink_msg_ins1_send(mavlink_channel_t chan, uint32_t time_boot_ms, float pitch, float roll, float yaw, double lon, double lat, float alt, float v_north, float v_up, float v_east, float gx, float gy, float gz, float ax, float ay, float az, double time, uint8_t sys_status, uint8_t com_status, uint8_t gps_status, uint8_t BIT, uint8_t seq)
static inline void mavlink_msg_ins1_send(mavlink_channel_t chan, uint32_t time_boot_ms, float pitch, float roll, float yaw, double lon, double lat, float alt, float v_north, float v_up, float v_east, float gx, float gy, float gz, float ax, float ay, float az, double time, uint8_t sys_status, uint8_t com_status, uint8_t gps_status, uint8_t BIT, uint8_t seq, uint16_t eph, uint16_t epv, uint8_t satellites_visible)
{
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
char buf[MAVLINK_MSG_ID_INS1_LEN];
@@ -363,6 +393,9 @@ static inline void mavlink_msg_ins1_send(mavlink_channel_t chan, uint32_t time_b
_mav_put_uint8_t(buf, 82, gps_status);
_mav_put_uint8_t(buf, 83, BIT);
_mav_put_uint8_t(buf, 84, seq);
_mav_put_uint16_t(buf, 85, eph);
_mav_put_uint16_t(buf, 87, epv);
_mav_put_uint8_t(buf, 89, satellites_visible);
_mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_INS1, buf, MAVLINK_MSG_ID_INS1_MIN_LEN, MAVLINK_MSG_ID_INS1_LEN, MAVLINK_MSG_ID_INS1_CRC);
#else
@@ -389,6 +422,9 @@ static inline void mavlink_msg_ins1_send(mavlink_channel_t chan, uint32_t time_b
packet.gps_status = gps_status;
packet.BIT = BIT;
packet.seq = seq;
packet.eph = eph;
packet.epv = epv;
packet.satellites_visible = satellites_visible;
_mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_INS1, (const char *)&packet, MAVLINK_MSG_ID_INS1_MIN_LEN, MAVLINK_MSG_ID_INS1_LEN, MAVLINK_MSG_ID_INS1_CRC);
#endif
@@ -402,7 +438,7 @@ static inline void mavlink_msg_ins1_send(mavlink_channel_t chan, uint32_t time_b
static inline void mavlink_msg_ins1_send_struct(mavlink_channel_t chan, const mavlink_ins1_t* ins1)
{
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
mavlink_msg_ins1_send(chan, ins1->time_boot_ms, ins1->pitch, ins1->roll, ins1->yaw, ins1->lon, ins1->lat, ins1->alt, ins1->v_north, ins1->v_up, ins1->v_east, ins1->gx, ins1->gy, ins1->gz, ins1->ax, ins1->ay, ins1->az, ins1->time, ins1->sys_status, ins1->com_status, ins1->gps_status, ins1->BIT, ins1->seq);
mavlink_msg_ins1_send(chan, ins1->time_boot_ms, ins1->pitch, ins1->roll, ins1->yaw, ins1->lon, ins1->lat, ins1->alt, ins1->v_north, ins1->v_up, ins1->v_east, ins1->gx, ins1->gy, ins1->gz, ins1->ax, ins1->ay, ins1->az, ins1->time, ins1->sys_status, ins1->com_status, ins1->gps_status, ins1->BIT, ins1->seq, ins1->eph, ins1->epv, ins1->satellites_visible);
#else
_mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_INS1, (const char *)ins1, MAVLINK_MSG_ID_INS1_MIN_LEN, MAVLINK_MSG_ID_INS1_LEN, MAVLINK_MSG_ID_INS1_CRC);
#endif
@@ -416,7 +452,7 @@ static inline void mavlink_msg_ins1_send_struct(mavlink_channel_t chan, const ma
is usually the receive buffer for the channel, and allows a reply to an
incoming message with minimum stack space usage.
*/
static inline void mavlink_msg_ins1_send_buf(mavlink_message_t *msgbuf, mavlink_channel_t chan, uint32_t time_boot_ms, float pitch, float roll, float yaw, double lon, double lat, float alt, float v_north, float v_up, float v_east, float gx, float gy, float gz, float ax, float ay, float az, double time, uint8_t sys_status, uint8_t com_status, uint8_t gps_status, uint8_t BIT, uint8_t seq)
static inline void mavlink_msg_ins1_send_buf(mavlink_message_t *msgbuf, mavlink_channel_t chan, uint32_t time_boot_ms, float pitch, float roll, float yaw, double lon, double lat, float alt, float v_north, float v_up, float v_east, float gx, float gy, float gz, float ax, float ay, float az, double time, uint8_t sys_status, uint8_t com_status, uint8_t gps_status, uint8_t BIT, uint8_t seq, uint16_t eph, uint16_t epv, uint8_t satellites_visible)
{
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
char *buf = (char *)msgbuf;
@@ -442,6 +478,9 @@ static inline void mavlink_msg_ins1_send_buf(mavlink_message_t *msgbuf, mavlink_
_mav_put_uint8_t(buf, 82, gps_status);
_mav_put_uint8_t(buf, 83, BIT);
_mav_put_uint8_t(buf, 84, seq);
_mav_put_uint16_t(buf, 85, eph);
_mav_put_uint16_t(buf, 87, epv);
_mav_put_uint8_t(buf, 89, satellites_visible);
_mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_INS1, buf, MAVLINK_MSG_ID_INS1_MIN_LEN, MAVLINK_MSG_ID_INS1_LEN, MAVLINK_MSG_ID_INS1_CRC);
#else
@@ -468,6 +507,9 @@ static inline void mavlink_msg_ins1_send_buf(mavlink_message_t *msgbuf, mavlink_
packet->gps_status = gps_status;
packet->BIT = BIT;
packet->seq = seq;
packet->eph = eph;
packet->epv = epv;
packet->satellites_visible = satellites_visible;
_mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_INS1, (const char *)packet, MAVLINK_MSG_ID_INS1_MIN_LEN, MAVLINK_MSG_ID_INS1_LEN, MAVLINK_MSG_ID_INS1_CRC);
#endif
@@ -699,6 +741,36 @@ static inline uint8_t mavlink_msg_ins1_get_seq(const mavlink_message_t* msg)
return _MAV_RETURN_uint8_t(msg, 84);
}
/**
* @brief Get field eph from ins1 message
*
* @return GPS HDOP horizontal dilution of position (unitless). If unknown, set to: UINT16_MAX
*/
static inline uint16_t mavlink_msg_ins1_get_eph(const mavlink_message_t* msg)
{
return _MAV_RETURN_uint16_t(msg, 85);
}
/**
* @brief Get field epv from ins1 message
*
* @return GPS VDOP vertical dilution of position (unitless). If unknown, set to: UINT16_MAX
*/
static inline uint16_t mavlink_msg_ins1_get_epv(const mavlink_message_t* msg)
{
return _MAV_RETURN_uint16_t(msg, 87);
}
/**
* @brief Get field satellites_visible from ins1 message
*
* @return Number of satellites visible. If unknown, set to 255
*/
static inline uint8_t mavlink_msg_ins1_get_satellites_visible(const mavlink_message_t* msg)
{
return _MAV_RETURN_uint8_t(msg, 89);
}
/**
* @brief Decode a ins1 message into a struct
*
@@ -730,6 +802,9 @@ static inline void mavlink_msg_ins1_decode(const mavlink_message_t* msg, mavlink
ins1->gps_status = mavlink_msg_ins1_get_gps_status(msg);
ins1->BIT = mavlink_msg_ins1_get_BIT(msg);
ins1->seq = mavlink_msg_ins1_get_seq(msg);
ins1->eph = mavlink_msg_ins1_get_eph(msg);
ins1->epv = mavlink_msg_ins1_get_epv(msg);
ins1->satellites_visible = mavlink_msg_ins1_get_satellites_visible(msg);
#else
uint8_t len = msg->len < MAVLINK_MSG_ID_INS1_LEN? msg->len : MAVLINK_MSG_ID_INS1_LEN;
memset(ins1, 0, MAVLINK_MSG_ID_INS1_LEN);
+88 -13
View File
@@ -3,7 +3,7 @@
#define MAVLINK_MSG_ID_INS2 20104
MAVPACKED(
typedef struct __mavlink_ins2_t {
double lon; /*< lon(deg)*/
double lat; /*< lat(deg)*/
@@ -27,11 +27,14 @@ typedef struct __mavlink_ins2_t {
uint8_t gps_status; /*< gps_status*/
uint8_t BIT; /*< BIT*/
uint8_t seq; /*< sequeue index*/
} mavlink_ins2_t;
uint16_t eph; /*< GPS HDOP horizontal dilution of position (unitless). If unknown, set to: UINT16_MAX*/
uint16_t epv; /*< GPS VDOP vertical dilution of position (unitless). If unknown, set to: UINT16_MAX*/
uint8_t satellites_visible; /*< Number of satellites visible. If unknown, set to 255*/
}) mavlink_ins2_t;
#define MAVLINK_MSG_ID_INS2_LEN 85
#define MAVLINK_MSG_ID_INS2_LEN 90
#define MAVLINK_MSG_ID_INS2_MIN_LEN 85
#define MAVLINK_MSG_ID_20104_LEN 85
#define MAVLINK_MSG_ID_20104_LEN 90
#define MAVLINK_MSG_ID_20104_MIN_LEN 85
#define MAVLINK_MSG_ID_INS2_CRC 212
@@ -43,7 +46,7 @@ typedef struct __mavlink_ins2_t {
#define MAVLINK_MESSAGE_INFO_INS2 { \
20104, \
"INS2", \
22, \
25, \
{ { "time_boot_ms", NULL, MAVLINK_TYPE_UINT32_T, 0, 24, offsetof(mavlink_ins2_t, time_boot_ms) }, \
{ "pitch", NULL, MAVLINK_TYPE_FLOAT, 0, 28, offsetof(mavlink_ins2_t, pitch) }, \
{ "roll", NULL, MAVLINK_TYPE_FLOAT, 0, 32, offsetof(mavlink_ins2_t, roll) }, \
@@ -66,12 +69,15 @@ typedef struct __mavlink_ins2_t {
{ "gps_status", NULL, MAVLINK_TYPE_UINT8_T, 0, 82, offsetof(mavlink_ins2_t, gps_status) }, \
{ "BIT", NULL, MAVLINK_TYPE_UINT8_T, 0, 83, offsetof(mavlink_ins2_t, BIT) }, \
{ "seq", NULL, MAVLINK_TYPE_UINT8_T, 0, 84, offsetof(mavlink_ins2_t, seq) }, \
{ "eph", NULL, MAVLINK_TYPE_UINT16_T, 0, 85, offsetof(mavlink_ins2_t, eph) }, \
{ "epv", NULL, MAVLINK_TYPE_UINT16_T, 0, 87, offsetof(mavlink_ins2_t, epv) }, \
{ "satellites_visible", NULL, MAVLINK_TYPE_UINT8_T, 0, 89, offsetof(mavlink_ins2_t, satellites_visible) }, \
} \
}
#else
#define MAVLINK_MESSAGE_INFO_INS2 { \
"INS2", \
22, \
25, \
{ { "time_boot_ms", NULL, MAVLINK_TYPE_UINT32_T, 0, 24, offsetof(mavlink_ins2_t, time_boot_ms) }, \
{ "pitch", NULL, MAVLINK_TYPE_FLOAT, 0, 28, offsetof(mavlink_ins2_t, pitch) }, \
{ "roll", NULL, MAVLINK_TYPE_FLOAT, 0, 32, offsetof(mavlink_ins2_t, roll) }, \
@@ -94,6 +100,9 @@ typedef struct __mavlink_ins2_t {
{ "gps_status", NULL, MAVLINK_TYPE_UINT8_T, 0, 82, offsetof(mavlink_ins2_t, gps_status) }, \
{ "BIT", NULL, MAVLINK_TYPE_UINT8_T, 0, 83, offsetof(mavlink_ins2_t, BIT) }, \
{ "seq", NULL, MAVLINK_TYPE_UINT8_T, 0, 84, offsetof(mavlink_ins2_t, seq) }, \
{ "eph", NULL, MAVLINK_TYPE_UINT16_T, 0, 85, offsetof(mavlink_ins2_t, eph) }, \
{ "epv", NULL, MAVLINK_TYPE_UINT16_T, 0, 87, offsetof(mavlink_ins2_t, epv) }, \
{ "satellites_visible", NULL, MAVLINK_TYPE_UINT8_T, 0, 89, offsetof(mavlink_ins2_t, satellites_visible) }, \
} \
}
#endif
@@ -126,10 +135,13 @@ typedef struct __mavlink_ins2_t {
* @param gps_status gps_status
* @param BIT BIT
* @param seq sequeue index
* @param eph GPS HDOP horizontal dilution of position (unitless). If unknown, set to: UINT16_MAX
* @param epv GPS VDOP vertical dilution of position (unitless). If unknown, set to: UINT16_MAX
* @param satellites_visible Number of satellites visible. If unknown, set to 255
* @return length of the message in bytes (excluding serial stream start sign)
*/
static inline uint16_t mavlink_msg_ins2_pack(uint16_t system_id, uint8_t component_id, mavlink_message_t* msg,
uint32_t time_boot_ms, float pitch, float roll, float yaw, double lon, double lat, float alt, float v_north, float v_up, float v_east, float gx, float gy, float gz, float ax, float ay, float az, double time, uint8_t sys_status, uint8_t com_status, uint8_t gps_status, uint8_t BIT, uint8_t seq)
uint32_t time_boot_ms, float pitch, float roll, float yaw, double lon, double lat, float alt, float v_north, float v_up, float v_east, float gx, float gy, float gz, float ax, float ay, float az, double time, uint8_t sys_status, uint8_t com_status, uint8_t gps_status, uint8_t BIT, uint8_t seq, uint16_t eph, uint16_t epv, uint8_t satellites_visible)
{
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
char buf[MAVLINK_MSG_ID_INS2_LEN];
@@ -155,6 +167,9 @@ static inline uint16_t mavlink_msg_ins2_pack(uint16_t system_id, uint8_t compone
_mav_put_uint8_t(buf, 82, gps_status);
_mav_put_uint8_t(buf, 83, BIT);
_mav_put_uint8_t(buf, 84, seq);
_mav_put_uint16_t(buf, 85, eph);
_mav_put_uint16_t(buf, 87, epv);
_mav_put_uint8_t(buf, 89, satellites_visible);
memcpy(_MAV_PAYLOAD_NON_CONST(msg), buf, MAVLINK_MSG_ID_INS2_LEN);
#else
@@ -181,6 +196,9 @@ static inline uint16_t mavlink_msg_ins2_pack(uint16_t system_id, uint8_t compone
packet.gps_status = gps_status;
packet.BIT = BIT;
packet.seq = seq;
packet.eph = eph;
packet.epv = epv;
packet.satellites_visible = satellites_visible;
memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_INS2_LEN);
#endif
@@ -217,11 +235,14 @@ static inline uint16_t mavlink_msg_ins2_pack(uint16_t system_id, uint8_t compone
* @param gps_status gps_status
* @param BIT BIT
* @param seq sequeue index
* @param eph GPS HDOP horizontal dilution of position (unitless). If unknown, set to: UINT16_MAX
* @param epv GPS VDOP vertical dilution of position (unitless). If unknown, set to: UINT16_MAX
* @param satellites_visible Number of satellites visible. If unknown, set to 255
* @return length of the message in bytes (excluding serial stream start sign)
*/
static inline uint16_t mavlink_msg_ins2_pack_chan(uint16_t system_id, uint8_t component_id, uint8_t chan,
mavlink_message_t* msg,
uint32_t time_boot_ms,float pitch,float roll,float yaw,double lon,double lat,float alt,float v_north,float v_up,float v_east,float gx,float gy,float gz,float ax,float ay,float az,double time,uint8_t sys_status,uint8_t com_status,uint8_t gps_status,uint8_t BIT,uint8_t seq)
uint32_t time_boot_ms,float pitch,float roll,float yaw,double lon,double lat,float alt,float v_north,float v_up,float v_east,float gx,float gy,float gz,float ax,float ay,float az,double time,uint8_t sys_status,uint8_t com_status,uint8_t gps_status,uint8_t BIT,uint8_t seq,uint16_t eph,uint16_t epv,uint8_t satellites_visible)
{
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
char buf[MAVLINK_MSG_ID_INS2_LEN];
@@ -247,6 +268,9 @@ static inline uint16_t mavlink_msg_ins2_pack_chan(uint16_t system_id, uint8_t co
_mav_put_uint8_t(buf, 82, gps_status);
_mav_put_uint8_t(buf, 83, BIT);
_mav_put_uint8_t(buf, 84, seq);
_mav_put_uint16_t(buf, 85, eph);
_mav_put_uint16_t(buf, 87, epv);
_mav_put_uint8_t(buf, 89, satellites_visible);
memcpy(_MAV_PAYLOAD_NON_CONST(msg), buf, MAVLINK_MSG_ID_INS2_LEN);
#else
@@ -273,6 +297,9 @@ static inline uint16_t mavlink_msg_ins2_pack_chan(uint16_t system_id, uint8_t co
packet.gps_status = gps_status;
packet.BIT = BIT;
packet.seq = seq;
packet.eph = eph;
packet.epv = epv;
packet.satellites_visible = satellites_visible;
memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_INS2_LEN);
#endif
@@ -291,7 +318,7 @@ static inline uint16_t mavlink_msg_ins2_pack_chan(uint16_t system_id, uint8_t co
*/
static inline uint16_t mavlink_msg_ins2_encode(uint16_t system_id, uint8_t component_id, mavlink_message_t* msg, const mavlink_ins2_t* ins2)
{
return mavlink_msg_ins2_pack(system_id, component_id, msg, ins2->time_boot_ms, ins2->pitch, ins2->roll, ins2->yaw, ins2->lon, ins2->lat, ins2->alt, ins2->v_north, ins2->v_up, ins2->v_east, ins2->gx, ins2->gy, ins2->gz, ins2->ax, ins2->ay, ins2->az, ins2->time, ins2->sys_status, ins2->com_status, ins2->gps_status, ins2->BIT, ins2->seq);
return mavlink_msg_ins2_pack(system_id, component_id, msg, ins2->time_boot_ms, ins2->pitch, ins2->roll, ins2->yaw, ins2->lon, ins2->lat, ins2->alt, ins2->v_north, ins2->v_up, ins2->v_east, ins2->gx, ins2->gy, ins2->gz, ins2->ax, ins2->ay, ins2->az, ins2->time, ins2->sys_status, ins2->com_status, ins2->gps_status, ins2->BIT, ins2->seq, ins2->eph, ins2->epv, ins2->satellites_visible);
}
/**
@@ -305,7 +332,7 @@ static inline uint16_t mavlink_msg_ins2_encode(uint16_t system_id, uint8_t compo
*/
static inline uint16_t mavlink_msg_ins2_encode_chan(uint16_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t* msg, const mavlink_ins2_t* ins2)
{
return mavlink_msg_ins2_pack_chan(system_id, component_id, chan, msg, ins2->time_boot_ms, ins2->pitch, ins2->roll, ins2->yaw, ins2->lon, ins2->lat, ins2->alt, ins2->v_north, ins2->v_up, ins2->v_east, ins2->gx, ins2->gy, ins2->gz, ins2->ax, ins2->ay, ins2->az, ins2->time, ins2->sys_status, ins2->com_status, ins2->gps_status, ins2->BIT, ins2->seq);
return mavlink_msg_ins2_pack_chan(system_id, component_id, chan, msg, ins2->time_boot_ms, ins2->pitch, ins2->roll, ins2->yaw, ins2->lon, ins2->lat, ins2->alt, ins2->v_north, ins2->v_up, ins2->v_east, ins2->gx, ins2->gy, ins2->gz, ins2->ax, ins2->ay, ins2->az, ins2->time, ins2->sys_status, ins2->com_status, ins2->gps_status, ins2->BIT, ins2->seq, ins2->eph, ins2->epv, ins2->satellites_visible);
}
/**
@@ -334,10 +361,13 @@ static inline uint16_t mavlink_msg_ins2_encode_chan(uint16_t system_id, uint8_t
* @param gps_status gps_status
* @param BIT BIT
* @param seq sequeue index
* @param eph GPS HDOP horizontal dilution of position (unitless). If unknown, set to: UINT16_MAX
* @param epv GPS VDOP vertical dilution of position (unitless). If unknown, set to: UINT16_MAX
* @param satellites_visible Number of satellites visible. If unknown, set to 255
*/
#ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS
static inline void mavlink_msg_ins2_send(mavlink_channel_t chan, uint32_t time_boot_ms, float pitch, float roll, float yaw, double lon, double lat, float alt, float v_north, float v_up, float v_east, float gx, float gy, float gz, float ax, float ay, float az, double time, uint8_t sys_status, uint8_t com_status, uint8_t gps_status, uint8_t BIT, uint8_t seq)
static inline void mavlink_msg_ins2_send(mavlink_channel_t chan, uint32_t time_boot_ms, float pitch, float roll, float yaw, double lon, double lat, float alt, float v_north, float v_up, float v_east, float gx, float gy, float gz, float ax, float ay, float az, double time, uint8_t sys_status, uint8_t com_status, uint8_t gps_status, uint8_t BIT, uint8_t seq, uint16_t eph, uint16_t epv, uint8_t satellites_visible)
{
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
char buf[MAVLINK_MSG_ID_INS2_LEN];
@@ -363,6 +393,9 @@ static inline void mavlink_msg_ins2_send(mavlink_channel_t chan, uint32_t time_b
_mav_put_uint8_t(buf, 82, gps_status);
_mav_put_uint8_t(buf, 83, BIT);
_mav_put_uint8_t(buf, 84, seq);
_mav_put_uint16_t(buf, 85, eph);
_mav_put_uint16_t(buf, 87, epv);
_mav_put_uint8_t(buf, 89, satellites_visible);
_mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_INS2, buf, MAVLINK_MSG_ID_INS2_MIN_LEN, MAVLINK_MSG_ID_INS2_LEN, MAVLINK_MSG_ID_INS2_CRC);
#else
@@ -389,6 +422,9 @@ static inline void mavlink_msg_ins2_send(mavlink_channel_t chan, uint32_t time_b
packet.gps_status = gps_status;
packet.BIT = BIT;
packet.seq = seq;
packet.eph = eph;
packet.epv = epv;
packet.satellites_visible = satellites_visible;
_mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_INS2, (const char *)&packet, MAVLINK_MSG_ID_INS2_MIN_LEN, MAVLINK_MSG_ID_INS2_LEN, MAVLINK_MSG_ID_INS2_CRC);
#endif
@@ -402,7 +438,7 @@ static inline void mavlink_msg_ins2_send(mavlink_channel_t chan, uint32_t time_b
static inline void mavlink_msg_ins2_send_struct(mavlink_channel_t chan, const mavlink_ins2_t* ins2)
{
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
mavlink_msg_ins2_send(chan, ins2->time_boot_ms, ins2->pitch, ins2->roll, ins2->yaw, ins2->lon, ins2->lat, ins2->alt, ins2->v_north, ins2->v_up, ins2->v_east, ins2->gx, ins2->gy, ins2->gz, ins2->ax, ins2->ay, ins2->az, ins2->time, ins2->sys_status, ins2->com_status, ins2->gps_status, ins2->BIT, ins2->seq);
mavlink_msg_ins2_send(chan, ins2->time_boot_ms, ins2->pitch, ins2->roll, ins2->yaw, ins2->lon, ins2->lat, ins2->alt, ins2->v_north, ins2->v_up, ins2->v_east, ins2->gx, ins2->gy, ins2->gz, ins2->ax, ins2->ay, ins2->az, ins2->time, ins2->sys_status, ins2->com_status, ins2->gps_status, ins2->BIT, ins2->seq, ins2->eph, ins2->epv, ins2->satellites_visible);
#else
_mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_INS2, (const char *)ins2, MAVLINK_MSG_ID_INS2_MIN_LEN, MAVLINK_MSG_ID_INS2_LEN, MAVLINK_MSG_ID_INS2_CRC);
#endif
@@ -416,7 +452,7 @@ static inline void mavlink_msg_ins2_send_struct(mavlink_channel_t chan, const ma
is usually the receive buffer for the channel, and allows a reply to an
incoming message with minimum stack space usage.
*/
static inline void mavlink_msg_ins2_send_buf(mavlink_message_t *msgbuf, mavlink_channel_t chan, uint32_t time_boot_ms, float pitch, float roll, float yaw, double lon, double lat, float alt, float v_north, float v_up, float v_east, float gx, float gy, float gz, float ax, float ay, float az, double time, uint8_t sys_status, uint8_t com_status, uint8_t gps_status, uint8_t BIT, uint8_t seq)
static inline void mavlink_msg_ins2_send_buf(mavlink_message_t *msgbuf, mavlink_channel_t chan, uint32_t time_boot_ms, float pitch, float roll, float yaw, double lon, double lat, float alt, float v_north, float v_up, float v_east, float gx, float gy, float gz, float ax, float ay, float az, double time, uint8_t sys_status, uint8_t com_status, uint8_t gps_status, uint8_t BIT, uint8_t seq, uint16_t eph, uint16_t epv, uint8_t satellites_visible)
{
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
char *buf = (char *)msgbuf;
@@ -442,6 +478,9 @@ static inline void mavlink_msg_ins2_send_buf(mavlink_message_t *msgbuf, mavlink_
_mav_put_uint8_t(buf, 82, gps_status);
_mav_put_uint8_t(buf, 83, BIT);
_mav_put_uint8_t(buf, 84, seq);
_mav_put_uint16_t(buf, 85, eph);
_mav_put_uint16_t(buf, 87, epv);
_mav_put_uint8_t(buf, 89, satellites_visible);
_mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_INS2, buf, MAVLINK_MSG_ID_INS2_MIN_LEN, MAVLINK_MSG_ID_INS2_LEN, MAVLINK_MSG_ID_INS2_CRC);
#else
@@ -468,6 +507,9 @@ static inline void mavlink_msg_ins2_send_buf(mavlink_message_t *msgbuf, mavlink_
packet->gps_status = gps_status;
packet->BIT = BIT;
packet->seq = seq;
packet->eph = eph;
packet->epv = epv;
packet->satellites_visible = satellites_visible;
_mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_INS2, (const char *)packet, MAVLINK_MSG_ID_INS2_MIN_LEN, MAVLINK_MSG_ID_INS2_LEN, MAVLINK_MSG_ID_INS2_CRC);
#endif
@@ -699,6 +741,36 @@ static inline uint8_t mavlink_msg_ins2_get_seq(const mavlink_message_t* msg)
return _MAV_RETURN_uint8_t(msg, 84);
}
/**
* @brief Get field eph from ins2 message
*
* @return GPS HDOP horizontal dilution of position (unitless). If unknown, set to: UINT16_MAX
*/
static inline uint16_t mavlink_msg_ins2_get_eph(const mavlink_message_t* msg)
{
return _MAV_RETURN_uint16_t(msg, 85);
}
/**
* @brief Get field epv from ins2 message
*
* @return GPS VDOP vertical dilution of position (unitless). If unknown, set to: UINT16_MAX
*/
static inline uint16_t mavlink_msg_ins2_get_epv(const mavlink_message_t* msg)
{
return _MAV_RETURN_uint16_t(msg, 87);
}
/**
* @brief Get field satellites_visible from ins2 message
*
* @return Number of satellites visible. If unknown, set to 255
*/
static inline uint8_t mavlink_msg_ins2_get_satellites_visible(const mavlink_message_t* msg)
{
return _MAV_RETURN_uint8_t(msg, 89);
}
/**
* @brief Decode a ins2 message into a struct
*
@@ -730,6 +802,9 @@ static inline void mavlink_msg_ins2_decode(const mavlink_message_t* msg, mavlink
ins2->gps_status = mavlink_msg_ins2_get_gps_status(msg);
ins2->BIT = mavlink_msg_ins2_get_BIT(msg);
ins2->seq = mavlink_msg_ins2_get_seq(msg);
ins2->eph = mavlink_msg_ins2_get_eph(msg);
ins2->epv = mavlink_msg_ins2_get_epv(msg);
ins2->satellites_visible = mavlink_msg_ins2_get_satellites_visible(msg);
#else
uint8_t len = msg->len < MAVLINK_MSG_ID_INS2_LEN? msg->len : MAVLINK_MSG_ID_INS2_LEN;
memset(ins2, 0, MAVLINK_MSG_ID_INS2_LEN);
+19 -12
View File
@@ -3643,7 +3643,7 @@ static void mavlink_test_emb_atmo_com(uint16_t system_id, uint8_t component_id,
uint8_t buffer[MAVLINK_MAX_PACKET_LEN];
uint16_t i;
mavlink_emb_atmo_com_t packet_in = {
963497464,45.0,73.0,101.0,129.0,157.0,77
963497464,45.0,73.0,101.0,129.0,157.0,77,192.0
};
mavlink_emb_atmo_com_t packet1, packet2;
memset(&packet1, 0, sizeof(packet1));
@@ -3654,6 +3654,7 @@ static void mavlink_test_emb_atmo_com(uint16_t system_id, uint8_t component_id,
packet1.ps = packet_in.ps;
packet1.qbar = packet_in.qbar;
packet1.seq = packet_in.seq;
packet1.mach = packet_in.mach;
#ifdef MAVLINK_STATUS_FLAG_OUT_MAVLINK1
@@ -3668,12 +3669,12 @@ static void mavlink_test_emb_atmo_com(uint16_t system_id, uint8_t component_id,
MAVLINK_ASSERT(memcmp(&packet1, &packet2, sizeof(packet1)) == 0);
memset(&packet2, 0, sizeof(packet2));
mavlink_msg_emb_atmo_com_pack(system_id, component_id, &msg , packet1.time_boot_ms , packet1.Airspeed , packet1.beta , packet1.alpha , packet1.ps , packet1.qbar , packet1.seq );
mavlink_msg_emb_atmo_com_pack(system_id, component_id, &msg , packet1.time_boot_ms , packet1.Airspeed , packet1.beta , packet1.alpha , packet1.ps , packet1.qbar , packet1.seq , packet1.mach );
mavlink_msg_emb_atmo_com_decode(&msg, &packet2);
MAVLINK_ASSERT(memcmp(&packet1, &packet2, sizeof(packet1)) == 0);
memset(&packet2, 0, sizeof(packet2));
mavlink_msg_emb_atmo_com_pack_chan(system_id, component_id, MAVLINK_COMM_0, &msg , packet1.time_boot_ms , packet1.Airspeed , packet1.beta , packet1.alpha , packet1.ps , packet1.qbar , packet1.seq );
mavlink_msg_emb_atmo_com_pack_chan(system_id, component_id, MAVLINK_COMM_0, &msg , packet1.time_boot_ms , packet1.Airspeed , packet1.beta , packet1.alpha , packet1.ps , packet1.qbar , packet1.seq , packet1.mach );
mavlink_msg_emb_atmo_com_decode(&msg, &packet2);
MAVLINK_ASSERT(memcmp(&packet1, &packet2, sizeof(packet1)) == 0);
@@ -3686,7 +3687,7 @@ static void mavlink_test_emb_atmo_com(uint16_t system_id, uint8_t component_id,
MAVLINK_ASSERT(memcmp(&packet1, &packet2, sizeof(packet1)) == 0);
memset(&packet2, 0, sizeof(packet2));
mavlink_msg_emb_atmo_com_send(MAVLINK_COMM_1 , packet1.time_boot_ms , packet1.Airspeed , packet1.beta , packet1.alpha , packet1.ps , packet1.qbar , packet1.seq );
mavlink_msg_emb_atmo_com_send(MAVLINK_COMM_1 , packet1.time_boot_ms , packet1.Airspeed , packet1.beta , packet1.alpha , packet1.ps , packet1.qbar , packet1.seq , packet1.mach );
mavlink_msg_emb_atmo_com_decode(last_msg, &packet2);
MAVLINK_ASSERT(memcmp(&packet1, &packet2, sizeof(packet1)) == 0);
}
@@ -3760,7 +3761,7 @@ static void mavlink_test_ins1(uint16_t system_id, uint8_t component_id, mavlink_
uint8_t buffer[MAVLINK_MAX_PACKET_LEN];
uint16_t i;
mavlink_ins1_t packet_in = {
123.0,179.0,235.0,963498712,213.0,241.0,269.0,297.0,325.0,353.0,381.0,409.0,437.0,465.0,493.0,521.0,549.0,245,56,123,190,1
123.0,179.0,235.0,963498712,213.0,241.0,269.0,297.0,325.0,353.0,381.0,409.0,437.0,465.0,493.0,521.0,549.0,245,56,123,190,1,21655,21759,80
};
mavlink_ins1_t packet1, packet2;
memset(&packet1, 0, sizeof(packet1));
@@ -3786,6 +3787,9 @@ static void mavlink_test_ins1(uint16_t system_id, uint8_t component_id, mavlink_
packet1.gps_status = packet_in.gps_status;
packet1.BIT = packet_in.BIT;
packet1.seq = packet_in.seq;
packet1.eph = packet_in.eph;
packet1.epv = packet_in.epv;
packet1.satellites_visible = packet_in.satellites_visible;
#ifdef MAVLINK_STATUS_FLAG_OUT_MAVLINK1
@@ -3800,12 +3804,12 @@ static void mavlink_test_ins1(uint16_t system_id, uint8_t component_id, mavlink_
MAVLINK_ASSERT(memcmp(&packet1, &packet2, sizeof(packet1)) == 0);
memset(&packet2, 0, sizeof(packet2));
mavlink_msg_ins1_pack(system_id, component_id, &msg , packet1.time_boot_ms , packet1.pitch , packet1.roll , packet1.yaw , packet1.lon , packet1.lat , packet1.alt , packet1.v_north , packet1.v_up , packet1.v_east , packet1.gx , packet1.gy , packet1.gz , packet1.ax , packet1.ay , packet1.az , packet1.time , packet1.sys_status , packet1.com_status , packet1.gps_status , packet1.BIT , packet1.seq );
mavlink_msg_ins1_pack(system_id, component_id, &msg , packet1.time_boot_ms , packet1.pitch , packet1.roll , packet1.yaw , packet1.lon , packet1.lat , packet1.alt , packet1.v_north , packet1.v_up , packet1.v_east , packet1.gx , packet1.gy , packet1.gz , packet1.ax , packet1.ay , packet1.az , packet1.time , packet1.sys_status , packet1.com_status , packet1.gps_status , packet1.BIT , packet1.seq , packet1.eph , packet1.epv , packet1.satellites_visible );
mavlink_msg_ins1_decode(&msg, &packet2);
MAVLINK_ASSERT(memcmp(&packet1, &packet2, sizeof(packet1)) == 0);
memset(&packet2, 0, sizeof(packet2));
mavlink_msg_ins1_pack_chan(system_id, component_id, MAVLINK_COMM_0, &msg , packet1.time_boot_ms , packet1.pitch , packet1.roll , packet1.yaw , packet1.lon , packet1.lat , packet1.alt , packet1.v_north , packet1.v_up , packet1.v_east , packet1.gx , packet1.gy , packet1.gz , packet1.ax , packet1.ay , packet1.az , packet1.time , packet1.sys_status , packet1.com_status , packet1.gps_status , packet1.BIT , packet1.seq );
mavlink_msg_ins1_pack_chan(system_id, component_id, MAVLINK_COMM_0, &msg , packet1.time_boot_ms , packet1.pitch , packet1.roll , packet1.yaw , packet1.lon , packet1.lat , packet1.alt , packet1.v_north , packet1.v_up , packet1.v_east , packet1.gx , packet1.gy , packet1.gz , packet1.ax , packet1.ay , packet1.az , packet1.time , packet1.sys_status , packet1.com_status , packet1.gps_status , packet1.BIT , packet1.seq , packet1.eph , packet1.epv , packet1.satellites_visible );
mavlink_msg_ins1_decode(&msg, &packet2);
MAVLINK_ASSERT(memcmp(&packet1, &packet2, sizeof(packet1)) == 0);
@@ -3818,7 +3822,7 @@ static void mavlink_test_ins1(uint16_t system_id, uint8_t component_id, mavlink_
MAVLINK_ASSERT(memcmp(&packet1, &packet2, sizeof(packet1)) == 0);
memset(&packet2, 0, sizeof(packet2));
mavlink_msg_ins1_send(MAVLINK_COMM_1 , packet1.time_boot_ms , packet1.pitch , packet1.roll , packet1.yaw , packet1.lon , packet1.lat , packet1.alt , packet1.v_north , packet1.v_up , packet1.v_east , packet1.gx , packet1.gy , packet1.gz , packet1.ax , packet1.ay , packet1.az , packet1.time , packet1.sys_status , packet1.com_status , packet1.gps_status , packet1.BIT , packet1.seq );
mavlink_msg_ins1_send(MAVLINK_COMM_1 , packet1.time_boot_ms , packet1.pitch , packet1.roll , packet1.yaw , packet1.lon , packet1.lat , packet1.alt , packet1.v_north , packet1.v_up , packet1.v_east , packet1.gx , packet1.gy , packet1.gz , packet1.ax , packet1.ay , packet1.az , packet1.time , packet1.sys_status , packet1.com_status , packet1.gps_status , packet1.BIT , packet1.seq , packet1.eph , packet1.epv , packet1.satellites_visible );
mavlink_msg_ins1_decode(last_msg, &packet2);
MAVLINK_ASSERT(memcmp(&packet1, &packet2, sizeof(packet1)) == 0);
}
@@ -3835,7 +3839,7 @@ static void mavlink_test_ins2(uint16_t system_id, uint8_t component_id, mavlink_
uint8_t buffer[MAVLINK_MAX_PACKET_LEN];
uint16_t i;
mavlink_ins2_t packet_in = {
123.0,179.0,235.0,963498712,213.0,241.0,269.0,297.0,325.0,353.0,381.0,409.0,437.0,465.0,493.0,521.0,549.0,245,56,123,190,1
123.0,179.0,235.0,963498712,213.0,241.0,269.0,297.0,325.0,353.0,381.0,409.0,437.0,465.0,493.0,521.0,549.0,245,56,123,190,1,21655,21759,80
};
mavlink_ins2_t packet1, packet2;
memset(&packet1, 0, sizeof(packet1));
@@ -3861,6 +3865,9 @@ static void mavlink_test_ins2(uint16_t system_id, uint8_t component_id, mavlink_
packet1.gps_status = packet_in.gps_status;
packet1.BIT = packet_in.BIT;
packet1.seq = packet_in.seq;
packet1.eph = packet_in.eph;
packet1.epv = packet_in.epv;
packet1.satellites_visible = packet_in.satellites_visible;
#ifdef MAVLINK_STATUS_FLAG_OUT_MAVLINK1
@@ -3875,12 +3882,12 @@ static void mavlink_test_ins2(uint16_t system_id, uint8_t component_id, mavlink_
MAVLINK_ASSERT(memcmp(&packet1, &packet2, sizeof(packet1)) == 0);
memset(&packet2, 0, sizeof(packet2));
mavlink_msg_ins2_pack(system_id, component_id, &msg , packet1.time_boot_ms , packet1.pitch , packet1.roll , packet1.yaw , packet1.lon , packet1.lat , packet1.alt , packet1.v_north , packet1.v_up , packet1.v_east , packet1.gx , packet1.gy , packet1.gz , packet1.ax , packet1.ay , packet1.az , packet1.time , packet1.sys_status , packet1.com_status , packet1.gps_status , packet1.BIT , packet1.seq );
mavlink_msg_ins2_pack(system_id, component_id, &msg , packet1.time_boot_ms , packet1.pitch , packet1.roll , packet1.yaw , packet1.lon , packet1.lat , packet1.alt , packet1.v_north , packet1.v_up , packet1.v_east , packet1.gx , packet1.gy , packet1.gz , packet1.ax , packet1.ay , packet1.az , packet1.time , packet1.sys_status , packet1.com_status , packet1.gps_status , packet1.BIT , packet1.seq , packet1.eph , packet1.epv , packet1.satellites_visible );
mavlink_msg_ins2_decode(&msg, &packet2);
MAVLINK_ASSERT(memcmp(&packet1, &packet2, sizeof(packet1)) == 0);
memset(&packet2, 0, sizeof(packet2));
mavlink_msg_ins2_pack_chan(system_id, component_id, MAVLINK_COMM_0, &msg , packet1.time_boot_ms , packet1.pitch , packet1.roll , packet1.yaw , packet1.lon , packet1.lat , packet1.alt , packet1.v_north , packet1.v_up , packet1.v_east , packet1.gx , packet1.gy , packet1.gz , packet1.ax , packet1.ay , packet1.az , packet1.time , packet1.sys_status , packet1.com_status , packet1.gps_status , packet1.BIT , packet1.seq );
mavlink_msg_ins2_pack_chan(system_id, component_id, MAVLINK_COMM_0, &msg , packet1.time_boot_ms , packet1.pitch , packet1.roll , packet1.yaw , packet1.lon , packet1.lat , packet1.alt , packet1.v_north , packet1.v_up , packet1.v_east , packet1.gx , packet1.gy , packet1.gz , packet1.ax , packet1.ay , packet1.az , packet1.time , packet1.sys_status , packet1.com_status , packet1.gps_status , packet1.BIT , packet1.seq , packet1.eph , packet1.epv , packet1.satellites_visible );
mavlink_msg_ins2_decode(&msg, &packet2);
MAVLINK_ASSERT(memcmp(&packet1, &packet2, sizeof(packet1)) == 0);
@@ -3893,7 +3900,7 @@ static void mavlink_test_ins2(uint16_t system_id, uint8_t component_id, mavlink_
MAVLINK_ASSERT(memcmp(&packet1, &packet2, sizeof(packet1)) == 0);
memset(&packet2, 0, sizeof(packet2));
mavlink_msg_ins2_send(MAVLINK_COMM_1 , packet1.time_boot_ms , packet1.pitch , packet1.roll , packet1.yaw , packet1.lon , packet1.lat , packet1.alt , packet1.v_north , packet1.v_up , packet1.v_east , packet1.gx , packet1.gy , packet1.gz , packet1.ax , packet1.ay , packet1.az , packet1.time , packet1.sys_status , packet1.com_status , packet1.gps_status , packet1.BIT , packet1.seq );
mavlink_msg_ins2_send(MAVLINK_COMM_1 , packet1.time_boot_ms , packet1.pitch , packet1.roll , packet1.yaw , packet1.lon , packet1.lat , packet1.alt , packet1.v_north , packet1.v_up , packet1.v_east , packet1.gx , packet1.gy , packet1.gz , packet1.ax , packet1.ay , packet1.az , packet1.time , packet1.sys_status , packet1.com_status , packet1.gps_status , packet1.BIT , packet1.seq , packet1.eph , packet1.epv , packet1.satellites_visible );
mavlink_msg_ins2_decode(last_msg, &packet2);
MAVLINK_ASSERT(memcmp(&packet1, &packet2, sizeof(packet1)) == 0);
}
+1 -1
View File
@@ -7,7 +7,7 @@
#ifndef MAVLINK_VERSION_H
#define MAVLINK_VERSION_H
#define MAVLINK_BUILD_DATE "Tue Oct 06 2020"
#define MAVLINK_BUILD_DATE "Thu Oct 22 2020"
#define MAVLINK_WIRE_PROTOCOL_VERSION "2.0"
#define MAVLINK_MAX_DIALECT_PAYLOAD_SIZE 255
+1 -1
View File
@@ -7,7 +7,7 @@
#ifndef MAVLINK_VERSION_H
#define MAVLINK_VERSION_H
#define MAVLINK_BUILD_DATE "Tue Oct 06 2020"
#define MAVLINK_BUILD_DATE "Thu Oct 22 2020"
#define MAVLINK_WIRE_PROTOCOL_VERSION "2.0"
#define MAVLINK_MAX_DIALECT_PAYLOAD_SIZE 255
+1 -1
View File
@@ -7,7 +7,7 @@
#ifndef MAVLINK_VERSION_H
#define MAVLINK_VERSION_H
#define MAVLINK_BUILD_DATE "Tue Oct 06 2020"
#define MAVLINK_BUILD_DATE "Thu Oct 22 2020"
#define MAVLINK_WIRE_PROTOCOL_VERSION "2.0"
#define MAVLINK_MAX_DIALECT_PAYLOAD_SIZE 46
+10
View File
@@ -1591,6 +1591,8 @@
<field type="float" name="ps"> Static pressure [Pa]</field>
<field type="float" name="qbar"> Dynamic pressure [Pa]</field>
<field type="uint8_t" name="seq">sequeue index</field>
<extensions/>
<field type="float" name="mach">Mach</field>
</message>
<message id="20102" name="RADAR_ALTM">
<description>Radar Altitude Meter</description>
@@ -1623,6 +1625,10 @@
<field type="uint8_t" name="gps_status">gps_status</field>
<field type="uint8_t" name="BIT">BIT</field>
<field type="uint8_t" name="seq">sequeue index</field>
<extensions/>
<field type="uint16_t" name="eph">GPS HDOP horizontal dilution of position (unitless). If unknown, set to: UINT16_MAX</field>
<field type="uint16_t" name="epv">GPS VDOP vertical dilution of position (unitless). If unknown, set to: UINT16_MAX</field>
<field type="uint8_t" name="satellites_visible">Number of satellites visible. If unknown, set to 255</field>
</message>
<message id="20104" name="INS2">
<description>INS-2</description>
@@ -1648,6 +1654,10 @@
<field type="uint8_t" name="gps_status">gps_status</field>
<field type="uint8_t" name="BIT">BIT</field>
<field type="uint8_t" name="seq">sequeue index</field>
<extensions/>
<field type="uint16_t" name="eph">GPS HDOP horizontal dilution of position (unitless). If unknown, set to: UINT16_MAX</field>
<field type="uint16_t" name="epv">GPS VDOP vertical dilution of position (unitless). If unknown, set to: UINT16_MAX</field>
<field type="uint8_t" name="satellites_visible">Number of satellites visible. If unknown, set to 255</field>
</message>
<message id="20105" name="TUB_LND">
<description>TUB and LND</description>
+1 -1
View File
@@ -7,7 +7,7 @@
#ifndef MAVLINK_VERSION_H
#define MAVLINK_VERSION_H
#define MAVLINK_BUILD_DATE "Tue Oct 06 2020"
#define MAVLINK_BUILD_DATE "Thu Oct 22 2020"
#define MAVLINK_WIRE_PROTOCOL_VERSION "2.0"
#define MAVLINK_MAX_DIALECT_PAYLOAD_SIZE 22
+1 -1
View File
@@ -7,7 +7,7 @@
#ifndef MAVLINK_VERSION_H
#define MAVLINK_VERSION_H
#define MAVLINK_BUILD_DATE "Tue Oct 06 2020"
#define MAVLINK_BUILD_DATE "Thu Oct 22 2020"
#define MAVLINK_WIRE_PROTOCOL_VERSION "2.0"
#define MAVLINK_MAX_DIALECT_PAYLOAD_SIZE 255