Go to the source code of this file.
|
| static void | mavlink_msg_small_mag_decode (const mavlink_message_t *msg, mavlink_small_mag_t *small_mag) |
| | Decode a small_mag message into a struct. More...
|
| |
| static uint16_t | mavlink_msg_small_mag_encode (uint8_t system_id, uint8_t component_id, mavlink_message_t *msg, const mavlink_small_mag_t *small_mag) |
| | Encode a small_mag struct. More...
|
| |
| static uint16_t | mavlink_msg_small_mag_encode_chan (uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t *msg, const mavlink_small_mag_t *small_mag) |
| | Encode a small_mag struct on a channel. More...
|
| |
| static float | mavlink_msg_small_mag_get_xmag (const mavlink_message_t *msg) |
| | Send a small_mag message. More...
|
| |
| static float | mavlink_msg_small_mag_get_ymag (const mavlink_message_t *msg) |
| | Get field ymag from small_mag message. More...
|
| |
| static float | mavlink_msg_small_mag_get_zmag (const mavlink_message_t *msg) |
| | Get field zmag from small_mag message. More...
|
| |
| static uint16_t | mavlink_msg_small_mag_pack (uint8_t system_id, uint8_t component_id, mavlink_message_t *msg, float xmag, float ymag, float zmag) |
| | Pack a small_mag message. More...
|
| |
| static uint16_t | mavlink_msg_small_mag_pack_chan (uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t *msg, float xmag, float ymag, float zmag) |
| | Pack a small_mag message on a channel. More...
|
| |
| #define MAVLINK_MESSAGE_INFO_SMALL_MAG |
| #define MAVLINK_MSG_ID_182_CRC 218 |
| #define MAVLINK_MSG_ID_182_LEN 12 |
| #define MAVLINK_MSG_ID_SMALL_MAG 182 |
| #define MAVLINK_MSG_ID_SMALL_MAG_CRC 218 |
| #define MAVLINK_MSG_ID_SMALL_MAG_LEN 12 |
| static void mavlink_msg_small_mag_decode |
( |
const mavlink_message_t * |
msg, |
|
|
mavlink_small_mag_t * |
small_mag |
|
) |
| |
|
inlinestatic |
Decode a small_mag message into a struct.
- Parameters
-
| msg | The message to decode |
| small_mag | C-struct to decode the message contents into |
Definition at line 248 of file mavlink_msg_small_mag.h.
| static uint16_t mavlink_msg_small_mag_encode |
( |
uint8_t |
system_id, |
|
|
uint8_t |
component_id, |
|
|
mavlink_message_t * |
msg, |
|
|
const mavlink_small_mag_t * |
small_mag |
|
) |
| |
|
inlinestatic |
Encode a small_mag 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 |
| small_mag | C-struct to read the message contents from |
Definition at line 115 of file mavlink_msg_small_mag.h.
| static uint16_t mavlink_msg_small_mag_encode_chan |
( |
uint8_t |
system_id, |
|
|
uint8_t |
component_id, |
|
|
uint8_t |
chan, |
|
|
mavlink_message_t * |
msg, |
|
|
const mavlink_small_mag_t * |
small_mag |
|
) |
| |
|
inlinestatic |
Encode a small_mag 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 |
| small_mag | C-struct to read the message contents from |
Definition at line 129 of file mavlink_msg_small_mag.h.
| static float mavlink_msg_small_mag_get_xmag |
( |
const mavlink_message_t * |
msg | ) |
|
|
inlinestatic |
Send a small_mag message.
- Parameters
-
| chan | MAVLink channel to send the message |
| xmag | Magnetic field along X axis |
| ymag | Magnetic field along Y axis |
| zmag | Magnetic field along Z axis Get field xmag from small_mag message |
- Returns
- Magnetic field along X axis
Definition at line 217 of file mavlink_msg_small_mag.h.
| static float mavlink_msg_small_mag_get_ymag |
( |
const mavlink_message_t * |
msg | ) |
|
|
inlinestatic |
| static float mavlink_msg_small_mag_get_zmag |
( |
const mavlink_message_t * |
msg | ) |
|
|
inlinestatic |
| static uint16_t mavlink_msg_small_mag_pack |
( |
uint8_t |
system_id, |
|
|
uint8_t |
component_id, |
|
|
mavlink_message_t * |
msg, |
|
|
float |
xmag, |
|
|
float |
ymag, |
|
|
float |
zmag |
|
) |
| |
|
inlinestatic |
Pack a small_mag 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 |
| xmag | Magnetic field along X axis |
| ymag | Magnetic field along Y axis |
| zmag | Magnetic field along Z axis |
- Returns
- length of the message in bytes (excluding serial stream start sign)
Definition at line 41 of file mavlink_msg_small_mag.h.
| static uint16_t mavlink_msg_small_mag_pack_chan |
( |
uint8_t |
system_id, |
|
|
uint8_t |
component_id, |
|
|
uint8_t |
chan, |
|
|
mavlink_message_t * |
msg, |
|
|
float |
xmag, |
|
|
float |
ymag, |
|
|
float |
zmag |
|
) |
| |
|
inlinestatic |
Pack a small_mag 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 |
| xmag | Magnetic field along X axis |
| ymag | Magnetic field along Y axis |
| zmag | Magnetic field along Z axis |
- Returns
- length of the message in bytes (excluding serial stream start sign)
Definition at line 79 of file mavlink_msg_small_mag.h.