|
@@ -18,7 +18,8 @@ typedef struct __mavlink_vk_bms_status_t {
|
|
int8_t cap_percent; /*< [%] BMS remaining power in percentage*/
|
|
int8_t cap_percent; /*< [%] BMS remaining power in percentage*/
|
|
uint8_t bat_id; /*< BMS id, start from
|
|
uint8_t bat_id; /*< BMS id, start from
|
|
0*/
|
|
0*/
|
|
- uint8_t health; /*< battery healthiness in percentage*/
|
|
|
|
|
|
+ uint8_t health; /*< battery healthiness in
|
|
|
|
+ percentage*/
|
|
} mavlink_vk_bms_status_t;
|
|
} mavlink_vk_bms_status_t;
|
|
|
|
|
|
#define MAVLINK_MSG_ID_VK_BMS_STATUS_LEN 83
|
|
#define MAVLINK_MSG_ID_VK_BMS_STATUS_LEN 83
|
|
@@ -87,7 +88,8 @@ typedef struct __mavlink_vk_bms_status_t {
|
|
* @param cell_num BMS cell numbers
|
|
* @param cell_num BMS cell numbers
|
|
* @param cell_volt [mV] BMS cell voltage in mV
|
|
* @param cell_volt [mV] BMS cell voltage in mV
|
|
* @param cyc_cnt charge and discharge times
|
|
* @param cyc_cnt charge and discharge times
|
|
- * @param health battery healthiness in percentage
|
|
|
|
|
|
+ * @param health battery healthiness in
|
|
|
|
+ percentage
|
|
* @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_bms_status_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
|
|
static inline uint16_t mavlink_msg_vk_bms_status_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
|
|
@@ -147,7 +149,8 @@ static inline uint16_t mavlink_msg_vk_bms_status_pack(uint8_t system_id, uint8_t
|
|
* @param cell_num BMS cell numbers
|
|
* @param cell_num BMS cell numbers
|
|
* @param cell_volt [mV] BMS cell voltage in mV
|
|
* @param cell_volt [mV] BMS cell voltage in mV
|
|
* @param cyc_cnt charge and discharge times
|
|
* @param cyc_cnt charge and discharge times
|
|
- * @param health battery healthiness in percentage
|
|
|
|
|
|
+ * @param health battery healthiness in
|
|
|
|
+ percentage
|
|
* @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_bms_status_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_bms_status_pack_status(uint8_t system_id, uint8_t component_id, mavlink_status_t *_status, mavlink_message_t* msg,
|
|
@@ -210,7 +213,8 @@ static inline uint16_t mavlink_msg_vk_bms_status_pack_status(uint8_t system_id,
|
|
* @param cell_num BMS cell numbers
|
|
* @param cell_num BMS cell numbers
|
|
* @param cell_volt [mV] BMS cell voltage in mV
|
|
* @param cell_volt [mV] BMS cell voltage in mV
|
|
* @param cyc_cnt charge and discharge times
|
|
* @param cyc_cnt charge and discharge times
|
|
- * @param health battery healthiness in percentage
|
|
|
|
|
|
+ * @param health battery healthiness in
|
|
|
|
+ percentage
|
|
* @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_bms_status_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan,
|
|
static inline uint16_t mavlink_msg_vk_bms_status_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan,
|
|
@@ -309,7 +313,8 @@ static inline uint16_t mavlink_msg_vk_bms_status_encode_status(uint8_t system_id
|
|
* @param cell_num BMS cell numbers
|
|
* @param cell_num BMS cell numbers
|
|
* @param cell_volt [mV] BMS cell voltage in mV
|
|
* @param cell_volt [mV] BMS cell voltage in mV
|
|
* @param cyc_cnt charge and discharge times
|
|
* @param cyc_cnt charge and discharge times
|
|
- * @param health battery healthiness in percentage
|
|
|
|
|
|
+ * @param health battery healthiness in
|
|
|
|
+ percentage
|
|
*/
|
|
*/
|
|
#ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS
|
|
#ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS
|
|
|
|
|
|
@@ -513,7 +518,8 @@ static inline uint16_t mavlink_msg_vk_bms_status_get_cyc_cnt(const mavlink_messa
|
|
/**
|
|
/**
|
|
* @brief Get field health from vk_bms_status message
|
|
* @brief Get field health from vk_bms_status message
|
|
*
|
|
*
|
|
- * @return battery healthiness in percentage
|
|
|
|
|
|
+ * @return battery healthiness in
|
|
|
|
+ percentage
|
|
*/
|
|
*/
|
|
static inline uint8_t mavlink_msg_vk_bms_status_get_health(const mavlink_message_t* msg)
|
|
static inline uint8_t mavlink_msg_vk_bms_status_get_health(const mavlink_message_t* msg)
|
|
{
|
|
{
|