Go to the source code of this file.
|
static void | mavlink_msg_data_stream_decode (const mavlink_message_t *msg, mavlink_data_stream_t *data_stream) |
| Decode a data_stream message into a struct. More...
|
|
static uint16_t | mavlink_msg_data_stream_encode (uint8_t system_id, uint8_t component_id, mavlink_message_t *msg, const mavlink_data_stream_t *data_stream) |
| Encode a data_stream struct. More...
|
|
static uint16_t | mavlink_msg_data_stream_encode_chan (uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t *msg, const mavlink_data_stream_t *data_stream) |
| Encode a data_stream struct on a channel. More...
|
|
static uint16_t | mavlink_msg_data_stream_get_message_rate (const mavlink_message_t *msg) |
| Get field message_rate from data_stream message. More...
|
|
static uint8_t | mavlink_msg_data_stream_get_on_off (const mavlink_message_t *msg) |
| Get field on_off from data_stream message. More...
|
|
static uint8_t | mavlink_msg_data_stream_get_stream_id (const mavlink_message_t *msg) |
| Send a data_stream message. More...
|
|
static uint16_t | mavlink_msg_data_stream_pack (uint8_t system_id, uint8_t component_id, mavlink_message_t *msg, uint8_t stream_id, uint16_t message_rate, uint8_t on_off) |
| Pack a data_stream message. More...
|
|
static uint16_t | mavlink_msg_data_stream_pack_chan (uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t *msg, uint8_t stream_id, uint16_t message_rate, uint8_t on_off) |
| Pack a data_stream message on a channel. More...
|
|
#define MAVLINK_MESSAGE_INFO_DATA_STREAM |
#define MAVLINK_MSG_ID_67_CRC 21 |
#define MAVLINK_MSG_ID_67_LEN 4 |
#define MAVLINK_MSG_ID_DATA_STREAM 67 |
#define MAVLINK_MSG_ID_DATA_STREAM_CRC 21 |
#define MAVLINK_MSG_ID_DATA_STREAM_LEN 4 |
static void mavlink_msg_data_stream_decode |
( |
const mavlink_message_t * |
msg, |
|
|
mavlink_data_stream_t * |
data_stream |
|
) |
| |
|
inlinestatic |
Decode a data_stream message into a struct.
- Parameters
-
msg | The message to decode |
data_stream | C-struct to decode the message contents into |
Definition at line 248 of file mavlink_msg_data_stream.h.
static uint16_t mavlink_msg_data_stream_encode |
( |
uint8_t |
system_id, |
|
|
uint8_t |
component_id, |
|
|
mavlink_message_t * |
msg, |
|
|
const mavlink_data_stream_t * |
data_stream |
|
) |
| |
|
inlinestatic |
Encode a data_stream 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 |
data_stream | C-struct to read the message contents from |
Definition at line 115 of file mavlink_msg_data_stream.h.
static uint16_t mavlink_msg_data_stream_encode_chan |
( |
uint8_t |
system_id, |
|
|
uint8_t |
component_id, |
|
|
uint8_t |
chan, |
|
|
mavlink_message_t * |
msg, |
|
|
const mavlink_data_stream_t * |
data_stream |
|
) |
| |
|
inlinestatic |
Encode a data_stream 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 |
data_stream | C-struct to read the message contents from |
Definition at line 129 of file mavlink_msg_data_stream.h.
static uint16_t mavlink_msg_data_stream_get_message_rate |
( |
const mavlink_message_t * |
msg | ) |
|
|
inlinestatic |
static uint8_t mavlink_msg_data_stream_get_on_off |
( |
const mavlink_message_t * |
msg | ) |
|
|
inlinestatic |
Get field on_off from data_stream message.
- Returns
- 1 stream is enabled, 0 stream is stopped.
Definition at line 237 of file mavlink_msg_data_stream.h.
static uint8_t mavlink_msg_data_stream_get_stream_id |
( |
const mavlink_message_t * |
msg | ) |
|
|
inlinestatic |
Send a data_stream message.
- Parameters
-
chan | MAVLink channel to send the message |
stream_id | The ID of the requested data stream |
message_rate | The message rate |
on_off | 1 stream is enabled, 0 stream is stopped. Get field stream_id from data_stream message |
- Returns
- The ID of the requested data stream
Definition at line 217 of file mavlink_msg_data_stream.h.
static uint16_t mavlink_msg_data_stream_pack |
( |
uint8_t |
system_id, |
|
|
uint8_t |
component_id, |
|
|
mavlink_message_t * |
msg, |
|
|
uint8_t |
stream_id, |
|
|
uint16_t |
message_rate, |
|
|
uint8_t |
on_off |
|
) |
| |
|
inlinestatic |
Pack a data_stream 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 |
stream_id | The ID of the requested data stream |
message_rate | The message rate |
on_off | 1 stream is enabled, 0 stream is stopped. |
- Returns
- length of the message in bytes (excluding serial stream start sign)
Definition at line 41 of file mavlink_msg_data_stream.h.
static uint16_t mavlink_msg_data_stream_pack_chan |
( |
uint8_t |
system_id, |
|
|
uint8_t |
component_id, |
|
|
uint8_t |
chan, |
|
|
mavlink_message_t * |
msg, |
|
|
uint8_t |
stream_id, |
|
|
uint16_t |
message_rate, |
|
|
uint8_t |
on_off |
|
) |
| |
|
inlinestatic |
Pack a data_stream 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 |
stream_id | The ID of the requested data stream |
message_rate | The message rate |
on_off | 1 stream is enabled, 0 stream is stopped. |
- Returns
- length of the message in bytes (excluding serial stream start sign)
Definition at line 79 of file mavlink_msg_data_stream.h.