Go to the source code of this file.
Classes | |
struct | __mavlink_control_system_state_t |
Defines | |
#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. | |
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. | |
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. | |
static float | mavlink_msg_control_system_state_get_airspeed (const mavlink_message_t *msg) |
Get field airspeed from control_system_state message. | |
static float | mavlink_msg_control_system_state_get_pitch_rate (const mavlink_message_t *msg) |
Get field pitch_rate from control_system_state message. | |
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. | |
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. | |
static float | mavlink_msg_control_system_state_get_roll_rate (const mavlink_message_t *msg) |
Get field roll_rate from control_system_state message. | |
static uint64_t | mavlink_msg_control_system_state_get_time_usec (const mavlink_message_t *msg) |
Send a control_system_state message. | |
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. | |
static float | mavlink_msg_control_system_state_get_x_acc (const mavlink_message_t *msg) |
Get field x_acc from control_system_state message. | |
static float | mavlink_msg_control_system_state_get_x_pos (const mavlink_message_t *msg) |
Get field x_pos from control_system_state message. | |
static float | mavlink_msg_control_system_state_get_x_vel (const mavlink_message_t *msg) |
Get field x_vel from control_system_state message. | |
static float | mavlink_msg_control_system_state_get_y_acc (const mavlink_message_t *msg) |
Get field y_acc from control_system_state message. | |
static float | mavlink_msg_control_system_state_get_y_pos (const mavlink_message_t *msg) |
Get field y_pos from control_system_state message. | |
static float | mavlink_msg_control_system_state_get_y_vel (const mavlink_message_t *msg) |
Get field y_vel from control_system_state message. | |
static float | mavlink_msg_control_system_state_get_yaw_rate (const mavlink_message_t *msg) |
Get field yaw_rate from control_system_state message. | |
static float | mavlink_msg_control_system_state_get_z_acc (const mavlink_message_t *msg) |
Get field z_acc from control_system_state message. | |
static float | mavlink_msg_control_system_state_get_z_pos (const mavlink_message_t *msg) |
Get field z_pos from control_system_state message. | |
static float | mavlink_msg_control_system_state_get_z_vel (const mavlink_message_t *msg) |
Get field z_vel from control_system_state message. | |
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. | |
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. |
{ \ "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.
Definition at line 33 of file mavlink_msg_control_system_state.h.
Definition at line 34 of file mavlink_msg_control_system_state.h.
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 struct __mavlink_control_system_state_t mavlink_control_system_state_t |
static void mavlink_msg_control_system_state_decode | ( | const mavlink_message_t * | msg, |
mavlink_control_system_state_t * | control_system_state | ||
) | [inline, static] |
Decode a control_system_state message into a struct.
msg | The message to decode |
control_system_state | C-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 | ||
) | [inline, static] |
Encode a control_system_state 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 |
control_system_state | C-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 | ||
) | [inline, static] |
Encode a control_system_state 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 |
control_system_state | C-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 | ) | [inline, static] |
Get field airspeed from control_system_state message.
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 | ) | [inline, static] |
Get field pitch_rate from control_system_state message.
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 | ||
) | [inline, static] |
Get field pos_variance from control_system_state message.
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 | ||
) | [inline, static] |
Get field q from control_system_state message.
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 | ) | [inline, static] |
Get field roll_rate from control_system_state message.
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 | ) | [inline, static] |
Send a control_system_state message.
chan | MAVLink channel to send the message |
time_usec | Timestamp (micros since boot or Unix epoch) |
x_acc | X acceleration in body frame |
y_acc | Y acceleration in body frame |
z_acc | Z acceleration in body frame |
x_vel | X velocity in body frame |
y_vel | Y velocity in body frame |
z_vel | Z velocity in body frame |
x_pos | X position in local frame |
y_pos | Y position in local frame |
z_pos | Z position in local frame |
airspeed | Airspeed, set to -1 if unknown |
vel_variance | Variance of body velocity estimate |
pos_variance | Variance in local position |
q | The attitude, represented as Quaternion |
roll_rate | Angular rate in roll axis |
pitch_rate | Angular rate in pitch axis |
yaw_rate | Angular rate in yaw axis Get field time_usec from control_system_state message |
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 | ||
) | [inline, static] |
Get field vel_variance from control_system_state message.
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 | ) | [inline, static] |
Get field x_acc from control_system_state message.
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 | ) | [inline, static] |
Get field x_pos from control_system_state message.
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 | ) | [inline, static] |
Get field x_vel from control_system_state message.
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 | ) | [inline, static] |
Get field y_acc from control_system_state message.
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 | ) | [inline, static] |
Get field y_pos from control_system_state message.
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 | ) | [inline, static] |
Get field y_vel from control_system_state message.
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 | ) | [inline, static] |
Get field yaw_rate from control_system_state message.
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 | ) | [inline, static] |
Get field z_acc from control_system_state message.
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 | ) | [inline, static] |
Get field z_pos from control_system_state message.
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 | ) | [inline, static] |
Get field z_vel from control_system_state message.
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 | ||
) | [inline, static] |
Pack a control_system_state 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_usec | Timestamp (micros since boot or Unix epoch) |
x_acc | X acceleration in body frame |
y_acc | Y acceleration in body frame |
z_acc | Z acceleration in body frame |
x_vel | X velocity in body frame |
y_vel | Y velocity in body frame |
z_vel | Z velocity in body frame |
x_pos | X position in local frame |
y_pos | Y position in local frame |
z_pos | Z position in local frame |
airspeed | Airspeed, set to -1 if unknown |
vel_variance | Variance of body velocity estimate |
pos_variance | Variance in local position |
q | The attitude, represented as Quaternion |
roll_rate | Angular rate in roll axis |
pitch_rate | Angular rate in pitch axis |
yaw_rate | Angular rate in yaw axis |
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 | ||
) | [inline, static] |
Pack a control_system_state 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_usec | Timestamp (micros since boot or Unix epoch) |
x_acc | X acceleration in body frame |
y_acc | Y acceleration in body frame |
z_acc | Z acceleration in body frame |
x_vel | X velocity in body frame |
y_vel | Y velocity in body frame |
z_vel | Z velocity in body frame |
x_pos | X position in local frame |
y_pos | Y position in local frame |
z_pos | Z position in local frame |
airspeed | Airspeed, set to -1 if unknown |
vel_variance | Variance of body velocity estimate |
pos_variance | Variance in local position |
q | The attitude, represented as Quaternion |
roll_rate | Angular rate in roll axis |
pitch_rate | Angular rate in pitch axis |
yaw_rate | Angular rate in yaw axis |
Definition at line 163 of file mavlink_msg_control_system_state.h.