3 #define MAVLINK_MSG_ID_ROSFLIGHT_BATTERY_STATUS 199 11 #define MAVLINK_MSG_ID_ROSFLIGHT_BATTERY_STATUS_LEN 8 12 #define MAVLINK_MSG_ID_199_LEN 8 14 #define MAVLINK_MSG_ID_ROSFLIGHT_BATTERY_STATUS_CRC 48 15 #define MAVLINK_MSG_ID_199_CRC 48 19 #define MAVLINK_MESSAGE_INFO_ROSFLIGHT_BATTERY_STATUS { \ 20 "ROSFLIGHT_BATTERY_STATUS", \ 22 { { "battery_voltage", NULL, MAVLINK_TYPE_FLOAT, 0, 0, offsetof(mavlink_rosflight_battery_status_t, battery_voltage) }, \ 23 { "battery_current", NULL, MAVLINK_TYPE_FLOAT, 0, 4, offsetof(mavlink_rosflight_battery_status_t, battery_current) }, \ 41 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS 74 mavlink_message_t* msg,
77 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS 133 #ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS 137 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS 142 #if MAVLINK_CRC_EXTRA 152 #if MAVLINK_CRC_EXTRA 160 #if MAVLINK_MSG_ID_ROSFLIGHT_BATTERY_STATUS_LEN <= MAVLINK_MAX_PAYLOAD_LEN 170 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS 171 char *buf = (
char *)msgbuf;
175 #if MAVLINK_CRC_EXTRA 185 #if MAVLINK_CRC_EXTRA 206 return _MAV_RETURN_float(msg, 0);
216 return _MAV_RETURN_float(msg, 4);
227 #if MAVLINK_NEED_BYTE_SWAP #define _mav_put_float(buf, wire_offset, b)
static float mavlink_msg_rosflight_battery_status_get_battery_voltage(const mavlink_message_t *msg)
Send a rosflight_battery_status message.
static uint16_t mavlink_msg_rosflight_battery_status_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t *msg, float battery_voltage, float battery_current)
Pack a rosflight_battery_status message on a channel.
MAVLINK_HELPER uint16_t mavlink_finalize_message(mavlink_message_t *msg, uint8_t system_id, uint8_t component_id, uint8_t length)
Finalize a MAVLink message with MAVLINK_COMM_0 as default channel.
static float mavlink_msg_rosflight_battery_status_get_battery_current(const mavlink_message_t *msg)
Get field battery_current from rosflight_battery_status message.
#define MAVLINK_MSG_ID_ROSFLIGHT_BATTERY_STATUS_LEN
#define _MAV_PAYLOAD_NON_CONST(msg)
static void mavlink_msg_rosflight_battery_status_decode(const mavlink_message_t *msg, mavlink_rosflight_battery_status_t *rosflight_battery_status)
Decode a rosflight_battery_status message into a struct.
static uint16_t mavlink_msg_rosflight_battery_status_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t *msg, float battery_voltage, float battery_current)
Pack a rosflight_battery_status message.
#define _MAV_PAYLOAD(msg)
struct __mavlink_rosflight_battery_status_t mavlink_rosflight_battery_status_t
#define MAVLINK_MSG_ID_ROSFLIGHT_BATTERY_STATUS_CRC
#define MAVLINK_MSG_ID_ROSFLIGHT_BATTERY_STATUS
static uint16_t mavlink_msg_rosflight_battery_status_encode_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t *msg, const mavlink_rosflight_battery_status_t *rosflight_battery_status)
Encode a rosflight_battery_status struct on a channel.
MAVLINK_HELPER uint16_t mavlink_finalize_message_chan(mavlink_message_t *msg, uint8_t system_id, uint8_t component_id, uint8_t chan, uint8_t length)
Finalize a MAVLink message with channel assignment.
static uint16_t mavlink_msg_rosflight_battery_status_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t *msg, const mavlink_rosflight_battery_status_t *rosflight_battery_status)
Encode a rosflight_battery_status struct.