Classes | Macros | Typedefs | Functions
mavlink_msg_small_imu.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_small_imu_t
 

Macros

#define MAVLINK_MESSAGE_INFO_SMALL_IMU
 
#define MAVLINK_MSG_ID_181_CRC   67
 
#define MAVLINK_MSG_ID_181_LEN   36
 
#define MAVLINK_MSG_ID_SMALL_IMU   181
 
#define MAVLINK_MSG_ID_SMALL_IMU_CRC   67
 
#define MAVLINK_MSG_ID_SMALL_IMU_LEN   36
 

Typedefs

typedef struct __mavlink_small_imu_t mavlink_small_imu_t
 

Functions

static void mavlink_msg_small_imu_decode (const mavlink_message_t *msg, mavlink_small_imu_t *small_imu)
 Decode a small_imu message into a struct. More...
 
static uint16_t mavlink_msg_small_imu_encode (uint8_t system_id, uint8_t component_id, mavlink_message_t *msg, const mavlink_small_imu_t *small_imu)
 Encode a small_imu struct. More...
 
static uint16_t mavlink_msg_small_imu_encode_chan (uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t *msg, const mavlink_small_imu_t *small_imu)
 Encode a small_imu struct on a channel. More...
 
static float mavlink_msg_small_imu_get_temperature (const mavlink_message_t *msg)
 Get field temperature from small_imu message. More...
 
static uint64_t mavlink_msg_small_imu_get_time_boot_us (const mavlink_message_t *msg)
 Send a small_imu message. More...
 
static float mavlink_msg_small_imu_get_xacc (const mavlink_message_t *msg)
 Get field xacc from small_imu message. More...
 
static float mavlink_msg_small_imu_get_xgyro (const mavlink_message_t *msg)
 Get field xgyro from small_imu message. More...
 
static float mavlink_msg_small_imu_get_yacc (const mavlink_message_t *msg)
 Get field yacc from small_imu message. More...
 
static float mavlink_msg_small_imu_get_ygyro (const mavlink_message_t *msg)
 Get field ygyro from small_imu message. More...
 
static float mavlink_msg_small_imu_get_zacc (const mavlink_message_t *msg)
 Get field zacc from small_imu message. More...
 
static float mavlink_msg_small_imu_get_zgyro (const mavlink_message_t *msg)
 Get field zgyro from small_imu message. More...
 
static uint16_t mavlink_msg_small_imu_pack (uint8_t system_id, uint8_t component_id, mavlink_message_t *msg, uint64_t time_boot_us, float xacc, float yacc, float zacc, float xgyro, float ygyro, float zgyro, float temperature)
 Pack a small_imu message. More...
 
static uint16_t mavlink_msg_small_imu_pack_chan (uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t *msg, uint64_t time_boot_us, float xacc, float yacc, float zacc, float xgyro, float ygyro, float zgyro, float temperature)
 Pack a small_imu message on a channel. More...
 

Macro Definition Documentation

#define MAVLINK_MESSAGE_INFO_SMALL_IMU
Value:
{ \
"SMALL_IMU", \
8, \
{ { "time_boot_us", NULL, MAVLINK_TYPE_UINT64_T, 0, 0, offsetof(mavlink_small_imu_t, time_boot_us) }, \
{ "xacc", NULL, MAVLINK_TYPE_FLOAT, 0, 8, offsetof(mavlink_small_imu_t, xacc) }, \
{ "yacc", NULL, MAVLINK_TYPE_FLOAT, 0, 12, offsetof(mavlink_small_imu_t, yacc) }, \
{ "zacc", NULL, MAVLINK_TYPE_FLOAT, 0, 16, offsetof(mavlink_small_imu_t, zacc) }, \
{ "xgyro", NULL, MAVLINK_TYPE_FLOAT, 0, 20, offsetof(mavlink_small_imu_t, xgyro) }, \
{ "ygyro", NULL, MAVLINK_TYPE_FLOAT, 0, 24, offsetof(mavlink_small_imu_t, ygyro) }, \
{ "zgyro", NULL, MAVLINK_TYPE_FLOAT, 0, 28, offsetof(mavlink_small_imu_t, zgyro) }, \
{ "temperature", NULL, MAVLINK_TYPE_FLOAT, 0, 32, offsetof(mavlink_small_imu_t, temperature) }, \
} \
}

Definition at line 25 of file mavlink_msg_small_imu.h.

#define MAVLINK_MSG_ID_181_CRC   67

Definition at line 21 of file mavlink_msg_small_imu.h.

#define MAVLINK_MSG_ID_181_LEN   36

Definition at line 18 of file mavlink_msg_small_imu.h.

#define MAVLINK_MSG_ID_SMALL_IMU   181

Definition at line 3 of file mavlink_msg_small_imu.h.

#define MAVLINK_MSG_ID_SMALL_IMU_CRC   67

Definition at line 20 of file mavlink_msg_small_imu.h.

#define MAVLINK_MSG_ID_SMALL_IMU_LEN   36

Definition at line 17 of file mavlink_msg_small_imu.h.

Typedef Documentation

Function Documentation

static void mavlink_msg_small_imu_decode ( const mavlink_message_t *  msg,
mavlink_small_imu_t small_imu 
)
inlinestatic

Decode a small_imu message into a struct.

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

Definition at line 363 of file mavlink_msg_small_imu.h.

static uint16_t mavlink_msg_small_imu_encode ( uint8_t  system_id,
uint8_t  component_id,
mavlink_message_t *  msg,
const mavlink_small_imu_t small_imu 
)
inlinestatic

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

Definition at line 155 of file mavlink_msg_small_imu.h.

static uint16_t mavlink_msg_small_imu_encode_chan ( uint8_t  system_id,
uint8_t  component_id,
uint8_t  chan,
mavlink_message_t *  msg,
const mavlink_small_imu_t small_imu 
)
inlinestatic

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

Definition at line 169 of file mavlink_msg_small_imu.h.

static float mavlink_msg_small_imu_get_temperature ( const mavlink_message_t *  msg)
inlinestatic

Get field temperature from small_imu message.

Returns
Internal temperature measurement

Definition at line 352 of file mavlink_msg_small_imu.h.

static uint64_t mavlink_msg_small_imu_get_time_boot_us ( const mavlink_message_t *  msg)
inlinestatic

Send a small_imu message.

Parameters
chanMAVLink channel to send the message
time_boot_usMeasurement timestamp as microseconds since boot
xaccAcceleration along X axis
yaccAcceleration along Y axis
zaccAcceleration along Z axis
xgyroAngular speed around X axis
ygyroAngular speed around Y axis
zgyroAngular speed around Z axis
temperatureInternal temperature measurement Get field time_boot_us from small_imu message
Returns
Measurement timestamp as microseconds since boot

Definition at line 282 of file mavlink_msg_small_imu.h.

static float mavlink_msg_small_imu_get_xacc ( const mavlink_message_t *  msg)
inlinestatic

Get field xacc from small_imu message.

Returns
Acceleration along X axis

Definition at line 292 of file mavlink_msg_small_imu.h.

static float mavlink_msg_small_imu_get_xgyro ( const mavlink_message_t *  msg)
inlinestatic

Get field xgyro from small_imu message.

Returns
Angular speed around X axis

Definition at line 322 of file mavlink_msg_small_imu.h.

static float mavlink_msg_small_imu_get_yacc ( const mavlink_message_t *  msg)
inlinestatic

Get field yacc from small_imu message.

Returns
Acceleration along Y axis

Definition at line 302 of file mavlink_msg_small_imu.h.

static float mavlink_msg_small_imu_get_ygyro ( const mavlink_message_t *  msg)
inlinestatic

Get field ygyro from small_imu message.

Returns
Angular speed around Y axis

Definition at line 332 of file mavlink_msg_small_imu.h.

static float mavlink_msg_small_imu_get_zacc ( const mavlink_message_t *  msg)
inlinestatic

Get field zacc from small_imu message.

Returns
Acceleration along Z axis

Definition at line 312 of file mavlink_msg_small_imu.h.

static float mavlink_msg_small_imu_get_zgyro ( const mavlink_message_t *  msg)
inlinestatic

Get field zgyro from small_imu message.

Returns
Angular speed around Z axis

Definition at line 342 of file mavlink_msg_small_imu.h.

static uint16_t mavlink_msg_small_imu_pack ( uint8_t  system_id,
uint8_t  component_id,
mavlink_message_t *  msg,
uint64_t  time_boot_us,
float  xacc,
float  yacc,
float  zacc,
float  xgyro,
float  ygyro,
float  zgyro,
float  temperature 
)
inlinestatic

Pack a small_imu 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_usMeasurement timestamp as microseconds since boot
xaccAcceleration along X axis
yaccAcceleration along Y axis
zaccAcceleration along Z axis
xgyroAngular speed around X axis
ygyroAngular speed around Y axis
zgyroAngular speed around Z axis
temperatureInternal temperature measurement
Returns
length of the message in bytes (excluding serial stream start sign)

Definition at line 56 of file mavlink_msg_small_imu.h.

static uint16_t mavlink_msg_small_imu_pack_chan ( uint8_t  system_id,
uint8_t  component_id,
uint8_t  chan,
mavlink_message_t *  msg,
uint64_t  time_boot_us,
float  xacc,
float  yacc,
float  zacc,
float  xgyro,
float  ygyro,
float  zgyro,
float  temperature 
)
inlinestatic

Pack a small_imu 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_usMeasurement timestamp as microseconds since boot
xaccAcceleration along X axis
yaccAcceleration along Y axis
zaccAcceleration along Z axis
xgyroAngular speed around X axis
ygyroAngular speed around Y axis
zgyroAngular speed around Z axis
temperatureInternal temperature measurement
Returns
length of the message in bytes (excluding serial stream start sign)

Definition at line 109 of file mavlink_msg_small_imu.h.



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