Go to the source code of this file.
Classes | |
struct | __mavlink_attitude_t |
Macros | |
#define | MAVLINK_MESSAGE_INFO_ATTITUDE |
#define | MAVLINK_MSG_ID_30_CRC 39 |
#define | MAVLINK_MSG_ID_30_LEN 28 |
#define | MAVLINK_MSG_ID_ATTITUDE 30 |
#define | MAVLINK_MSG_ID_ATTITUDE_CRC 39 |
#define | MAVLINK_MSG_ID_ATTITUDE_LEN 28 |
Typedefs | |
typedef struct __mavlink_attitude_t | mavlink_attitude_t |
Functions | |
static void | mavlink_msg_attitude_decode (const mavlink_message_t *msg, mavlink_attitude_t *attitude) |
Decode a attitude message into a struct. More... | |
static uint16_t | mavlink_msg_attitude_encode (uint8_t system_id, uint8_t component_id, mavlink_message_t *msg, const mavlink_attitude_t *attitude) |
Encode a attitude struct. More... | |
static uint16_t | mavlink_msg_attitude_encode_chan (uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t *msg, const mavlink_attitude_t *attitude) |
Encode a attitude struct on a channel. More... | |
static float | mavlink_msg_attitude_get_pitch (const mavlink_message_t *msg) |
Get field pitch from attitude message. More... | |
static float | mavlink_msg_attitude_get_pitchspeed (const mavlink_message_t *msg) |
Get field pitchspeed from attitude message. More... | |
static float | mavlink_msg_attitude_get_roll (const mavlink_message_t *msg) |
Get field roll from attitude message. More... | |
static float | mavlink_msg_attitude_get_rollspeed (const mavlink_message_t *msg) |
Get field rollspeed from attitude message. More... | |
static uint32_t | mavlink_msg_attitude_get_time_boot_ms (const mavlink_message_t *msg) |
Send a attitude message. More... | |
static float | mavlink_msg_attitude_get_yaw (const mavlink_message_t *msg) |
Get field yaw from attitude message. More... | |
static float | mavlink_msg_attitude_get_yawspeed (const mavlink_message_t *msg) |
Get field yawspeed from attitude message. More... | |
static uint16_t | mavlink_msg_attitude_pack (uint8_t system_id, uint8_t component_id, mavlink_message_t *msg, uint32_t time_boot_ms, float roll, float pitch, float yaw, float rollspeed, float pitchspeed, float yawspeed) |
Pack a attitude message. More... | |
static uint16_t | mavlink_msg_attitude_pack_chan (uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t *msg, uint32_t time_boot_ms, float roll, float pitch, float yaw, float rollspeed, float pitchspeed, float yawspeed) |
Pack a attitude message on a channel. More... | |
#define MAVLINK_MESSAGE_INFO_ATTITUDE |
Definition at line 24 of file mavlink_msg_attitude.h.
#define MAVLINK_MSG_ID_30_CRC 39 |
Definition at line 20 of file mavlink_msg_attitude.h.
#define MAVLINK_MSG_ID_30_LEN 28 |
Definition at line 17 of file mavlink_msg_attitude.h.
#define MAVLINK_MSG_ID_ATTITUDE 30 |
Definition at line 3 of file mavlink_msg_attitude.h.
#define MAVLINK_MSG_ID_ATTITUDE_CRC 39 |
Definition at line 19 of file mavlink_msg_attitude.h.
#define MAVLINK_MSG_ID_ATTITUDE_LEN 28 |
Definition at line 16 of file mavlink_msg_attitude.h.
typedef struct __mavlink_attitude_t mavlink_attitude_t |
|
inlinestatic |
Decode a attitude message into a struct.
msg | The message to decode |
attitude | C-struct to decode the message contents into |
Definition at line 340 of file mavlink_msg_attitude.h.
|
inlinestatic |
Encode a attitude struct.
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 |
attitude | C-struct to read the message contents from |
Definition at line 147 of file mavlink_msg_attitude.h.
|
inlinestatic |
Encode a attitude struct on a channel.
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 |
attitude | C-struct to read the message contents from |
Definition at line 161 of file mavlink_msg_attitude.h.
|
inlinestatic |
Get field pitch from attitude message.
Definition at line 289 of file mavlink_msg_attitude.h.
|
inlinestatic |
Get field pitchspeed from attitude message.
Definition at line 319 of file mavlink_msg_attitude.h.
|
inlinestatic |
Get field roll from attitude message.
Definition at line 279 of file mavlink_msg_attitude.h.
|
inlinestatic |
Get field rollspeed from attitude message.
Definition at line 309 of file mavlink_msg_attitude.h.
|
inlinestatic |
Send a attitude message.
chan | MAVLink channel to send the message |
time_boot_ms | Timestamp (milliseconds since system boot) |
roll | Roll angle (rad, -pi..+pi) |
pitch | Pitch angle (rad, -pi..+pi) |
yaw | Yaw angle (rad, -pi..+pi) |
rollspeed | Roll angular speed (rad/s) |
pitchspeed | Pitch angular speed (rad/s) |
yawspeed | Yaw angular speed (rad/s) Get field time_boot_ms from attitude message |
Definition at line 269 of file mavlink_msg_attitude.h.
|
inlinestatic |
Get field yaw from attitude message.
Definition at line 299 of file mavlink_msg_attitude.h.
|
inlinestatic |
Get field yawspeed from attitude message.
Definition at line 329 of file mavlink_msg_attitude.h.
|
inlinestatic |
Pack a attitude message.
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 |
time_boot_ms | Timestamp (milliseconds since system boot) |
roll | Roll angle (rad, -pi..+pi) |
pitch | Pitch angle (rad, -pi..+pi) |
yaw | Yaw angle (rad, -pi..+pi) |
rollspeed | Roll angular speed (rad/s) |
pitchspeed | Pitch angular speed (rad/s) |
yawspeed | Yaw angular speed (rad/s) |
Definition at line 53 of file mavlink_msg_attitude.h.
|
inlinestatic |
Pack a attitude message on a channel.
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 |
time_boot_ms | Timestamp (milliseconds since system boot) |
roll | Roll angle (rad, -pi..+pi) |
pitch | Pitch angle (rad, -pi..+pi) |
yaw | Yaw angle (rad, -pi..+pi) |
rollspeed | Roll angular speed (rad/s) |
pitchspeed | Pitch angular speed (rad/s) |
yawspeed | Yaw angular speed (rad/s) |
Definition at line 103 of file mavlink_msg_attitude.h.