Classes | Macros | Typedefs | Functions
mavlink_msg_control_system_state.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_control_system_state_t
 

Macros

#define MAVLINK_MESSAGE_INFO_CONTROL_SYSTEM_STATE
 
#define MAVLINK_MSG_CONTROL_SYSTEM_STATE_FIELD_POS_VARIANCE_LEN   3
 
#define MAVLINK_MSG_CONTROL_SYSTEM_STATE_FIELD_Q_LEN   4
 
#define MAVLINK_MSG_CONTROL_SYSTEM_STATE_FIELD_VEL_VARIANCE_LEN   3
 
#define MAVLINK_MSG_ID_146_CRC   103
 
#define MAVLINK_MSG_ID_146_LEN   100
 
#define MAVLINK_MSG_ID_CONTROL_SYSTEM_STATE   146
 
#define MAVLINK_MSG_ID_CONTROL_SYSTEM_STATE_CRC   103
 
#define MAVLINK_MSG_ID_CONTROL_SYSTEM_STATE_LEN   100
 

Typedefs

typedef struct __mavlink_control_system_state_t mavlink_control_system_state_t
 

Functions

static void mavlink_msg_control_system_state_decode (const mavlink_message_t *msg, mavlink_control_system_state_t *control_system_state)
 Decode a control_system_state message into a struct. More...
 
static uint16_t mavlink_msg_control_system_state_encode (uint8_t system_id, uint8_t component_id, mavlink_message_t *msg, const mavlink_control_system_state_t *control_system_state)
 Encode a control_system_state struct. More...
 
static uint16_t mavlink_msg_control_system_state_encode_chan (uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t *msg, const mavlink_control_system_state_t *control_system_state)
 Encode a control_system_state struct on a channel. More...
 
static float mavlink_msg_control_system_state_get_airspeed (const mavlink_message_t *msg)
 Get field airspeed from control_system_state message. More...
 
static float mavlink_msg_control_system_state_get_pitch_rate (const mavlink_message_t *msg)
 Get field pitch_rate from control_system_state message. More...
 
static uint16_t mavlink_msg_control_system_state_get_pos_variance (const mavlink_message_t *msg, float *pos_variance)
 Get field pos_variance from control_system_state message. More...
 
static uint16_t mavlink_msg_control_system_state_get_q (const mavlink_message_t *msg, float *q)
 Get field q from control_system_state message. More...
 
static float mavlink_msg_control_system_state_get_roll_rate (const mavlink_message_t *msg)
 Get field roll_rate from control_system_state message. More...
 
static uint64_t mavlink_msg_control_system_state_get_time_usec (const mavlink_message_t *msg)
 Send a control_system_state message. More...
 
static uint16_t mavlink_msg_control_system_state_get_vel_variance (const mavlink_message_t *msg, float *vel_variance)
 Get field vel_variance from control_system_state message. More...
 
static float mavlink_msg_control_system_state_get_x_acc (const mavlink_message_t *msg)
 Get field x_acc from control_system_state message. More...
 
static float mavlink_msg_control_system_state_get_x_pos (const mavlink_message_t *msg)
 Get field x_pos from control_system_state message. More...
 
static float mavlink_msg_control_system_state_get_x_vel (const mavlink_message_t *msg)
 Get field x_vel from control_system_state message. More...
 
static float mavlink_msg_control_system_state_get_y_acc (const mavlink_message_t *msg)
 Get field y_acc from control_system_state message. More...
 
static float mavlink_msg_control_system_state_get_y_pos (const mavlink_message_t *msg)
 Get field y_pos from control_system_state message. More...
 
static float mavlink_msg_control_system_state_get_y_vel (const mavlink_message_t *msg)
 Get field y_vel from control_system_state message. More...
 
static float mavlink_msg_control_system_state_get_yaw_rate (const mavlink_message_t *msg)
 Get field yaw_rate from control_system_state message. More...
 
static float mavlink_msg_control_system_state_get_z_acc (const mavlink_message_t *msg)
 Get field z_acc from control_system_state message. More...
 
static float mavlink_msg_control_system_state_get_z_pos (const mavlink_message_t *msg)
 Get field z_pos from control_system_state message. More...
 
static float mavlink_msg_control_system_state_get_z_vel (const mavlink_message_t *msg)
 Get field z_vel from control_system_state message. More...
 
static uint16_t mavlink_msg_control_system_state_pack (uint8_t system_id, uint8_t component_id, mavlink_message_t *msg, uint64_t time_usec, float x_acc, float y_acc, float z_acc, float x_vel, float y_vel, float z_vel, float x_pos, float y_pos, float z_pos, float airspeed, const float *vel_variance, const float *pos_variance, const float *q, float roll_rate, float pitch_rate, float yaw_rate)
 Pack a control_system_state message. More...
 
static uint16_t mavlink_msg_control_system_state_pack_chan (uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t *msg, uint64_t time_usec, float x_acc, float y_acc, float z_acc, float x_vel, float y_vel, float z_vel, float x_pos, float y_pos, float z_pos, float airspeed, const float *vel_variance, const float *pos_variance, const float *q, float roll_rate, float pitch_rate, float yaw_rate)
 Pack a control_system_state message on a channel. More...
 

Macro Definition Documentation

#define MAVLINK_MESSAGE_INFO_CONTROL_SYSTEM_STATE
Value:
{ \
"CONTROL_SYSTEM_STATE", \
17, \
{ { "time_usec", NULL, MAVLINK_TYPE_UINT64_T, 0, 0, offsetof(mavlink_control_system_state_t, time_usec) }, \
{ "x_acc", NULL, MAVLINK_TYPE_FLOAT, 0, 8, offsetof(mavlink_control_system_state_t, x_acc) }, \
{ "y_acc", NULL, MAVLINK_TYPE_FLOAT, 0, 12, offsetof(mavlink_control_system_state_t, y_acc) }, \
{ "z_acc", NULL, MAVLINK_TYPE_FLOAT, 0, 16, offsetof(mavlink_control_system_state_t, z_acc) }, \
{ "x_vel", NULL, MAVLINK_TYPE_FLOAT, 0, 20, offsetof(mavlink_control_system_state_t, x_vel) }, \
{ "y_vel", NULL, MAVLINK_TYPE_FLOAT, 0, 24, offsetof(mavlink_control_system_state_t, y_vel) }, \
{ "z_vel", NULL, MAVLINK_TYPE_FLOAT, 0, 28, offsetof(mavlink_control_system_state_t, z_vel) }, \
{ "x_pos", NULL, MAVLINK_TYPE_FLOAT, 0, 32, offsetof(mavlink_control_system_state_t, x_pos) }, \
{ "y_pos", NULL, MAVLINK_TYPE_FLOAT, 0, 36, offsetof(mavlink_control_system_state_t, y_pos) }, \
{ "z_pos", NULL, MAVLINK_TYPE_FLOAT, 0, 40, offsetof(mavlink_control_system_state_t, z_pos) }, \
{ "airspeed", NULL, MAVLINK_TYPE_FLOAT, 0, 44, offsetof(mavlink_control_system_state_t, airspeed) }, \
{ "vel_variance", NULL, MAVLINK_TYPE_FLOAT, 3, 48, offsetof(mavlink_control_system_state_t, vel_variance) }, \
{ "pos_variance", NULL, MAVLINK_TYPE_FLOAT, 3, 60, offsetof(mavlink_control_system_state_t, pos_variance) }, \
{ "q", NULL, MAVLINK_TYPE_FLOAT, 4, 72, offsetof(mavlink_control_system_state_t, q) }, \
{ "roll_rate", NULL, MAVLINK_TYPE_FLOAT, 0, 88, offsetof(mavlink_control_system_state_t, roll_rate) }, \
{ "pitch_rate", NULL, MAVLINK_TYPE_FLOAT, 0, 92, offsetof(mavlink_control_system_state_t, pitch_rate) }, \
{ "yaw_rate", NULL, MAVLINK_TYPE_FLOAT, 0, 96, offsetof(mavlink_control_system_state_t, yaw_rate) }, \
} \
}

Definition at line 36 of file mavlink_msg_control_system_state.h.

#define MAVLINK_MSG_CONTROL_SYSTEM_STATE_FIELD_POS_VARIANCE_LEN   3

Definition at line 33 of file mavlink_msg_control_system_state.h.

#define MAVLINK_MSG_CONTROL_SYSTEM_STATE_FIELD_Q_LEN   4

Definition at line 34 of file mavlink_msg_control_system_state.h.

#define MAVLINK_MSG_CONTROL_SYSTEM_STATE_FIELD_VEL_VARIANCE_LEN   3

Definition at line 32 of file mavlink_msg_control_system_state.h.

#define MAVLINK_MSG_ID_146_CRC   103

Definition at line 30 of file mavlink_msg_control_system_state.h.

#define MAVLINK_MSG_ID_146_LEN   100

Definition at line 27 of file mavlink_msg_control_system_state.h.

#define MAVLINK_MSG_ID_CONTROL_SYSTEM_STATE   146

Definition at line 3 of file mavlink_msg_control_system_state.h.

#define MAVLINK_MSG_ID_CONTROL_SYSTEM_STATE_CRC   103

Definition at line 29 of file mavlink_msg_control_system_state.h.

#define MAVLINK_MSG_ID_CONTROL_SYSTEM_STATE_LEN   100

Definition at line 26 of file mavlink_msg_control_system_state.h.

Typedef Documentation

Function Documentation

static void mavlink_msg_control_system_state_decode ( const mavlink_message_t *  msg,
mavlink_control_system_state_t control_system_state 
)
inlinestatic

Decode a control_system_state message into a struct.

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

Definition at line 564 of file mavlink_msg_control_system_state.h.

static uint16_t mavlink_msg_control_system_state_encode ( uint8_t  system_id,
uint8_t  component_id,
mavlink_message_t *  msg,
const mavlink_control_system_state_t control_system_state 
)
inlinestatic

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

Definition at line 225 of file mavlink_msg_control_system_state.h.

static uint16_t mavlink_msg_control_system_state_encode_chan ( uint8_t  system_id,
uint8_t  component_id,
uint8_t  chan,
mavlink_message_t *  msg,
const mavlink_control_system_state_t control_system_state 
)
inlinestatic

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

Definition at line 239 of file mavlink_msg_control_system_state.h.

static float mavlink_msg_control_system_state_get_airspeed ( const mavlink_message_t *  msg)
inlinestatic

Get field airspeed from control_system_state message.

Returns
Airspeed, set to -1 if unknown

Definition at line 493 of file mavlink_msg_control_system_state.h.

static float mavlink_msg_control_system_state_get_pitch_rate ( const mavlink_message_t *  msg)
inlinestatic

Get field pitch_rate from control_system_state message.

Returns
Angular rate in pitch axis

Definition at line 543 of file mavlink_msg_control_system_state.h.

static uint16_t mavlink_msg_control_system_state_get_pos_variance ( const mavlink_message_t *  msg,
float *  pos_variance 
)
inlinestatic

Get field pos_variance from control_system_state message.

Returns
Variance in local position

Definition at line 513 of file mavlink_msg_control_system_state.h.

static uint16_t mavlink_msg_control_system_state_get_q ( const mavlink_message_t *  msg,
float *  q 
)
inlinestatic

Get field q from control_system_state message.

Returns
The attitude, represented as Quaternion

Definition at line 523 of file mavlink_msg_control_system_state.h.

static float mavlink_msg_control_system_state_get_roll_rate ( const mavlink_message_t *  msg)
inlinestatic

Get field roll_rate from control_system_state message.

Returns
Angular rate in roll axis

Definition at line 533 of file mavlink_msg_control_system_state.h.

static uint64_t mavlink_msg_control_system_state_get_time_usec ( const mavlink_message_t *  msg)
inlinestatic

Send a control_system_state message.

Parameters
chanMAVLink channel to send the message
time_usecTimestamp (micros since boot or Unix epoch)
x_accX acceleration in body frame
y_accY acceleration in body frame
z_accZ acceleration in body frame
x_velX velocity in body frame
y_velY velocity in body frame
z_velZ velocity in body frame
x_posX position in local frame
y_posY position in local frame
z_posZ position in local frame
airspeedAirspeed, set to -1 if unknown
vel_varianceVariance of body velocity estimate
pos_varianceVariance in local position
qThe attitude, represented as Quaternion
roll_rateAngular rate in roll axis
pitch_rateAngular rate in pitch axis
yaw_rateAngular rate in yaw axis Get field time_usec from control_system_state message
Returns
Timestamp (micros since boot or Unix epoch)

Definition at line 393 of file mavlink_msg_control_system_state.h.

static uint16_t mavlink_msg_control_system_state_get_vel_variance ( const mavlink_message_t *  msg,
float *  vel_variance 
)
inlinestatic

Get field vel_variance from control_system_state message.

Returns
Variance of body velocity estimate

Definition at line 503 of file mavlink_msg_control_system_state.h.

static float mavlink_msg_control_system_state_get_x_acc ( const mavlink_message_t *  msg)
inlinestatic

Get field x_acc from control_system_state message.

Returns
X acceleration in body frame

Definition at line 403 of file mavlink_msg_control_system_state.h.

static float mavlink_msg_control_system_state_get_x_pos ( const mavlink_message_t *  msg)
inlinestatic

Get field x_pos from control_system_state message.

Returns
X position in local frame

Definition at line 463 of file mavlink_msg_control_system_state.h.

static float mavlink_msg_control_system_state_get_x_vel ( const mavlink_message_t *  msg)
inlinestatic

Get field x_vel from control_system_state message.

Returns
X velocity in body frame

Definition at line 433 of file mavlink_msg_control_system_state.h.

static float mavlink_msg_control_system_state_get_y_acc ( const mavlink_message_t *  msg)
inlinestatic

Get field y_acc from control_system_state message.

Returns
Y acceleration in body frame

Definition at line 413 of file mavlink_msg_control_system_state.h.

static float mavlink_msg_control_system_state_get_y_pos ( const mavlink_message_t *  msg)
inlinestatic

Get field y_pos from control_system_state message.

Returns
Y position in local frame

Definition at line 473 of file mavlink_msg_control_system_state.h.

static float mavlink_msg_control_system_state_get_y_vel ( const mavlink_message_t *  msg)
inlinestatic

Get field y_vel from control_system_state message.

Returns
Y velocity in body frame

Definition at line 443 of file mavlink_msg_control_system_state.h.

static float mavlink_msg_control_system_state_get_yaw_rate ( const mavlink_message_t *  msg)
inlinestatic

Get field yaw_rate from control_system_state message.

Returns
Angular rate in yaw axis

Definition at line 553 of file mavlink_msg_control_system_state.h.

static float mavlink_msg_control_system_state_get_z_acc ( const mavlink_message_t *  msg)
inlinestatic

Get field z_acc from control_system_state message.

Returns
Z acceleration in body frame

Definition at line 423 of file mavlink_msg_control_system_state.h.

static float mavlink_msg_control_system_state_get_z_pos ( const mavlink_message_t *  msg)
inlinestatic

Get field z_pos from control_system_state message.

Returns
Z position in local frame

Definition at line 483 of file mavlink_msg_control_system_state.h.

static float mavlink_msg_control_system_state_get_z_vel ( const mavlink_message_t *  msg)
inlinestatic

Get field z_vel from control_system_state message.

Returns
Z velocity in body frame

Definition at line 453 of file mavlink_msg_control_system_state.h.

static uint16_t mavlink_msg_control_system_state_pack ( uint8_t  system_id,
uint8_t  component_id,
mavlink_message_t *  msg,
uint64_t  time_usec,
float  x_acc,
float  y_acc,
float  z_acc,
float  x_vel,
float  y_vel,
float  z_vel,
float  x_pos,
float  y_pos,
float  z_pos,
float  airspeed,
const float *  vel_variance,
const float *  pos_variance,
const float *  q,
float  roll_rate,
float  pitch_rate,
float  yaw_rate 
)
inlinestatic

Pack a control_system_state 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_usecTimestamp (micros since boot or Unix epoch)
x_accX acceleration in body frame
y_accY acceleration in body frame
z_accZ acceleration in body frame
x_velX velocity in body frame
y_velY velocity in body frame
z_velZ velocity in body frame
x_posX position in local frame
y_posY position in local frame
z_posZ position in local frame
airspeedAirspeed, set to -1 if unknown
vel_varianceVariance of body velocity estimate
pos_varianceVariance in local position
qThe attitude, represented as Quaternion
roll_rateAngular rate in roll axis
pitch_rateAngular rate in pitch axis
yaw_rateAngular rate in yaw axis
Returns
length of the message in bytes (excluding serial stream start sign)

Definition at line 85 of file mavlink_msg_control_system_state.h.

static uint16_t mavlink_msg_control_system_state_pack_chan ( uint8_t  system_id,
uint8_t  component_id,
uint8_t  chan,
mavlink_message_t *  msg,
uint64_t  time_usec,
float  x_acc,
float  y_acc,
float  z_acc,
float  x_vel,
float  y_vel,
float  z_vel,
float  x_pos,
float  y_pos,
float  z_pos,
float  airspeed,
const float *  vel_variance,
const float *  pos_variance,
const float *  q,
float  roll_rate,
float  pitch_rate,
float  yaw_rate 
)
inlinestatic

Pack a control_system_state 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_usecTimestamp (micros since boot or Unix epoch)
x_accX acceleration in body frame
y_accY acceleration in body frame
z_accZ acceleration in body frame
x_velX velocity in body frame
y_velY velocity in body frame
z_velZ velocity in body frame
x_posX position in local frame
y_posY position in local frame
z_posZ position in local frame
airspeedAirspeed, set to -1 if unknown
vel_varianceVariance of body velocity estimate
pos_varianceVariance in local position
qThe attitude, represented as Quaternion
roll_rateAngular rate in roll axis
pitch_rateAngular rate in pitch axis
yaw_rateAngular rate in yaw axis
Returns
length of the message in bytes (excluding serial stream start sign)

Definition at line 163 of file mavlink_msg_control_system_state.h.



rosflight
Author(s): Daniel Koch , James Jackson
autogenerated on Wed Jul 3 2019 20:00:13