Classes | Macros | Typedefs | Functions
mavlink_msg_attitude.h File Reference
This graph shows which files directly or indirectly include this file:

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...
 

Macro Definition Documentation

#define MAVLINK_MESSAGE_INFO_ATTITUDE
Value:
{ \
"ATTITUDE", \
7, \
{ { "time_boot_ms", NULL, MAVLINK_TYPE_UINT32_T, 0, 0, offsetof(mavlink_attitude_t, time_boot_ms) }, \
{ "roll", NULL, MAVLINK_TYPE_FLOAT, 0, 4, offsetof(mavlink_attitude_t, roll) }, \
{ "pitch", NULL, MAVLINK_TYPE_FLOAT, 0, 8, offsetof(mavlink_attitude_t, pitch) }, \
{ "yaw", NULL, MAVLINK_TYPE_FLOAT, 0, 12, offsetof(mavlink_attitude_t, yaw) }, \
{ "rollspeed", NULL, MAVLINK_TYPE_FLOAT, 0, 16, offsetof(mavlink_attitude_t, rollspeed) }, \
{ "pitchspeed", NULL, MAVLINK_TYPE_FLOAT, 0, 20, offsetof(mavlink_attitude_t, pitchspeed) }, \
{ "yawspeed", NULL, MAVLINK_TYPE_FLOAT, 0, 24, offsetof(mavlink_attitude_t, yawspeed) }, \
} \
}
#define NULL
Definition: usbd_def.h:50

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 Documentation

Function Documentation

static void mavlink_msg_attitude_decode ( const mavlink_message_t *  msg,
mavlink_attitude_t attitude 
)
inlinestatic

Decode a attitude message into a struct.

Parameters
msgThe message to decode
attitudeC-struct to decode the message contents into

Definition at line 340 of file mavlink_msg_attitude.h.

static uint16_t mavlink_msg_attitude_encode ( uint8_t  system_id,
uint8_t  component_id,
mavlink_message_t *  msg,
const mavlink_attitude_t attitude 
)
inlinestatic

Encode a attitude struct.

Parameters
system_idID of this system
component_idID of this component (e.g. 200 for IMU)
msgThe MAVLink message to compress the data into
attitudeC-struct to read the message contents from

Definition at line 147 of file mavlink_msg_attitude.h.

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 
)
inlinestatic

Encode a attitude struct on a channel.

Parameters
system_idID of this system
component_idID of this component (e.g. 200 for IMU)
chanThe MAVLink channel this message will be sent over
msgThe MAVLink message to compress the data into
attitudeC-struct to read the message contents from

Definition at line 161 of file mavlink_msg_attitude.h.

static float mavlink_msg_attitude_get_pitch ( const mavlink_message_t *  msg)
inlinestatic

Get field pitch from attitude message.

Returns
Pitch angle (rad, -pi..+pi)

Definition at line 289 of file mavlink_msg_attitude.h.

static float mavlink_msg_attitude_get_pitchspeed ( const mavlink_message_t *  msg)
inlinestatic

Get field pitchspeed from attitude message.

Returns
Pitch angular speed (rad/s)

Definition at line 319 of file mavlink_msg_attitude.h.

static float mavlink_msg_attitude_get_roll ( const mavlink_message_t *  msg)
inlinestatic

Get field roll from attitude message.

Returns
Roll angle (rad, -pi..+pi)

Definition at line 279 of file mavlink_msg_attitude.h.

static float mavlink_msg_attitude_get_rollspeed ( const mavlink_message_t *  msg)
inlinestatic

Get field rollspeed from attitude message.

Returns
Roll angular speed (rad/s)

Definition at line 309 of file mavlink_msg_attitude.h.

static uint32_t mavlink_msg_attitude_get_time_boot_ms ( const mavlink_message_t *  msg)
inlinestatic

Send a attitude message.

Parameters
chanMAVLink channel to send the message
time_boot_msTimestamp (milliseconds since system boot)
rollRoll angle (rad, -pi..+pi)
pitchPitch angle (rad, -pi..+pi)
yawYaw angle (rad, -pi..+pi)
rollspeedRoll angular speed (rad/s)
pitchspeedPitch angular speed (rad/s)
yawspeedYaw angular speed (rad/s) Get field time_boot_ms from attitude message
Returns
Timestamp (milliseconds since system boot)

Definition at line 269 of file mavlink_msg_attitude.h.

static float mavlink_msg_attitude_get_yaw ( const mavlink_message_t *  msg)
inlinestatic

Get field yaw from attitude message.

Returns
Yaw angle (rad, -pi..+pi)

Definition at line 299 of file mavlink_msg_attitude.h.

static float mavlink_msg_attitude_get_yawspeed ( const mavlink_message_t *  msg)
inlinestatic

Get field yawspeed from attitude message.

Returns
Yaw angular speed (rad/s)

Definition at line 329 of file mavlink_msg_attitude.h.

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 
)
inlinestatic

Pack a attitude message.

Parameters
system_idID of this system
component_idID of this component (e.g. 200 for IMU)
msgThe MAVLink message to compress the data into
time_boot_msTimestamp (milliseconds since system boot)
rollRoll angle (rad, -pi..+pi)
pitchPitch angle (rad, -pi..+pi)
yawYaw angle (rad, -pi..+pi)
rollspeedRoll angular speed (rad/s)
pitchspeedPitch angular speed (rad/s)
yawspeedYaw angular speed (rad/s)
Returns
length of the message in bytes (excluding serial stream start sign)

Definition at line 53 of file mavlink_msg_attitude.h.

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 
)
inlinestatic

Pack a attitude message on a channel.

Parameters
system_idID of this system
component_idID of this component (e.g. 200 for IMU)
chanThe MAVLink channel this message will be sent over
msgThe MAVLink message to compress the data into
time_boot_msTimestamp (milliseconds since system boot)
rollRoll angle (rad, -pi..+pi)
pitchPitch angle (rad, -pi..+pi)
yawYaw angle (rad, -pi..+pi)
rollspeedRoll angular speed (rad/s)
pitchspeedPitch angular speed (rad/s)
yawspeedYaw angular speed (rad/s)
Returns
length of the message in bytes (excluding serial stream start sign)

Definition at line 103 of file mavlink_msg_attitude.h.



rosflight_firmware
Author(s): Daniel Koch , James Jackson
autogenerated on Thu Apr 15 2021 05:07:50