Classes | Macros | Typedefs | Functions
mavlink_msg_rosflight_battery_status.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  __mavlink_rosflight_battery_status_t
 

Macros

#define MAVLINK_MESSAGE_INFO_ROSFLIGHT_BATTERY_STATUS
 
#define MAVLINK_MSG_ID_199_CRC   48
 
#define MAVLINK_MSG_ID_199_LEN   8
 
#define MAVLINK_MSG_ID_ROSFLIGHT_BATTERY_STATUS   199
 
#define MAVLINK_MSG_ID_ROSFLIGHT_BATTERY_STATUS_CRC   48
 
#define MAVLINK_MSG_ID_ROSFLIGHT_BATTERY_STATUS_LEN   8
 

Typedefs

typedef struct __mavlink_rosflight_battery_status_t mavlink_rosflight_battery_status_t
 

Functions

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. More...
 
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. More...
 
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. More...
 
static float mavlink_msg_rosflight_battery_status_get_battery_current (const mavlink_message_t *msg)
 Get field battery_current from rosflight_battery_status message. More...
 
static float mavlink_msg_rosflight_battery_status_get_battery_voltage (const mavlink_message_t *msg)
 Send a rosflight_battery_status message. More...
 
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. More...
 
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. More...
 

Macro Definition Documentation

#define MAVLINK_MESSAGE_INFO_ROSFLIGHT_BATTERY_STATUS
Value:
{ \
"ROSFLIGHT_BATTERY_STATUS", \
2, \
{ { "battery_voltage", NULL, MAVLINK_TYPE_FLOAT, 0, 0, offsetof(mavlink_rosflight_battery_status_t, battery_voltage) }, \
{ "battery_current", NULL, MAVLINK_TYPE_FLOAT, 0, 4, offsetof(mavlink_rosflight_battery_status_t, battery_current) }, \
} \
}
#define NULL
Definition: usbd_def.h:50

Definition at line 19 of file mavlink_msg_rosflight_battery_status.h.

#define MAVLINK_MSG_ID_199_CRC   48

Definition at line 15 of file mavlink_msg_rosflight_battery_status.h.

#define MAVLINK_MSG_ID_199_LEN   8

Definition at line 12 of file mavlink_msg_rosflight_battery_status.h.

#define MAVLINK_MSG_ID_ROSFLIGHT_BATTERY_STATUS   199

Definition at line 3 of file mavlink_msg_rosflight_battery_status.h.

#define MAVLINK_MSG_ID_ROSFLIGHT_BATTERY_STATUS_CRC   48

Definition at line 14 of file mavlink_msg_rosflight_battery_status.h.

#define MAVLINK_MSG_ID_ROSFLIGHT_BATTERY_STATUS_LEN   8

Definition at line 11 of file mavlink_msg_rosflight_battery_status.h.

Typedef Documentation

Function Documentation

static void mavlink_msg_rosflight_battery_status_decode ( const mavlink_message_t *  msg,
mavlink_rosflight_battery_status_t rosflight_battery_status 
)
inlinestatic

Decode a rosflight_battery_status message into a struct.

Parameters
msgThe message to decode
rosflight_battery_statusC-struct to decode the message contents into

Definition at line 225 of file mavlink_msg_rosflight_battery_status.h.

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 
)
inlinestatic

Encode a rosflight_battery_status struct.

Parameters
system_idID of this system
component_idID of this component (e.g. 200 for IMU)
msgThe MAVLink message to compress the data into
rosflight_battery_statusC-struct to read the message contents from

Definition at line 107 of file mavlink_msg_rosflight_battery_status.h.

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 
)
inlinestatic

Encode a rosflight_battery_status struct on a channel.

Parameters
system_idID of this system
component_idID of this component (e.g. 200 for IMU)
chanThe MAVLink channel this message will be sent over
msgThe MAVLink message to compress the data into
rosflight_battery_statusC-struct to read the message contents from

Definition at line 121 of file mavlink_msg_rosflight_battery_status.h.

static float mavlink_msg_rosflight_battery_status_get_battery_current ( const mavlink_message_t *  msg)
inlinestatic

Get field battery_current from rosflight_battery_status message.

Returns

Definition at line 214 of file mavlink_msg_rosflight_battery_status.h.

static float mavlink_msg_rosflight_battery_status_get_battery_voltage ( const mavlink_message_t *  msg)
inlinestatic

Send a rosflight_battery_status message.

Parameters
chanMAVLink channel to send the message
battery_voltage
battery_currentGet field battery_voltage from rosflight_battery_status message
Returns

Definition at line 204 of file mavlink_msg_rosflight_battery_status.h.

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 
)
inlinestatic

Pack a rosflight_battery_status message.

Parameters
system_idID of this system
component_idID of this component (e.g. 200 for IMU)
msgThe MAVLink message to compress the data into
battery_voltage
battery_current
Returns
length of the message in bytes (excluding serial stream start sign)

Definition at line 38 of file mavlink_msg_rosflight_battery_status.h.

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 
)
inlinestatic

Pack a rosflight_battery_status message on a channel.

Parameters
system_idID of this system
component_idID of this component (e.g. 200 for IMU)
chanThe MAVLink channel this message will be sent over
msgThe MAVLink message to compress the data into
battery_voltage
battery_current
Returns
length of the message in bytes (excluding serial stream start sign)

Definition at line 73 of file mavlink_msg_rosflight_battery_status.h.



rosflight_firmware
Author(s): Daniel Koch , James Jackson
autogenerated on Thu Apr 15 2021 05:07:51