Go to the source code of this file.
|
static void | mavlink_msg_statustext_decode (const mavlink_message_t *msg, mavlink_statustext_t *statustext) |
| Decode a statustext message into a struct. More...
|
|
static uint16_t | mavlink_msg_statustext_encode (uint8_t system_id, uint8_t component_id, mavlink_message_t *msg, const mavlink_statustext_t *statustext) |
| Encode a statustext struct. More...
|
|
static uint16_t | mavlink_msg_statustext_encode_chan (uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t *msg, const mavlink_statustext_t *statustext) |
| Encode a statustext struct on a channel. More...
|
|
static uint8_t | mavlink_msg_statustext_get_severity (const mavlink_message_t *msg) |
| Send a statustext message. More...
|
|
static uint16_t | mavlink_msg_statustext_get_text (const mavlink_message_t *msg, char *text) |
| Get field text from statustext message. More...
|
|
static uint16_t | mavlink_msg_statustext_pack (uint8_t system_id, uint8_t component_id, mavlink_message_t *msg, uint8_t severity, const char *text) |
| Pack a statustext message. More...
|
|
static uint16_t | mavlink_msg_statustext_pack_chan (uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t *msg, uint8_t severity, const char *text) |
| Pack a statustext message on a channel. More...
|
|
#define MAVLINK_MESSAGE_INFO_STATUSTEXT |
#define MAVLINK_MSG_ID_253_CRC 83 |
#define MAVLINK_MSG_ID_253_LEN 51 |
#define MAVLINK_MSG_ID_STATUSTEXT 253 |
#define MAVLINK_MSG_ID_STATUSTEXT_CRC 83 |
#define MAVLINK_MSG_ID_STATUSTEXT_LEN 51 |
#define MAVLINK_MSG_STATUSTEXT_FIELD_TEXT_LEN 50 |
static void mavlink_msg_statustext_decode |
( |
const mavlink_message_t * |
msg, |
|
|
mavlink_statustext_t * |
statustext |
|
) |
| |
|
inlinestatic |
Decode a statustext message into a struct.
- Parameters
-
msg | The message to decode |
statustext | C-struct to decode the message contents into |
Definition at line 217 of file mavlink_msg_statustext.h.
static uint16_t mavlink_msg_statustext_encode |
( |
uint8_t |
system_id, |
|
|
uint8_t |
component_id, |
|
|
mavlink_message_t * |
msg, |
|
|
const mavlink_statustext_t * |
statustext |
|
) |
| |
|
inlinestatic |
Encode a statustext 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 |
statustext | C-struct to read the message contents from |
Definition at line 103 of file mavlink_msg_statustext.h.
static uint16_t mavlink_msg_statustext_encode_chan |
( |
uint8_t |
system_id, |
|
|
uint8_t |
component_id, |
|
|
uint8_t |
chan, |
|
|
mavlink_message_t * |
msg, |
|
|
const mavlink_statustext_t * |
statustext |
|
) |
| |
|
inlinestatic |
Encode a statustext 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 |
statustext | C-struct to read the message contents from |
Definition at line 117 of file mavlink_msg_statustext.h.
static uint8_t mavlink_msg_statustext_get_severity |
( |
const mavlink_message_t * |
msg | ) |
|
|
inlinestatic |
Send a statustext message.
- Parameters
-
chan | MAVLink channel to send the message |
severity | Severity of status. Relies on the definitions within RFC-5424. See enum MAV_SEVERITY. |
text | Status text message, without null termination character Get field severity from statustext message |
- Returns
- Severity of status. Relies on the definitions within RFC-5424. See enum MAV_SEVERITY.
Definition at line 196 of file mavlink_msg_statustext.h.
static uint16_t mavlink_msg_statustext_get_text |
( |
const mavlink_message_t * |
msg, |
|
|
char * |
text |
|
) |
| |
|
inlinestatic |
Get field text from statustext message.
- Returns
- Status text message, without null termination character
Definition at line 206 of file mavlink_msg_statustext.h.
static uint16_t mavlink_msg_statustext_pack |
( |
uint8_t |
system_id, |
|
|
uint8_t |
component_id, |
|
|
mavlink_message_t * |
msg, |
|
|
uint8_t |
severity, |
|
|
const char * |
text |
|
) |
| |
|
inlinestatic |
Pack a statustext 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 |
severity | Severity of status. Relies on the definitions within RFC-5424. See enum MAV_SEVERITY. |
text | Status text message, without null termination character |
- Returns
- length of the message in bytes (excluding serial stream start sign)
Definition at line 38 of file mavlink_msg_statustext.h.
static uint16_t mavlink_msg_statustext_pack_chan |
( |
uint8_t |
system_id, |
|
|
uint8_t |
component_id, |
|
|
uint8_t |
chan, |
|
|
mavlink_message_t * |
msg, |
|
|
uint8_t |
severity, |
|
|
const char * |
text |
|
) |
| |
|
inlinestatic |
Pack a statustext 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 |
severity | Severity of status. Relies on the definitions within RFC-5424. See enum MAV_SEVERITY. |
text | Status text message, without null termination character |
- Returns
- length of the message in bytes (excluding serial stream start sign)
Definition at line 71 of file mavlink_msg_statustext.h.