|
@@ -11,8 +11,8 @@ typedef struct __mavlink_vk_weigher_state_t {
|
|
|
uint8_t work_state; /*< */
|
|
uint8_t work_state; /*< */
|
|
|
uint8_t err_code; /*< */
|
|
uint8_t err_code; /*< */
|
|
|
float attitude_Q[4]; /*< */
|
|
float attitude_Q[4]; /*< */
|
|
|
- float rope_length; /*< cm*/
|
|
|
|
|
- float rope_vel; /*< cm/s*/
|
|
|
|
|
|
|
+ float rope_length; /*< length in m, NAN means ignore*/
|
|
|
|
|
+ float rope_vel; /*< velocity in m/s, NAN means ignore*/
|
|
|
} mavlink_vk_weigher_state_t;
|
|
} mavlink_vk_weigher_state_t;
|
|
|
|
|
|
|
|
#define MAVLINK_MSG_ID_VK_WEIGHER_STATE_LEN 36
|
|
#define MAVLINK_MSG_ID_VK_WEIGHER_STATE_LEN 36
|
|
@@ -68,8 +68,8 @@ typedef struct __mavlink_vk_weigher_state_t {
|
|
|
* @param work_state
|
|
* @param work_state
|
|
|
* @param err_code
|
|
* @param err_code
|
|
|
* @param attitude_Q
|
|
* @param attitude_Q
|
|
|
- * @param rope_length cm
|
|
|
|
|
- * @param rope_vel cm/s
|
|
|
|
|
|
|
+ * @param rope_length length in m, NAN means ignore
|
|
|
|
|
+ * @param rope_vel velocity in m/s, NAN means ignore
|
|
|
* @return length of the message in bytes (excluding serial stream start sign)
|
|
* @return length of the message in bytes (excluding serial stream start sign)
|
|
|
*/
|
|
*/
|
|
|
static inline uint16_t mavlink_msg_vk_weigher_state_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
|
|
static inline uint16_t mavlink_msg_vk_weigher_state_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
|
|
@@ -116,8 +116,8 @@ static inline uint16_t mavlink_msg_vk_weigher_state_pack(uint8_t system_id, uint
|
|
|
* @param work_state
|
|
* @param work_state
|
|
|
* @param err_code
|
|
* @param err_code
|
|
|
* @param attitude_Q
|
|
* @param attitude_Q
|
|
|
- * @param rope_length cm
|
|
|
|
|
- * @param rope_vel cm/s
|
|
|
|
|
|
|
+ * @param rope_length length in m, NAN means ignore
|
|
|
|
|
+ * @param rope_vel velocity in m/s, NAN means ignore
|
|
|
* @return length of the message in bytes (excluding serial stream start sign)
|
|
* @return length of the message in bytes (excluding serial stream start sign)
|
|
|
*/
|
|
*/
|
|
|
static inline uint16_t mavlink_msg_vk_weigher_state_pack_status(uint8_t system_id, uint8_t component_id, mavlink_status_t *_status, mavlink_message_t* msg,
|
|
static inline uint16_t mavlink_msg_vk_weigher_state_pack_status(uint8_t system_id, uint8_t component_id, mavlink_status_t *_status, mavlink_message_t* msg,
|
|
@@ -167,8 +167,8 @@ static inline uint16_t mavlink_msg_vk_weigher_state_pack_status(uint8_t system_i
|
|
|
* @param work_state
|
|
* @param work_state
|
|
|
* @param err_code
|
|
* @param err_code
|
|
|
* @param attitude_Q
|
|
* @param attitude_Q
|
|
|
- * @param rope_length cm
|
|
|
|
|
- * @param rope_vel cm/s
|
|
|
|
|
|
|
+ * @param rope_length length in m, NAN means ignore
|
|
|
|
|
+ * @param rope_vel velocity in m/s, NAN means ignore
|
|
|
* @return length of the message in bytes (excluding serial stream start sign)
|
|
* @return length of the message in bytes (excluding serial stream start sign)
|
|
|
*/
|
|
*/
|
|
|
static inline uint16_t mavlink_msg_vk_weigher_state_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan,
|
|
static inline uint16_t mavlink_msg_vk_weigher_state_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan,
|
|
@@ -254,8 +254,8 @@ static inline uint16_t mavlink_msg_vk_weigher_state_encode_status(uint8_t system
|
|
|
* @param work_state
|
|
* @param work_state
|
|
|
* @param err_code
|
|
* @param err_code
|
|
|
* @param attitude_Q
|
|
* @param attitude_Q
|
|
|
- * @param rope_length cm
|
|
|
|
|
- * @param rope_vel cm/s
|
|
|
|
|
|
|
+ * @param rope_length length in m, NAN means ignore
|
|
|
|
|
+ * @param rope_vel velocity in m/s, NAN means ignore
|
|
|
*/
|
|
*/
|
|
|
#ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS
|
|
#ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS
|
|
|
|
|
|
|
@@ -404,7 +404,7 @@ static inline uint16_t mavlink_msg_vk_weigher_state_get_attitude_Q(const mavlink
|
|
|
/**
|
|
/**
|
|
|
* @brief Get field rope_length from vk_weigher_state message
|
|
* @brief Get field rope_length from vk_weigher_state message
|
|
|
*
|
|
*
|
|
|
- * @return cm
|
|
|
|
|
|
|
+ * @return length in m, NAN means ignore
|
|
|
*/
|
|
*/
|
|
|
static inline float mavlink_msg_vk_weigher_state_get_rope_length(const mavlink_message_t* msg)
|
|
static inline float mavlink_msg_vk_weigher_state_get_rope_length(const mavlink_message_t* msg)
|
|
|
{
|
|
{
|
|
@@ -414,7 +414,7 @@ static inline float mavlink_msg_vk_weigher_state_get_rope_length(const mavlink_m
|
|
|
/**
|
|
/**
|
|
|
* @brief Get field rope_vel from vk_weigher_state message
|
|
* @brief Get field rope_vel from vk_weigher_state message
|
|
|
*
|
|
*
|
|
|
- * @return cm/s
|
|
|
|
|
|
|
+ * @return velocity in m/s, NAN means ignore
|
|
|
*/
|
|
*/
|
|
|
static inline float mavlink_msg_vk_weigher_state_get_rope_vel(const mavlink_message_t* msg)
|
|
static inline float mavlink_msg_vk_weigher_state_get_rope_vel(const mavlink_message_t* msg)
|
|
|
{
|
|
{
|