Classes | Macros | Typedefs | Functions
mavlink_msg_external_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_external_attitude_t
 

Macros

#define MAVLINK_MESSAGE_INFO_EXTERNAL_ATTITUDE
 
#define MAVLINK_MSG_ID_195_CRC   65
 
#define MAVLINK_MSG_ID_195_LEN   16
 
#define MAVLINK_MSG_ID_EXTERNAL_ATTITUDE   195
 
#define MAVLINK_MSG_ID_EXTERNAL_ATTITUDE_CRC   65
 
#define MAVLINK_MSG_ID_EXTERNAL_ATTITUDE_LEN   16
 

Typedefs

typedef struct __mavlink_external_attitude_t mavlink_external_attitude_t
 

Functions

static void mavlink_msg_external_attitude_decode (const mavlink_message_t *msg, mavlink_external_attitude_t *external_attitude)
 Decode a external_attitude message into a struct. More...
 
static uint16_t mavlink_msg_external_attitude_encode (uint8_t system_id, uint8_t component_id, mavlink_message_t *msg, const mavlink_external_attitude_t *external_attitude)
 Encode a external_attitude struct. More...
 
static uint16_t mavlink_msg_external_attitude_encode_chan (uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t *msg, const mavlink_external_attitude_t *external_attitude)
 Encode a external_attitude struct on a channel. More...
 
static float mavlink_msg_external_attitude_get_qw (const mavlink_message_t *msg)
 Send a external_attitude message. More...
 
static float mavlink_msg_external_attitude_get_qx (const mavlink_message_t *msg)
 Get field qx from external_attitude message. More...
 
static float mavlink_msg_external_attitude_get_qy (const mavlink_message_t *msg)
 Get field qy from external_attitude message. More...
 
static float mavlink_msg_external_attitude_get_qz (const mavlink_message_t *msg)
 Get field qz from external_attitude message. More...
 
static uint16_t mavlink_msg_external_attitude_pack (uint8_t system_id, uint8_t component_id, mavlink_message_t *msg, float qw, float qx, float qy, float qz)
 Pack a external_attitude message. More...
 
static uint16_t mavlink_msg_external_attitude_pack_chan (uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t *msg, float qw, float qx, float qy, float qz)
 Pack a external_attitude message on a channel. More...
 

Macro Definition Documentation

#define MAVLINK_MESSAGE_INFO_EXTERNAL_ATTITUDE
Value:
{ \
"EXTERNAL_ATTITUDE", \
4, \
{ { "qw", NULL, MAVLINK_TYPE_FLOAT, 0, 0, offsetof(mavlink_external_attitude_t, qw) }, \
{ "qx", NULL, MAVLINK_TYPE_FLOAT, 0, 4, offsetof(mavlink_external_attitude_t, qx) }, \
{ "qy", NULL, MAVLINK_TYPE_FLOAT, 0, 8, offsetof(mavlink_external_attitude_t, qy) }, \
{ "qz", NULL, MAVLINK_TYPE_FLOAT, 0, 12, offsetof(mavlink_external_attitude_t, qz) }, \
} \
}
#define NULL
Definition: usbd_def.h:50

Definition at line 21 of file mavlink_msg_external_attitude.h.

#define MAVLINK_MSG_ID_195_CRC   65

Definition at line 17 of file mavlink_msg_external_attitude.h.

#define MAVLINK_MSG_ID_195_LEN   16

Definition at line 14 of file mavlink_msg_external_attitude.h.

#define MAVLINK_MSG_ID_EXTERNAL_ATTITUDE   195

Definition at line 3 of file mavlink_msg_external_attitude.h.

#define MAVLINK_MSG_ID_EXTERNAL_ATTITUDE_CRC   65

Definition at line 16 of file mavlink_msg_external_attitude.h.

#define MAVLINK_MSG_ID_EXTERNAL_ATTITUDE_LEN   16

Definition at line 13 of file mavlink_msg_external_attitude.h.

Typedef Documentation

Function Documentation

static void mavlink_msg_external_attitude_decode ( const mavlink_message_t *  msg,
mavlink_external_attitude_t external_attitude 
)
inlinestatic

Decode a external_attitude message into a struct.

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

Definition at line 271 of file mavlink_msg_external_attitude.h.

static uint16_t mavlink_msg_external_attitude_encode ( uint8_t  system_id,
uint8_t  component_id,
mavlink_message_t *  msg,
const mavlink_external_attitude_t external_attitude 
)
inlinestatic

Encode a external_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
external_attitudeC-struct to read the message contents from

Definition at line 123 of file mavlink_msg_external_attitude.h.

static uint16_t mavlink_msg_external_attitude_encode_chan ( uint8_t  system_id,
uint8_t  component_id,
uint8_t  chan,
mavlink_message_t *  msg,
const mavlink_external_attitude_t external_attitude 
)
inlinestatic

Encode a external_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
external_attitudeC-struct to read the message contents from

Definition at line 137 of file mavlink_msg_external_attitude.h.

static float mavlink_msg_external_attitude_get_qw ( const mavlink_message_t *  msg)
inlinestatic

Send a external_attitude message.

Parameters
chanMAVLink channel to send the message
qwQuaternion scalar value
qxQuaternion x value
qyQuaternion y value
qzQuaternion z value Get field qw from external_attitude message
Returns
Quaternion scalar value

Definition at line 230 of file mavlink_msg_external_attitude.h.

static float mavlink_msg_external_attitude_get_qx ( const mavlink_message_t *  msg)
inlinestatic

Get field qx from external_attitude message.

Returns
Quaternion x value

Definition at line 240 of file mavlink_msg_external_attitude.h.

static float mavlink_msg_external_attitude_get_qy ( const mavlink_message_t *  msg)
inlinestatic

Get field qy from external_attitude message.

Returns
Quaternion y value

Definition at line 250 of file mavlink_msg_external_attitude.h.

static float mavlink_msg_external_attitude_get_qz ( const mavlink_message_t *  msg)
inlinestatic

Get field qz from external_attitude message.

Returns
Quaternion z value

Definition at line 260 of file mavlink_msg_external_attitude.h.

static uint16_t mavlink_msg_external_attitude_pack ( uint8_t  system_id,
uint8_t  component_id,
mavlink_message_t *  msg,
float  qw,
float  qx,
float  qy,
float  qz 
)
inlinestatic

Pack a external_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
qwQuaternion scalar value
qxQuaternion x value
qyQuaternion y value
qzQuaternion z value
Returns
length of the message in bytes (excluding serial stream start sign)

Definition at line 44 of file mavlink_msg_external_attitude.h.

static uint16_t mavlink_msg_external_attitude_pack_chan ( uint8_t  system_id,
uint8_t  component_id,
uint8_t  chan,
mavlink_message_t *  msg,
float  qw,
float  qx,
float  qy,
float  qz 
)
inlinestatic

Pack a external_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
qwQuaternion scalar value
qxQuaternion x value
qyQuaternion y value
qzQuaternion z value
Returns
length of the message in bytes (excluding serial stream start sign)

Definition at line 85 of file mavlink_msg_external_attitude.h.



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