add new messages
This commit is contained in:
@@ -0,0 +1,407 @@
|
||||
#pragma once
|
||||
// MESSAGE PBIT_RESULT PACKING
|
||||
|
||||
#define MAVLINK_MSG_ID_PBIT_RESULT 20108
|
||||
|
||||
MAVPACKED(
|
||||
typedef struct __mavlink_pbit_result_t {
|
||||
uint32_t time_boot_ms; /*< Timestamp (milliseconds since system boot)*/
|
||||
uint32_t CPM1; /*< CPM1*/
|
||||
uint32_t CPM2; /*< CPM2*/
|
||||
uint32_t CPM3; /*< CPM3*/
|
||||
uint32_t BIM1; /*< BIM1*/
|
||||
uint32_t BIM2; /*< BIM2*/
|
||||
uint32_t DSP[2]; /*< DSP*/
|
||||
uint32_t CFL[2]; /*< CFL*/
|
||||
uint32_t A659[2]; /*< A659*/
|
||||
}) mavlink_pbit_result_t;
|
||||
|
||||
#define MAVLINK_MSG_ID_PBIT_RESULT_LEN 48
|
||||
#define MAVLINK_MSG_ID_PBIT_RESULT_MIN_LEN 48
|
||||
#define MAVLINK_MSG_ID_20108_LEN 48
|
||||
#define MAVLINK_MSG_ID_20108_MIN_LEN 48
|
||||
|
||||
#define MAVLINK_MSG_ID_PBIT_RESULT_CRC 50
|
||||
#define MAVLINK_MSG_ID_20108_CRC 50
|
||||
|
||||
#define MAVLINK_MSG_PBIT_RESULT_FIELD_DSP_LEN 2
|
||||
#define MAVLINK_MSG_PBIT_RESULT_FIELD_CFL_LEN 2
|
||||
#define MAVLINK_MSG_PBIT_RESULT_FIELD_A659_LEN 2
|
||||
|
||||
#if MAVLINK_COMMAND_24BIT
|
||||
#define MAVLINK_MESSAGE_INFO_PBIT_RESULT { \
|
||||
20108, \
|
||||
"PBIT_RESULT", \
|
||||
9, \
|
||||
{ { "time_boot_ms", NULL, MAVLINK_TYPE_UINT32_T, 0, 0, offsetof(mavlink_pbit_result_t, time_boot_ms) }, \
|
||||
{ "CPM1", NULL, MAVLINK_TYPE_UINT32_T, 0, 4, offsetof(mavlink_pbit_result_t, CPM1) }, \
|
||||
{ "CPM2", NULL, MAVLINK_TYPE_UINT32_T, 0, 8, offsetof(mavlink_pbit_result_t, CPM2) }, \
|
||||
{ "CPM3", NULL, MAVLINK_TYPE_UINT32_T, 0, 12, offsetof(mavlink_pbit_result_t, CPM3) }, \
|
||||
{ "BIM1", NULL, MAVLINK_TYPE_UINT32_T, 0, 16, offsetof(mavlink_pbit_result_t, BIM1) }, \
|
||||
{ "BIM2", NULL, MAVLINK_TYPE_UINT32_T, 0, 20, offsetof(mavlink_pbit_result_t, BIM2) }, \
|
||||
{ "DSP", NULL, MAVLINK_TYPE_UINT32_T, 2, 24, offsetof(mavlink_pbit_result_t, DSP) }, \
|
||||
{ "CFL", NULL, MAVLINK_TYPE_UINT32_T, 2, 32, offsetof(mavlink_pbit_result_t, CFL) }, \
|
||||
{ "A659", NULL, MAVLINK_TYPE_UINT32_T, 2, 40, offsetof(mavlink_pbit_result_t, A659) }, \
|
||||
} \
|
||||
}
|
||||
#else
|
||||
#define MAVLINK_MESSAGE_INFO_PBIT_RESULT { \
|
||||
"PBIT_RESULT", \
|
||||
9, \
|
||||
{ { "time_boot_ms", NULL, MAVLINK_TYPE_UINT32_T, 0, 0, offsetof(mavlink_pbit_result_t, time_boot_ms) }, \
|
||||
{ "CPM1", NULL, MAVLINK_TYPE_UINT32_T, 0, 4, offsetof(mavlink_pbit_result_t, CPM1) }, \
|
||||
{ "CPM2", NULL, MAVLINK_TYPE_UINT32_T, 0, 8, offsetof(mavlink_pbit_result_t, CPM2) }, \
|
||||
{ "CPM3", NULL, MAVLINK_TYPE_UINT32_T, 0, 12, offsetof(mavlink_pbit_result_t, CPM3) }, \
|
||||
{ "BIM1", NULL, MAVLINK_TYPE_UINT32_T, 0, 16, offsetof(mavlink_pbit_result_t, BIM1) }, \
|
||||
{ "BIM2", NULL, MAVLINK_TYPE_UINT32_T, 0, 20, offsetof(mavlink_pbit_result_t, BIM2) }, \
|
||||
{ "DSP", NULL, MAVLINK_TYPE_UINT32_T, 2, 24, offsetof(mavlink_pbit_result_t, DSP) }, \
|
||||
{ "CFL", NULL, MAVLINK_TYPE_UINT32_T, 2, 32, offsetof(mavlink_pbit_result_t, CFL) }, \
|
||||
{ "A659", NULL, MAVLINK_TYPE_UINT32_T, 2, 40, offsetof(mavlink_pbit_result_t, A659) }, \
|
||||
} \
|
||||
}
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @brief Pack a pbit_result message
|
||||
* @param system_id ID of this system
|
||||
* @param component_id ID of this component (e.g. 200 for IMU)
|
||||
* @param msg The MAVLink message to compress the data into
|
||||
*
|
||||
* @param time_boot_ms Timestamp (milliseconds since system boot)
|
||||
* @param CPM1 CPM1
|
||||
* @param CPM2 CPM2
|
||||
* @param CPM3 CPM3
|
||||
* @param BIM1 BIM1
|
||||
* @param BIM2 BIM2
|
||||
* @param DSP DSP
|
||||
* @param CFL CFL
|
||||
* @param A659 A659
|
||||
* @return length of the message in bytes (excluding serial stream start sign)
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_pbit_result_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
|
||||
uint32_t time_boot_ms, uint32_t CPM1, uint32_t CPM2, uint32_t CPM3, uint32_t BIM1, uint32_t BIM2, const uint32_t *DSP, const uint32_t *CFL, const uint32_t *A659)
|
||||
{
|
||||
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
|
||||
char buf[MAVLINK_MSG_ID_PBIT_RESULT_LEN];
|
||||
_mav_put_uint32_t(buf, 0, time_boot_ms);
|
||||
_mav_put_uint32_t(buf, 4, CPM1);
|
||||
_mav_put_uint32_t(buf, 8, CPM2);
|
||||
_mav_put_uint32_t(buf, 12, CPM3);
|
||||
_mav_put_uint32_t(buf, 16, BIM1);
|
||||
_mav_put_uint32_t(buf, 20, BIM2);
|
||||
_mav_put_uint32_t_array(buf, 24, DSP, 2);
|
||||
_mav_put_uint32_t_array(buf, 32, CFL, 2);
|
||||
_mav_put_uint32_t_array(buf, 40, A659, 2);
|
||||
memcpy(_MAV_PAYLOAD_NON_CONST(msg), buf, MAVLINK_MSG_ID_PBIT_RESULT_LEN);
|
||||
#else
|
||||
mavlink_pbit_result_t packet;
|
||||
packet.time_boot_ms = time_boot_ms;
|
||||
packet.CPM1 = CPM1;
|
||||
packet.CPM2 = CPM2;
|
||||
packet.CPM3 = CPM3;
|
||||
packet.BIM1 = BIM1;
|
||||
packet.BIM2 = BIM2;
|
||||
mav_array_memcpy(packet.DSP, DSP, sizeof(uint32_t)*2);
|
||||
mav_array_memcpy(packet.CFL, CFL, sizeof(uint32_t)*2);
|
||||
mav_array_memcpy(packet.A659, A659, sizeof(uint32_t)*2);
|
||||
memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_PBIT_RESULT_LEN);
|
||||
#endif
|
||||
|
||||
msg->msgid = MAVLINK_MSG_ID_PBIT_RESULT;
|
||||
return mavlink_finalize_message(msg, system_id, component_id, MAVLINK_MSG_ID_PBIT_RESULT_MIN_LEN, MAVLINK_MSG_ID_PBIT_RESULT_LEN, MAVLINK_MSG_ID_PBIT_RESULT_CRC);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Pack a pbit_result message on a channel
|
||||
* @param system_id ID of this system
|
||||
* @param component_id ID of this component (e.g. 200 for IMU)
|
||||
* @param chan The MAVLink channel this message will be sent over
|
||||
* @param msg The MAVLink message to compress the data into
|
||||
* @param time_boot_ms Timestamp (milliseconds since system boot)
|
||||
* @param CPM1 CPM1
|
||||
* @param CPM2 CPM2
|
||||
* @param CPM3 CPM3
|
||||
* @param BIM1 BIM1
|
||||
* @param BIM2 BIM2
|
||||
* @param DSP DSP
|
||||
* @param CFL CFL
|
||||
* @param A659 A659
|
||||
* @return length of the message in bytes (excluding serial stream start sign)
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_pbit_result_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan,
|
||||
mavlink_message_t* msg,
|
||||
uint32_t time_boot_ms,uint32_t CPM1,uint32_t CPM2,uint32_t CPM3,uint32_t BIM1,uint32_t BIM2,const uint32_t *DSP,const uint32_t *CFL,const uint32_t *A659)
|
||||
{
|
||||
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
|
||||
char buf[MAVLINK_MSG_ID_PBIT_RESULT_LEN];
|
||||
_mav_put_uint32_t(buf, 0, time_boot_ms);
|
||||
_mav_put_uint32_t(buf, 4, CPM1);
|
||||
_mav_put_uint32_t(buf, 8, CPM2);
|
||||
_mav_put_uint32_t(buf, 12, CPM3);
|
||||
_mav_put_uint32_t(buf, 16, BIM1);
|
||||
_mav_put_uint32_t(buf, 20, BIM2);
|
||||
_mav_put_uint32_t_array(buf, 24, DSP, 2);
|
||||
_mav_put_uint32_t_array(buf, 32, CFL, 2);
|
||||
_mav_put_uint32_t_array(buf, 40, A659, 2);
|
||||
memcpy(_MAV_PAYLOAD_NON_CONST(msg), buf, MAVLINK_MSG_ID_PBIT_RESULT_LEN);
|
||||
#else
|
||||
mavlink_pbit_result_t packet;
|
||||
packet.time_boot_ms = time_boot_ms;
|
||||
packet.CPM1 = CPM1;
|
||||
packet.CPM2 = CPM2;
|
||||
packet.CPM3 = CPM3;
|
||||
packet.BIM1 = BIM1;
|
||||
packet.BIM2 = BIM2;
|
||||
mav_array_memcpy(packet.DSP, DSP, sizeof(uint32_t)*2);
|
||||
mav_array_memcpy(packet.CFL, CFL, sizeof(uint32_t)*2);
|
||||
mav_array_memcpy(packet.A659, A659, sizeof(uint32_t)*2);
|
||||
memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_PBIT_RESULT_LEN);
|
||||
#endif
|
||||
|
||||
msg->msgid = MAVLINK_MSG_ID_PBIT_RESULT;
|
||||
return mavlink_finalize_message_chan(msg, system_id, component_id, chan, MAVLINK_MSG_ID_PBIT_RESULT_MIN_LEN, MAVLINK_MSG_ID_PBIT_RESULT_LEN, MAVLINK_MSG_ID_PBIT_RESULT_CRC);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Encode a pbit_result struct
|
||||
*
|
||||
* @param system_id ID of this system
|
||||
* @param component_id ID of this component (e.g. 200 for IMU)
|
||||
* @param msg The MAVLink message to compress the data into
|
||||
* @param pbit_result C-struct to read the message contents from
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_pbit_result_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg, const mavlink_pbit_result_t* pbit_result)
|
||||
{
|
||||
return mavlink_msg_pbit_result_pack(system_id, component_id, msg, pbit_result->time_boot_ms, pbit_result->CPM1, pbit_result->CPM2, pbit_result->CPM3, pbit_result->BIM1, pbit_result->BIM2, pbit_result->DSP, pbit_result->CFL, pbit_result->A659);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Encode a pbit_result struct on a channel
|
||||
*
|
||||
* @param system_id ID of this system
|
||||
* @param component_id ID of this component (e.g. 200 for IMU)
|
||||
* @param chan The MAVLink channel this message will be sent over
|
||||
* @param msg The MAVLink message to compress the data into
|
||||
* @param pbit_result C-struct to read the message contents from
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_pbit_result_encode_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t* msg, const mavlink_pbit_result_t* pbit_result)
|
||||
{
|
||||
return mavlink_msg_pbit_result_pack_chan(system_id, component_id, chan, msg, pbit_result->time_boot_ms, pbit_result->CPM1, pbit_result->CPM2, pbit_result->CPM3, pbit_result->BIM1, pbit_result->BIM2, pbit_result->DSP, pbit_result->CFL, pbit_result->A659);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Send a pbit_result message
|
||||
* @param chan MAVLink channel to send the message
|
||||
*
|
||||
* @param time_boot_ms Timestamp (milliseconds since system boot)
|
||||
* @param CPM1 CPM1
|
||||
* @param CPM2 CPM2
|
||||
* @param CPM3 CPM3
|
||||
* @param BIM1 BIM1
|
||||
* @param BIM2 BIM2
|
||||
* @param DSP DSP
|
||||
* @param CFL CFL
|
||||
* @param A659 A659
|
||||
*/
|
||||
#ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS
|
||||
|
||||
static inline void mavlink_msg_pbit_result_send(mavlink_channel_t chan, uint32_t time_boot_ms, uint32_t CPM1, uint32_t CPM2, uint32_t CPM3, uint32_t BIM1, uint32_t BIM2, const uint32_t *DSP, const uint32_t *CFL, const uint32_t *A659)
|
||||
{
|
||||
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
|
||||
char buf[MAVLINK_MSG_ID_PBIT_RESULT_LEN];
|
||||
_mav_put_uint32_t(buf, 0, time_boot_ms);
|
||||
_mav_put_uint32_t(buf, 4, CPM1);
|
||||
_mav_put_uint32_t(buf, 8, CPM2);
|
||||
_mav_put_uint32_t(buf, 12, CPM3);
|
||||
_mav_put_uint32_t(buf, 16, BIM1);
|
||||
_mav_put_uint32_t(buf, 20, BIM2);
|
||||
_mav_put_uint32_t_array(buf, 24, DSP, 2);
|
||||
_mav_put_uint32_t_array(buf, 32, CFL, 2);
|
||||
_mav_put_uint32_t_array(buf, 40, A659, 2);
|
||||
_mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_PBIT_RESULT, buf, MAVLINK_MSG_ID_PBIT_RESULT_MIN_LEN, MAVLINK_MSG_ID_PBIT_RESULT_LEN, MAVLINK_MSG_ID_PBIT_RESULT_CRC);
|
||||
#else
|
||||
mavlink_pbit_result_t packet;
|
||||
packet.time_boot_ms = time_boot_ms;
|
||||
packet.CPM1 = CPM1;
|
||||
packet.CPM2 = CPM2;
|
||||
packet.CPM3 = CPM3;
|
||||
packet.BIM1 = BIM1;
|
||||
packet.BIM2 = BIM2;
|
||||
mav_array_memcpy(packet.DSP, DSP, sizeof(uint32_t)*2);
|
||||
mav_array_memcpy(packet.CFL, CFL, sizeof(uint32_t)*2);
|
||||
mav_array_memcpy(packet.A659, A659, sizeof(uint32_t)*2);
|
||||
_mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_PBIT_RESULT, (const char *)&packet, MAVLINK_MSG_ID_PBIT_RESULT_MIN_LEN, MAVLINK_MSG_ID_PBIT_RESULT_LEN, MAVLINK_MSG_ID_PBIT_RESULT_CRC);
|
||||
#endif
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Send a pbit_result message
|
||||
* @param chan MAVLink channel to send the message
|
||||
* @param struct The MAVLink struct to serialize
|
||||
*/
|
||||
static inline void mavlink_msg_pbit_result_send_struct(mavlink_channel_t chan, const mavlink_pbit_result_t* pbit_result)
|
||||
{
|
||||
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
|
||||
mavlink_msg_pbit_result_send(chan, pbit_result->time_boot_ms, pbit_result->CPM1, pbit_result->CPM2, pbit_result->CPM3, pbit_result->BIM1, pbit_result->BIM2, pbit_result->DSP, pbit_result->CFL, pbit_result->A659);
|
||||
#else
|
||||
_mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_PBIT_RESULT, (const char *)pbit_result, MAVLINK_MSG_ID_PBIT_RESULT_MIN_LEN, MAVLINK_MSG_ID_PBIT_RESULT_LEN, MAVLINK_MSG_ID_PBIT_RESULT_CRC);
|
||||
#endif
|
||||
}
|
||||
|
||||
#if MAVLINK_MSG_ID_PBIT_RESULT_LEN <= MAVLINK_MAX_PAYLOAD_LEN
|
||||
/*
|
||||
This varient of _send() can be used to save stack space by re-using
|
||||
memory from the receive buffer. The caller provides a
|
||||
mavlink_message_t which is the size of a full mavlink message. This
|
||||
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_pbit_result_send_buf(mavlink_message_t *msgbuf, mavlink_channel_t chan, uint32_t time_boot_ms, uint32_t CPM1, uint32_t CPM2, uint32_t CPM3, uint32_t BIM1, uint32_t BIM2, const uint32_t *DSP, const uint32_t *CFL, const uint32_t *A659)
|
||||
{
|
||||
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
|
||||
char *buf = (char *)msgbuf;
|
||||
_mav_put_uint32_t(buf, 0, time_boot_ms);
|
||||
_mav_put_uint32_t(buf, 4, CPM1);
|
||||
_mav_put_uint32_t(buf, 8, CPM2);
|
||||
_mav_put_uint32_t(buf, 12, CPM3);
|
||||
_mav_put_uint32_t(buf, 16, BIM1);
|
||||
_mav_put_uint32_t(buf, 20, BIM2);
|
||||
_mav_put_uint32_t_array(buf, 24, DSP, 2);
|
||||
_mav_put_uint32_t_array(buf, 32, CFL, 2);
|
||||
_mav_put_uint32_t_array(buf, 40, A659, 2);
|
||||
_mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_PBIT_RESULT, buf, MAVLINK_MSG_ID_PBIT_RESULT_MIN_LEN, MAVLINK_MSG_ID_PBIT_RESULT_LEN, MAVLINK_MSG_ID_PBIT_RESULT_CRC);
|
||||
#else
|
||||
mavlink_pbit_result_t *packet = (mavlink_pbit_result_t *)msgbuf;
|
||||
packet->time_boot_ms = time_boot_ms;
|
||||
packet->CPM1 = CPM1;
|
||||
packet->CPM2 = CPM2;
|
||||
packet->CPM3 = CPM3;
|
||||
packet->BIM1 = BIM1;
|
||||
packet->BIM2 = BIM2;
|
||||
mav_array_memcpy(packet->DSP, DSP, sizeof(uint32_t)*2);
|
||||
mav_array_memcpy(packet->CFL, CFL, sizeof(uint32_t)*2);
|
||||
mav_array_memcpy(packet->A659, A659, sizeof(uint32_t)*2);
|
||||
_mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_PBIT_RESULT, (const char *)packet, MAVLINK_MSG_ID_PBIT_RESULT_MIN_LEN, MAVLINK_MSG_ID_PBIT_RESULT_LEN, MAVLINK_MSG_ID_PBIT_RESULT_CRC);
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
// MESSAGE PBIT_RESULT UNPACKING
|
||||
|
||||
|
||||
/**
|
||||
* @brief Get field time_boot_ms from pbit_result message
|
||||
*
|
||||
* @return Timestamp (milliseconds since system boot)
|
||||
*/
|
||||
static inline uint32_t mavlink_msg_pbit_result_get_time_boot_ms(const mavlink_message_t* msg)
|
||||
{
|
||||
return _MAV_RETURN_uint32_t(msg, 0);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Get field CPM1 from pbit_result message
|
||||
*
|
||||
* @return CPM1
|
||||
*/
|
||||
static inline uint32_t mavlink_msg_pbit_result_get_CPM1(const mavlink_message_t* msg)
|
||||
{
|
||||
return _MAV_RETURN_uint32_t(msg, 4);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Get field CPM2 from pbit_result message
|
||||
*
|
||||
* @return CPM2
|
||||
*/
|
||||
static inline uint32_t mavlink_msg_pbit_result_get_CPM2(const mavlink_message_t* msg)
|
||||
{
|
||||
return _MAV_RETURN_uint32_t(msg, 8);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Get field CPM3 from pbit_result message
|
||||
*
|
||||
* @return CPM3
|
||||
*/
|
||||
static inline uint32_t mavlink_msg_pbit_result_get_CPM3(const mavlink_message_t* msg)
|
||||
{
|
||||
return _MAV_RETURN_uint32_t(msg, 12);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Get field BIM1 from pbit_result message
|
||||
*
|
||||
* @return BIM1
|
||||
*/
|
||||
static inline uint32_t mavlink_msg_pbit_result_get_BIM1(const mavlink_message_t* msg)
|
||||
{
|
||||
return _MAV_RETURN_uint32_t(msg, 16);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Get field BIM2 from pbit_result message
|
||||
*
|
||||
* @return BIM2
|
||||
*/
|
||||
static inline uint32_t mavlink_msg_pbit_result_get_BIM2(const mavlink_message_t* msg)
|
||||
{
|
||||
return _MAV_RETURN_uint32_t(msg, 20);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Get field DSP from pbit_result message
|
||||
*
|
||||
* @return DSP
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_pbit_result_get_DSP(const mavlink_message_t* msg, uint32_t *DSP)
|
||||
{
|
||||
return _MAV_RETURN_uint32_t_array(msg, DSP, 2, 24);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Get field CFL from pbit_result message
|
||||
*
|
||||
* @return CFL
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_pbit_result_get_CFL(const mavlink_message_t* msg, uint32_t *CFL)
|
||||
{
|
||||
return _MAV_RETURN_uint32_t_array(msg, CFL, 2, 32);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Get field A659 from pbit_result message
|
||||
*
|
||||
* @return A659
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_pbit_result_get_A659(const mavlink_message_t* msg, uint32_t *A659)
|
||||
{
|
||||
return _MAV_RETURN_uint32_t_array(msg, A659, 2, 40);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Decode a pbit_result message into a struct
|
||||
*
|
||||
* @param msg The message to decode
|
||||
* @param pbit_result C-struct to decode the message contents into
|
||||
*/
|
||||
static inline void mavlink_msg_pbit_result_decode(const mavlink_message_t* msg, mavlink_pbit_result_t* pbit_result)
|
||||
{
|
||||
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
|
||||
pbit_result->time_boot_ms = mavlink_msg_pbit_result_get_time_boot_ms(msg);
|
||||
pbit_result->CPM1 = mavlink_msg_pbit_result_get_CPM1(msg);
|
||||
pbit_result->CPM2 = mavlink_msg_pbit_result_get_CPM2(msg);
|
||||
pbit_result->CPM3 = mavlink_msg_pbit_result_get_CPM3(msg);
|
||||
pbit_result->BIM1 = mavlink_msg_pbit_result_get_BIM1(msg);
|
||||
pbit_result->BIM2 = mavlink_msg_pbit_result_get_BIM2(msg);
|
||||
mavlink_msg_pbit_result_get_DSP(msg, pbit_result->DSP);
|
||||
mavlink_msg_pbit_result_get_CFL(msg, pbit_result->CFL);
|
||||
mavlink_msg_pbit_result_get_A659(msg, pbit_result->A659);
|
||||
#else
|
||||
uint8_t len = msg->len < MAVLINK_MSG_ID_PBIT_RESULT_LEN? msg->len : MAVLINK_MSG_ID_PBIT_RESULT_LEN;
|
||||
memset(pbit_result, 0, MAVLINK_MSG_ID_PBIT_RESULT_LEN);
|
||||
memcpy(pbit_result, _MAV_PAYLOAD(msg), len);
|
||||
#endif
|
||||
}
|
||||
Reference in New Issue
Block a user