|
@@ -11,7 +11,7 @@ typedef struct __mavlink_vkfmu_status_t {
|
|
|
uint16_t ups_volt; /*< ups voltage in 0.1V*/
|
|
|
uint16_t adc_volt; /*< adc voltage in 0.1V*/
|
|
|
uint8_t rtl_reason; /*< return to launch reason.*/
|
|
|
- uint8_t s_flag2; /*< fmu sflag2*/
|
|
|
+ uint8_t loiter_reason; /*< Loiter reason */
|
|
|
uint8_t s_flag3; /*< fmu sflag3*/
|
|
|
} mavlink_vkfmu_status_t;
|
|
|
|
|
@@ -20,8 +20,8 @@ typedef struct __mavlink_vkfmu_status_t {
|
|
|
#define MAVLINK_MSG_ID_53001_LEN 19
|
|
|
#define MAVLINK_MSG_ID_53001_MIN_LEN 19
|
|
|
|
|
|
-#define MAVLINK_MSG_ID_VKFMU_STATUS_CRC 223
|
|
|
-#define MAVLINK_MSG_ID_53001_CRC 223
|
|
|
+#define MAVLINK_MSG_ID_VKFMU_STATUS_CRC 149
|
|
|
+#define MAVLINK_MSG_ID_53001_CRC 149
|
|
|
|
|
|
|
|
|
|
|
@@ -32,7 +32,7 @@ typedef struct __mavlink_vkfmu_status_t {
|
|
|
8, \
|
|
|
{ { "time_boot_ms", NULL, MAVLINK_TYPE_UINT32_T, 0, 0, offsetof(mavlink_vkfmu_status_t, time_boot_ms) }, \
|
|
|
{ "rtl_reason", NULL, MAVLINK_TYPE_UINT8_T, 0, 16, offsetof(mavlink_vkfmu_status_t, rtl_reason) }, \
|
|
|
- { "s_flag2", NULL, MAVLINK_TYPE_UINT8_T, 0, 17, offsetof(mavlink_vkfmu_status_t, s_flag2) }, \
|
|
|
+ { "loiter_reason", NULL, MAVLINK_TYPE_UINT8_T, 0, 17, offsetof(mavlink_vkfmu_status_t, loiter_reason) }, \
|
|
|
{ "s_flag3", NULL, MAVLINK_TYPE_UINT8_T, 0, 18, offsetof(mavlink_vkfmu_status_t, s_flag3) }, \
|
|
|
{ "ups_volt", NULL, MAVLINK_TYPE_UINT16_T, 0, 12, offsetof(mavlink_vkfmu_status_t, ups_volt) }, \
|
|
|
{ "adc_volt", NULL, MAVLINK_TYPE_UINT16_T, 0, 14, offsetof(mavlink_vkfmu_status_t, adc_volt) }, \
|
|
@@ -46,7 +46,7 @@ typedef struct __mavlink_vkfmu_status_t {
|
|
|
8, \
|
|
|
{ { "time_boot_ms", NULL, MAVLINK_TYPE_UINT32_T, 0, 0, offsetof(mavlink_vkfmu_status_t, time_boot_ms) }, \
|
|
|
{ "rtl_reason", NULL, MAVLINK_TYPE_UINT8_T, 0, 16, offsetof(mavlink_vkfmu_status_t, rtl_reason) }, \
|
|
|
- { "s_flag2", NULL, MAVLINK_TYPE_UINT8_T, 0, 17, offsetof(mavlink_vkfmu_status_t, s_flag2) }, \
|
|
|
+ { "loiter_reason", NULL, MAVLINK_TYPE_UINT8_T, 0, 17, offsetof(mavlink_vkfmu_status_t, loiter_reason) }, \
|
|
|
{ "s_flag3", NULL, MAVLINK_TYPE_UINT8_T, 0, 18, offsetof(mavlink_vkfmu_status_t, s_flag3) }, \
|
|
|
{ "ups_volt", NULL, MAVLINK_TYPE_UINT16_T, 0, 12, offsetof(mavlink_vkfmu_status_t, ups_volt) }, \
|
|
|
{ "adc_volt", NULL, MAVLINK_TYPE_UINT16_T, 0, 14, offsetof(mavlink_vkfmu_status_t, adc_volt) }, \
|
|
@@ -64,7 +64,7 @@ typedef struct __mavlink_vkfmu_status_t {
|
|
|
*
|
|
|
* @param time_boot_ms [ms] Timestamp in ms from system boot.
|
|
|
* @param rtl_reason return to launch reason.
|
|
|
- * @param s_flag2 fmu sflag2
|
|
|
+ * @param loiter_reason Loiter reason
|
|
|
* @param s_flag3 fmu sflag3
|
|
|
* @param ups_volt ups voltage in 0.1V
|
|
|
* @param adc_volt adc voltage in 0.1V
|
|
@@ -73,7 +73,7 @@ typedef struct __mavlink_vkfmu_status_t {
|
|
|
* @return length of the message in bytes (excluding serial stream start sign)
|
|
|
*/
|
|
|
static inline uint16_t mavlink_msg_vkfmu_status_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
|
|
|
- uint32_t time_boot_ms, uint8_t rtl_reason, uint8_t s_flag2, uint8_t s_flag3, uint16_t ups_volt, uint16_t adc_volt, uint32_t flight_time, uint32_t dist_to_tar)
|
|
|
+ uint32_t time_boot_ms, uint8_t rtl_reason, uint8_t loiter_reason, uint8_t s_flag3, uint16_t ups_volt, uint16_t adc_volt, uint32_t flight_time, uint32_t dist_to_tar)
|
|
|
{
|
|
|
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
|
|
|
char buf[MAVLINK_MSG_ID_VKFMU_STATUS_LEN];
|
|
@@ -83,7 +83,7 @@ static inline uint16_t mavlink_msg_vkfmu_status_pack(uint8_t system_id, uint8_t
|
|
|
_mav_put_uint16_t(buf, 12, ups_volt);
|
|
|
_mav_put_uint16_t(buf, 14, adc_volt);
|
|
|
_mav_put_uint8_t(buf, 16, rtl_reason);
|
|
|
- _mav_put_uint8_t(buf, 17, s_flag2);
|
|
|
+ _mav_put_uint8_t(buf, 17, loiter_reason);
|
|
|
_mav_put_uint8_t(buf, 18, s_flag3);
|
|
|
|
|
|
memcpy(_MAV_PAYLOAD_NON_CONST(msg), buf, MAVLINK_MSG_ID_VKFMU_STATUS_LEN);
|
|
@@ -95,7 +95,7 @@ static inline uint16_t mavlink_msg_vkfmu_status_pack(uint8_t system_id, uint8_t
|
|
|
packet.ups_volt = ups_volt;
|
|
|
packet.adc_volt = adc_volt;
|
|
|
packet.rtl_reason = rtl_reason;
|
|
|
- packet.s_flag2 = s_flag2;
|
|
|
+ packet.loiter_reason = loiter_reason;
|
|
|
packet.s_flag3 = s_flag3;
|
|
|
|
|
|
memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_VKFMU_STATUS_LEN);
|
|
@@ -114,7 +114,7 @@ static inline uint16_t mavlink_msg_vkfmu_status_pack(uint8_t system_id, uint8_t
|
|
|
*
|
|
|
* @param time_boot_ms [ms] Timestamp in ms from system boot.
|
|
|
* @param rtl_reason return to launch reason.
|
|
|
- * @param s_flag2 fmu sflag2
|
|
|
+ * @param loiter_reason Loiter reason
|
|
|
* @param s_flag3 fmu sflag3
|
|
|
* @param ups_volt ups voltage in 0.1V
|
|
|
* @param adc_volt adc voltage in 0.1V
|
|
@@ -123,7 +123,7 @@ static inline uint16_t mavlink_msg_vkfmu_status_pack(uint8_t system_id, uint8_t
|
|
|
* @return length of the message in bytes (excluding serial stream start sign)
|
|
|
*/
|
|
|
static inline uint16_t mavlink_msg_vkfmu_status_pack_status(uint8_t system_id, uint8_t component_id, mavlink_status_t *_status, mavlink_message_t* msg,
|
|
|
- uint32_t time_boot_ms, uint8_t rtl_reason, uint8_t s_flag2, uint8_t s_flag3, uint16_t ups_volt, uint16_t adc_volt, uint32_t flight_time, uint32_t dist_to_tar)
|
|
|
+ uint32_t time_boot_ms, uint8_t rtl_reason, uint8_t loiter_reason, uint8_t s_flag3, uint16_t ups_volt, uint16_t adc_volt, uint32_t flight_time, uint32_t dist_to_tar)
|
|
|
{
|
|
|
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
|
|
|
char buf[MAVLINK_MSG_ID_VKFMU_STATUS_LEN];
|
|
@@ -133,7 +133,7 @@ static inline uint16_t mavlink_msg_vkfmu_status_pack_status(uint8_t system_id, u
|
|
|
_mav_put_uint16_t(buf, 12, ups_volt);
|
|
|
_mav_put_uint16_t(buf, 14, adc_volt);
|
|
|
_mav_put_uint8_t(buf, 16, rtl_reason);
|
|
|
- _mav_put_uint8_t(buf, 17, s_flag2);
|
|
|
+ _mav_put_uint8_t(buf, 17, loiter_reason);
|
|
|
_mav_put_uint8_t(buf, 18, s_flag3);
|
|
|
|
|
|
memcpy(_MAV_PAYLOAD_NON_CONST(msg), buf, MAVLINK_MSG_ID_VKFMU_STATUS_LEN);
|
|
@@ -145,7 +145,7 @@ static inline uint16_t mavlink_msg_vkfmu_status_pack_status(uint8_t system_id, u
|
|
|
packet.ups_volt = ups_volt;
|
|
|
packet.adc_volt = adc_volt;
|
|
|
packet.rtl_reason = rtl_reason;
|
|
|
- packet.s_flag2 = s_flag2;
|
|
|
+ packet.loiter_reason = loiter_reason;
|
|
|
packet.s_flag3 = s_flag3;
|
|
|
|
|
|
memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_VKFMU_STATUS_LEN);
|
|
@@ -167,7 +167,7 @@ static inline uint16_t mavlink_msg_vkfmu_status_pack_status(uint8_t system_id, u
|
|
|
* @param msg The MAVLink message to compress the data into
|
|
|
* @param time_boot_ms [ms] Timestamp in ms from system boot.
|
|
|
* @param rtl_reason return to launch reason.
|
|
|
- * @param s_flag2 fmu sflag2
|
|
|
+ * @param loiter_reason Loiter reason
|
|
|
* @param s_flag3 fmu sflag3
|
|
|
* @param ups_volt ups voltage in 0.1V
|
|
|
* @param adc_volt adc voltage in 0.1V
|
|
@@ -177,7 +177,7 @@ static inline uint16_t mavlink_msg_vkfmu_status_pack_status(uint8_t system_id, u
|
|
|
*/
|
|
|
static inline uint16_t mavlink_msg_vkfmu_status_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan,
|
|
|
mavlink_message_t* msg,
|
|
|
- uint32_t time_boot_ms,uint8_t rtl_reason,uint8_t s_flag2,uint8_t s_flag3,uint16_t ups_volt,uint16_t adc_volt,uint32_t flight_time,uint32_t dist_to_tar)
|
|
|
+ uint32_t time_boot_ms,uint8_t rtl_reason,uint8_t loiter_reason,uint8_t s_flag3,uint16_t ups_volt,uint16_t adc_volt,uint32_t flight_time,uint32_t dist_to_tar)
|
|
|
{
|
|
|
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
|
|
|
char buf[MAVLINK_MSG_ID_VKFMU_STATUS_LEN];
|
|
@@ -187,7 +187,7 @@ static inline uint16_t mavlink_msg_vkfmu_status_pack_chan(uint8_t system_id, uin
|
|
|
_mav_put_uint16_t(buf, 12, ups_volt);
|
|
|
_mav_put_uint16_t(buf, 14, adc_volt);
|
|
|
_mav_put_uint8_t(buf, 16, rtl_reason);
|
|
|
- _mav_put_uint8_t(buf, 17, s_flag2);
|
|
|
+ _mav_put_uint8_t(buf, 17, loiter_reason);
|
|
|
_mav_put_uint8_t(buf, 18, s_flag3);
|
|
|
|
|
|
memcpy(_MAV_PAYLOAD_NON_CONST(msg), buf, MAVLINK_MSG_ID_VKFMU_STATUS_LEN);
|
|
@@ -199,7 +199,7 @@ static inline uint16_t mavlink_msg_vkfmu_status_pack_chan(uint8_t system_id, uin
|
|
|
packet.ups_volt = ups_volt;
|
|
|
packet.adc_volt = adc_volt;
|
|
|
packet.rtl_reason = rtl_reason;
|
|
|
- packet.s_flag2 = s_flag2;
|
|
|
+ packet.loiter_reason = loiter_reason;
|
|
|
packet.s_flag3 = s_flag3;
|
|
|
|
|
|
memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_VKFMU_STATUS_LEN);
|
|
@@ -219,7 +219,7 @@ static inline uint16_t mavlink_msg_vkfmu_status_pack_chan(uint8_t system_id, uin
|
|
|
*/
|
|
|
static inline uint16_t mavlink_msg_vkfmu_status_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg, const mavlink_vkfmu_status_t* vkfmu_status)
|
|
|
{
|
|
|
- return mavlink_msg_vkfmu_status_pack(system_id, component_id, msg, vkfmu_status->time_boot_ms, vkfmu_status->rtl_reason, vkfmu_status->s_flag2, vkfmu_status->s_flag3, vkfmu_status->ups_volt, vkfmu_status->adc_volt, vkfmu_status->flight_time, vkfmu_status->dist_to_tar);
|
|
|
+ return mavlink_msg_vkfmu_status_pack(system_id, component_id, msg, vkfmu_status->time_boot_ms, vkfmu_status->rtl_reason, vkfmu_status->loiter_reason, vkfmu_status->s_flag3, vkfmu_status->ups_volt, vkfmu_status->adc_volt, vkfmu_status->flight_time, vkfmu_status->dist_to_tar);
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -233,7 +233,7 @@ static inline uint16_t mavlink_msg_vkfmu_status_encode(uint8_t system_id, uint8_
|
|
|
*/
|
|
|
static inline uint16_t mavlink_msg_vkfmu_status_encode_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t* msg, const mavlink_vkfmu_status_t* vkfmu_status)
|
|
|
{
|
|
|
- return mavlink_msg_vkfmu_status_pack_chan(system_id, component_id, chan, msg, vkfmu_status->time_boot_ms, vkfmu_status->rtl_reason, vkfmu_status->s_flag2, vkfmu_status->s_flag3, vkfmu_status->ups_volt, vkfmu_status->adc_volt, vkfmu_status->flight_time, vkfmu_status->dist_to_tar);
|
|
|
+ return mavlink_msg_vkfmu_status_pack_chan(system_id, component_id, chan, msg, vkfmu_status->time_boot_ms, vkfmu_status->rtl_reason, vkfmu_status->loiter_reason, vkfmu_status->s_flag3, vkfmu_status->ups_volt, vkfmu_status->adc_volt, vkfmu_status->flight_time, vkfmu_status->dist_to_tar);
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -247,7 +247,7 @@ static inline uint16_t mavlink_msg_vkfmu_status_encode_chan(uint8_t system_id, u
|
|
|
*/
|
|
|
static inline uint16_t mavlink_msg_vkfmu_status_encode_status(uint8_t system_id, uint8_t component_id, mavlink_status_t* _status, mavlink_message_t* msg, const mavlink_vkfmu_status_t* vkfmu_status)
|
|
|
{
|
|
|
- return mavlink_msg_vkfmu_status_pack_status(system_id, component_id, _status, msg, vkfmu_status->time_boot_ms, vkfmu_status->rtl_reason, vkfmu_status->s_flag2, vkfmu_status->s_flag3, vkfmu_status->ups_volt, vkfmu_status->adc_volt, vkfmu_status->flight_time, vkfmu_status->dist_to_tar);
|
|
|
+ return mavlink_msg_vkfmu_status_pack_status(system_id, component_id, _status, msg, vkfmu_status->time_boot_ms, vkfmu_status->rtl_reason, vkfmu_status->loiter_reason, vkfmu_status->s_flag3, vkfmu_status->ups_volt, vkfmu_status->adc_volt, vkfmu_status->flight_time, vkfmu_status->dist_to_tar);
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -256,7 +256,7 @@ static inline uint16_t mavlink_msg_vkfmu_status_encode_status(uint8_t system_id,
|
|
|
*
|
|
|
* @param time_boot_ms [ms] Timestamp in ms from system boot.
|
|
|
* @param rtl_reason return to launch reason.
|
|
|
- * @param s_flag2 fmu sflag2
|
|
|
+ * @param loiter_reason Loiter reason
|
|
|
* @param s_flag3 fmu sflag3
|
|
|
* @param ups_volt ups voltage in 0.1V
|
|
|
* @param adc_volt adc voltage in 0.1V
|
|
@@ -265,7 +265,7 @@ static inline uint16_t mavlink_msg_vkfmu_status_encode_status(uint8_t system_id,
|
|
|
*/
|
|
|
#ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS
|
|
|
|
|
|
-static inline void mavlink_msg_vkfmu_status_send(mavlink_channel_t chan, uint32_t time_boot_ms, uint8_t rtl_reason, uint8_t s_flag2, uint8_t s_flag3, uint16_t ups_volt, uint16_t adc_volt, uint32_t flight_time, uint32_t dist_to_tar)
|
|
|
+static inline void mavlink_msg_vkfmu_status_send(mavlink_channel_t chan, uint32_t time_boot_ms, uint8_t rtl_reason, uint8_t loiter_reason, uint8_t s_flag3, uint16_t ups_volt, uint16_t adc_volt, uint32_t flight_time, uint32_t dist_to_tar)
|
|
|
{
|
|
|
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
|
|
|
char buf[MAVLINK_MSG_ID_VKFMU_STATUS_LEN];
|
|
@@ -275,7 +275,7 @@ static inline void mavlink_msg_vkfmu_status_send(mavlink_channel_t chan, uint32_
|
|
|
_mav_put_uint16_t(buf, 12, ups_volt);
|
|
|
_mav_put_uint16_t(buf, 14, adc_volt);
|
|
|
_mav_put_uint8_t(buf, 16, rtl_reason);
|
|
|
- _mav_put_uint8_t(buf, 17, s_flag2);
|
|
|
+ _mav_put_uint8_t(buf, 17, loiter_reason);
|
|
|
_mav_put_uint8_t(buf, 18, s_flag3);
|
|
|
|
|
|
_mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_VKFMU_STATUS, buf, MAVLINK_MSG_ID_VKFMU_STATUS_MIN_LEN, MAVLINK_MSG_ID_VKFMU_STATUS_LEN, MAVLINK_MSG_ID_VKFMU_STATUS_CRC);
|
|
@@ -287,7 +287,7 @@ static inline void mavlink_msg_vkfmu_status_send(mavlink_channel_t chan, uint32_
|
|
|
packet.ups_volt = ups_volt;
|
|
|
packet.adc_volt = adc_volt;
|
|
|
packet.rtl_reason = rtl_reason;
|
|
|
- packet.s_flag2 = s_flag2;
|
|
|
+ packet.loiter_reason = loiter_reason;
|
|
|
packet.s_flag3 = s_flag3;
|
|
|
|
|
|
_mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_VKFMU_STATUS, (const char *)&packet, MAVLINK_MSG_ID_VKFMU_STATUS_MIN_LEN, MAVLINK_MSG_ID_VKFMU_STATUS_LEN, MAVLINK_MSG_ID_VKFMU_STATUS_CRC);
|
|
@@ -302,7 +302,7 @@ static inline void mavlink_msg_vkfmu_status_send(mavlink_channel_t chan, uint32_
|
|
|
static inline void mavlink_msg_vkfmu_status_send_struct(mavlink_channel_t chan, const mavlink_vkfmu_status_t* vkfmu_status)
|
|
|
{
|
|
|
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
|
|
|
- mavlink_msg_vkfmu_status_send(chan, vkfmu_status->time_boot_ms, vkfmu_status->rtl_reason, vkfmu_status->s_flag2, vkfmu_status->s_flag3, vkfmu_status->ups_volt, vkfmu_status->adc_volt, vkfmu_status->flight_time, vkfmu_status->dist_to_tar);
|
|
|
+ mavlink_msg_vkfmu_status_send(chan, vkfmu_status->time_boot_ms, vkfmu_status->rtl_reason, vkfmu_status->loiter_reason, vkfmu_status->s_flag3, vkfmu_status->ups_volt, vkfmu_status->adc_volt, vkfmu_status->flight_time, vkfmu_status->dist_to_tar);
|
|
|
#else
|
|
|
_mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_VKFMU_STATUS, (const char *)vkfmu_status, MAVLINK_MSG_ID_VKFMU_STATUS_MIN_LEN, MAVLINK_MSG_ID_VKFMU_STATUS_LEN, MAVLINK_MSG_ID_VKFMU_STATUS_CRC);
|
|
|
#endif
|
|
@@ -316,7 +316,7 @@ static inline void mavlink_msg_vkfmu_status_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_vkfmu_status_send_buf(mavlink_message_t *msgbuf, mavlink_channel_t chan, uint32_t time_boot_ms, uint8_t rtl_reason, uint8_t s_flag2, uint8_t s_flag3, uint16_t ups_volt, uint16_t adc_volt, uint32_t flight_time, uint32_t dist_to_tar)
|
|
|
+static inline void mavlink_msg_vkfmu_status_send_buf(mavlink_message_t *msgbuf, mavlink_channel_t chan, uint32_t time_boot_ms, uint8_t rtl_reason, uint8_t loiter_reason, uint8_t s_flag3, uint16_t ups_volt, uint16_t adc_volt, uint32_t flight_time, uint32_t dist_to_tar)
|
|
|
{
|
|
|
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
|
|
|
char *buf = (char *)msgbuf;
|
|
@@ -326,7 +326,7 @@ static inline void mavlink_msg_vkfmu_status_send_buf(mavlink_message_t *msgbuf,
|
|
|
_mav_put_uint16_t(buf, 12, ups_volt);
|
|
|
_mav_put_uint16_t(buf, 14, adc_volt);
|
|
|
_mav_put_uint8_t(buf, 16, rtl_reason);
|
|
|
- _mav_put_uint8_t(buf, 17, s_flag2);
|
|
|
+ _mav_put_uint8_t(buf, 17, loiter_reason);
|
|
|
_mav_put_uint8_t(buf, 18, s_flag3);
|
|
|
|
|
|
_mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_VKFMU_STATUS, buf, MAVLINK_MSG_ID_VKFMU_STATUS_MIN_LEN, MAVLINK_MSG_ID_VKFMU_STATUS_LEN, MAVLINK_MSG_ID_VKFMU_STATUS_CRC);
|
|
@@ -338,7 +338,7 @@ static inline void mavlink_msg_vkfmu_status_send_buf(mavlink_message_t *msgbuf,
|
|
|
packet->ups_volt = ups_volt;
|
|
|
packet->adc_volt = adc_volt;
|
|
|
packet->rtl_reason = rtl_reason;
|
|
|
- packet->s_flag2 = s_flag2;
|
|
|
+ packet->loiter_reason = loiter_reason;
|
|
|
packet->s_flag3 = s_flag3;
|
|
|
|
|
|
_mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_VKFMU_STATUS, (const char *)packet, MAVLINK_MSG_ID_VKFMU_STATUS_MIN_LEN, MAVLINK_MSG_ID_VKFMU_STATUS_LEN, MAVLINK_MSG_ID_VKFMU_STATUS_CRC);
|
|
@@ -372,11 +372,11 @@ static inline uint8_t mavlink_msg_vkfmu_status_get_rtl_reason(const mavlink_mess
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * @brief Get field s_flag2 from vkfmu_status message
|
|
|
+ * @brief Get field loiter_reason from vkfmu_status message
|
|
|
*
|
|
|
- * @return fmu sflag2
|
|
|
+ * @return Loiter reason
|
|
|
*/
|
|
|
-static inline uint8_t mavlink_msg_vkfmu_status_get_s_flag2(const mavlink_message_t* msg)
|
|
|
+static inline uint8_t mavlink_msg_vkfmu_status_get_loiter_reason(const mavlink_message_t* msg)
|
|
|
{
|
|
|
return _MAV_RETURN_uint8_t(msg, 17);
|
|
|
}
|
|
@@ -446,7 +446,7 @@ static inline void mavlink_msg_vkfmu_status_decode(const mavlink_message_t* msg,
|
|
|
vkfmu_status->ups_volt = mavlink_msg_vkfmu_status_get_ups_volt(msg);
|
|
|
vkfmu_status->adc_volt = mavlink_msg_vkfmu_status_get_adc_volt(msg);
|
|
|
vkfmu_status->rtl_reason = mavlink_msg_vkfmu_status_get_rtl_reason(msg);
|
|
|
- vkfmu_status->s_flag2 = mavlink_msg_vkfmu_status_get_s_flag2(msg);
|
|
|
+ vkfmu_status->loiter_reason = mavlink_msg_vkfmu_status_get_loiter_reason(msg);
|
|
|
vkfmu_status->s_flag3 = mavlink_msg_vkfmu_status_get_s_flag3(msg);
|
|
|
#else
|
|
|
uint8_t len = msg->len < MAVLINK_MSG_ID_VKFMU_STATUS_LEN? msg->len : MAVLINK_MSG_ID_VKFMU_STATUS_LEN;
|