Go to the source code of this file.
|
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...
|
|
#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 |
Decode a rosflight_battery_status message into a struct.
- Parameters
-
msg | The message to decode |
rosflight_battery_status | C-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_id | ID of this system |
component_id | ID of this component (e.g. 200 for IMU) |
msg | The MAVLink message to compress the data into |
rosflight_battery_status | C-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_id | ID of this system |
component_id | ID of this component (e.g. 200 for IMU) |
chan | The MAVLink channel this message will be sent over |
msg | The MAVLink message to compress the data into |
rosflight_battery_status | C-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 |
static float mavlink_msg_rosflight_battery_status_get_battery_voltage |
( |
const mavlink_message_t * |
msg | ) |
|
|
inlinestatic |
Send a rosflight_battery_status message.
- Parameters
-
chan | MAVLink channel to send the message |
battery_voltage | |
battery_current | Get 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_id | ID of this system |
component_id | ID of this component (e.g. 200 for IMU) |
msg | The 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_id | ID of this system |
component_id | ID of this component (e.g. 200 for IMU) |
chan | The MAVLink channel this message will be sent over |
msg | The 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.