Classes | Macros | Typedefs | Functions
mavlink_msg_vibration.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_vibration_t
 

Macros

#define MAVLINK_MESSAGE_INFO_VIBRATION
 
#define MAVLINK_MSG_ID_241_CRC   90
 
#define MAVLINK_MSG_ID_241_LEN   32
 
#define MAVLINK_MSG_ID_VIBRATION   241
 
#define MAVLINK_MSG_ID_VIBRATION_CRC   90
 
#define MAVLINK_MSG_ID_VIBRATION_LEN   32
 

Typedefs

typedef struct __mavlink_vibration_t mavlink_vibration_t
 

Functions

static void mavlink_msg_vibration_decode (const mavlink_message_t *msg, mavlink_vibration_t *vibration)
 Decode a vibration message into a struct. More...
 
static uint16_t mavlink_msg_vibration_encode (uint8_t system_id, uint8_t component_id, mavlink_message_t *msg, const mavlink_vibration_t *vibration)
 Encode a vibration struct. More...
 
static uint16_t mavlink_msg_vibration_encode_chan (uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t *msg, const mavlink_vibration_t *vibration)
 Encode a vibration struct on a channel. More...
 
static uint32_t mavlink_msg_vibration_get_clipping_0 (const mavlink_message_t *msg)
 Get field clipping_0 from vibration message. More...
 
static uint32_t mavlink_msg_vibration_get_clipping_1 (const mavlink_message_t *msg)
 Get field clipping_1 from vibration message. More...
 
static uint32_t mavlink_msg_vibration_get_clipping_2 (const mavlink_message_t *msg)
 Get field clipping_2 from vibration message. More...
 
static uint64_t mavlink_msg_vibration_get_time_usec (const mavlink_message_t *msg)
 Send a vibration message. More...
 
static float mavlink_msg_vibration_get_vibration_x (const mavlink_message_t *msg)
 Get field vibration_x from vibration message. More...
 
static float mavlink_msg_vibration_get_vibration_y (const mavlink_message_t *msg)
 Get field vibration_y from vibration message. More...
 
static float mavlink_msg_vibration_get_vibration_z (const mavlink_message_t *msg)
 Get field vibration_z from vibration message. More...
 
static uint16_t mavlink_msg_vibration_pack (uint8_t system_id, uint8_t component_id, mavlink_message_t *msg, uint64_t time_usec, float vibration_x, float vibration_y, float vibration_z, uint32_t clipping_0, uint32_t clipping_1, uint32_t clipping_2)
 Pack a vibration message. More...
 
static uint16_t mavlink_msg_vibration_pack_chan (uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t *msg, uint64_t time_usec, float vibration_x, float vibration_y, float vibration_z, uint32_t clipping_0, uint32_t clipping_1, uint32_t clipping_2)
 Pack a vibration message on a channel. More...
 

Macro Definition Documentation

#define MAVLINK_MESSAGE_INFO_VIBRATION
Value:
{ \
"VIBRATION", \
7, \
{ { "time_usec", NULL, MAVLINK_TYPE_UINT64_T, 0, 0, offsetof(mavlink_vibration_t, time_usec) }, \
{ "vibration_x", NULL, MAVLINK_TYPE_FLOAT, 0, 8, offsetof(mavlink_vibration_t, vibration_x) }, \
{ "vibration_y", NULL, MAVLINK_TYPE_FLOAT, 0, 12, offsetof(mavlink_vibration_t, vibration_y) }, \
{ "vibration_z", NULL, MAVLINK_TYPE_FLOAT, 0, 16, offsetof(mavlink_vibration_t, vibration_z) }, \
{ "clipping_0", NULL, MAVLINK_TYPE_UINT32_T, 0, 20, offsetof(mavlink_vibration_t, clipping_0) }, \
{ "clipping_1", NULL, MAVLINK_TYPE_UINT32_T, 0, 24, offsetof(mavlink_vibration_t, clipping_1) }, \
{ "clipping_2", NULL, MAVLINK_TYPE_UINT32_T, 0, 28, offsetof(mavlink_vibration_t, clipping_2) }, \
} \
}
#define NULL
Definition: usbd_def.h:50

Definition at line 24 of file mavlink_msg_vibration.h.

#define MAVLINK_MSG_ID_241_CRC   90

Definition at line 20 of file mavlink_msg_vibration.h.

#define MAVLINK_MSG_ID_241_LEN   32

Definition at line 17 of file mavlink_msg_vibration.h.

#define MAVLINK_MSG_ID_VIBRATION   241

Definition at line 3 of file mavlink_msg_vibration.h.

#define MAVLINK_MSG_ID_VIBRATION_CRC   90

Definition at line 19 of file mavlink_msg_vibration.h.

#define MAVLINK_MSG_ID_VIBRATION_LEN   32

Definition at line 16 of file mavlink_msg_vibration.h.

Typedef Documentation

Function Documentation

static void mavlink_msg_vibration_decode ( const mavlink_message_t *  msg,
mavlink_vibration_t vibration 
)
inlinestatic

Decode a vibration message into a struct.

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

Definition at line 340 of file mavlink_msg_vibration.h.

static uint16_t mavlink_msg_vibration_encode ( uint8_t  system_id,
uint8_t  component_id,
mavlink_message_t *  msg,
const mavlink_vibration_t vibration 
)
inlinestatic

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

Definition at line 147 of file mavlink_msg_vibration.h.

static uint16_t mavlink_msg_vibration_encode_chan ( uint8_t  system_id,
uint8_t  component_id,
uint8_t  chan,
mavlink_message_t *  msg,
const mavlink_vibration_t vibration 
)
inlinestatic

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

Definition at line 161 of file mavlink_msg_vibration.h.

static uint32_t mavlink_msg_vibration_get_clipping_0 ( const mavlink_message_t *  msg)
inlinestatic

Get field clipping_0 from vibration message.

Returns
first accelerometer clipping count

Definition at line 309 of file mavlink_msg_vibration.h.

static uint32_t mavlink_msg_vibration_get_clipping_1 ( const mavlink_message_t *  msg)
inlinestatic

Get field clipping_1 from vibration message.

Returns
second accelerometer clipping count

Definition at line 319 of file mavlink_msg_vibration.h.

static uint32_t mavlink_msg_vibration_get_clipping_2 ( const mavlink_message_t *  msg)
inlinestatic

Get field clipping_2 from vibration message.

Returns
third accelerometer clipping count

Definition at line 329 of file mavlink_msg_vibration.h.

static uint64_t mavlink_msg_vibration_get_time_usec ( const mavlink_message_t *  msg)
inlinestatic

Send a vibration message.

Parameters
chanMAVLink channel to send the message
time_usecTimestamp (micros since boot or Unix epoch)
vibration_xVibration levels on X-axis
vibration_yVibration levels on Y-axis
vibration_zVibration levels on Z-axis
clipping_0first accelerometer clipping count
clipping_1second accelerometer clipping count
clipping_2third accelerometer clipping count Get field time_usec from vibration message
Returns
Timestamp (micros since boot or Unix epoch)

Definition at line 269 of file mavlink_msg_vibration.h.

static float mavlink_msg_vibration_get_vibration_x ( const mavlink_message_t *  msg)
inlinestatic

Get field vibration_x from vibration message.

Returns
Vibration levels on X-axis

Definition at line 279 of file mavlink_msg_vibration.h.

static float mavlink_msg_vibration_get_vibration_y ( const mavlink_message_t *  msg)
inlinestatic

Get field vibration_y from vibration message.

Returns
Vibration levels on Y-axis

Definition at line 289 of file mavlink_msg_vibration.h.

static float mavlink_msg_vibration_get_vibration_z ( const mavlink_message_t *  msg)
inlinestatic

Get field vibration_z from vibration message.

Returns
Vibration levels on Z-axis

Definition at line 299 of file mavlink_msg_vibration.h.

static uint16_t mavlink_msg_vibration_pack ( uint8_t  system_id,
uint8_t  component_id,
mavlink_message_t *  msg,
uint64_t  time_usec,
float  vibration_x,
float  vibration_y,
float  vibration_z,
uint32_t  clipping_0,
uint32_t  clipping_1,
uint32_t  clipping_2 
)
inlinestatic

Pack a vibration 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)
vibration_xVibration levels on X-axis
vibration_yVibration levels on Y-axis
vibration_zVibration levels on Z-axis
clipping_0first accelerometer clipping count
clipping_1second accelerometer clipping count
clipping_2third accelerometer clipping count
Returns
length of the message in bytes (excluding serial stream start sign)

Definition at line 53 of file mavlink_msg_vibration.h.

static uint16_t mavlink_msg_vibration_pack_chan ( uint8_t  system_id,
uint8_t  component_id,
uint8_t  chan,
mavlink_message_t *  msg,
uint64_t  time_usec,
float  vibration_x,
float  vibration_y,
float  vibration_z,
uint32_t  clipping_0,
uint32_t  clipping_1,
uint32_t  clipping_2 
)
inlinestatic

Pack a vibration 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)
vibration_xVibration levels on X-axis
vibration_yVibration levels on Y-axis
vibration_zVibration levels on Z-axis
clipping_0first accelerometer clipping count
clipping_1second accelerometer clipping count
clipping_2third accelerometer clipping count
Returns
length of the message in bytes (excluding serial stream start sign)

Definition at line 103 of file mavlink_msg_vibration.h.



rosflight_firmware
Author(s): Daniel Koch , James Jackson
autogenerated on Wed Jul 3 2019 19:59:27