Classes | Macros | Typedefs | Functions
mavlink_msg_debug.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_debug_t
 

Macros

#define MAVLINK_MESSAGE_INFO_DEBUG
 
#define MAVLINK_MSG_ID_254_CRC   46
 
#define MAVLINK_MSG_ID_254_LEN   9
 
#define MAVLINK_MSG_ID_DEBUG   254
 
#define MAVLINK_MSG_ID_DEBUG_CRC   46
 
#define MAVLINK_MSG_ID_DEBUG_LEN   9
 

Typedefs

typedef struct __mavlink_debug_t mavlink_debug_t
 

Functions

static void mavlink_msg_debug_decode (const mavlink_message_t *msg, mavlink_debug_t *debug)
 Decode a debug message into a struct. More...
 
static uint16_t mavlink_msg_debug_encode (uint8_t system_id, uint8_t component_id, mavlink_message_t *msg, const mavlink_debug_t *debug)
 Encode a debug struct. More...
 
static uint16_t mavlink_msg_debug_encode_chan (uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t *msg, const mavlink_debug_t *debug)
 Encode a debug struct on a channel. More...
 
static uint8_t mavlink_msg_debug_get_ind (const mavlink_message_t *msg)
 Get field ind from debug message. More...
 
static uint32_t mavlink_msg_debug_get_time_boot_ms (const mavlink_message_t *msg)
 Send a debug message. More...
 
static float mavlink_msg_debug_get_value (const mavlink_message_t *msg)
 Get field value from debug message. More...
 
static uint16_t mavlink_msg_debug_pack (uint8_t system_id, uint8_t component_id, mavlink_message_t *msg, uint32_t time_boot_ms, uint8_t ind, float value)
 Pack a debug message. More...
 
static uint16_t mavlink_msg_debug_pack_chan (uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t *msg, uint32_t time_boot_ms, uint8_t ind, float value)
 Pack a debug message on a channel. More...
 

Macro Definition Documentation

#define MAVLINK_MESSAGE_INFO_DEBUG
Value:
{ \
"DEBUG", \
3, \
{ { "time_boot_ms", NULL, MAVLINK_TYPE_UINT32_T, 0, 0, offsetof(mavlink_debug_t, time_boot_ms) }, \
{ "value", NULL, MAVLINK_TYPE_FLOAT, 0, 4, offsetof(mavlink_debug_t, value) }, \
{ "ind", NULL, MAVLINK_TYPE_UINT8_T, 0, 8, offsetof(mavlink_debug_t, ind) }, \
} \
}
#define NULL
Definition: usbd_def.h:50

Definition at line 20 of file mavlink_msg_debug.h.

#define MAVLINK_MSG_ID_254_CRC   46

Definition at line 16 of file mavlink_msg_debug.h.

#define MAVLINK_MSG_ID_254_LEN   9

Definition at line 13 of file mavlink_msg_debug.h.

#define MAVLINK_MSG_ID_DEBUG   254

Definition at line 3 of file mavlink_msg_debug.h.

#define MAVLINK_MSG_ID_DEBUG_CRC   46

Definition at line 15 of file mavlink_msg_debug.h.

#define MAVLINK_MSG_ID_DEBUG_LEN   9

Definition at line 12 of file mavlink_msg_debug.h.

Typedef Documentation

Function Documentation

static void mavlink_msg_debug_decode ( const mavlink_message_t *  msg,
mavlink_debug_t debug 
)
inlinestatic

Decode a debug message into a struct.

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

Definition at line 248 of file mavlink_msg_debug.h.

static uint16_t mavlink_msg_debug_encode ( uint8_t  system_id,
uint8_t  component_id,
mavlink_message_t *  msg,
const mavlink_debug_t debug 
)
inlinestatic

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

Definition at line 115 of file mavlink_msg_debug.h.

static uint16_t mavlink_msg_debug_encode_chan ( uint8_t  system_id,
uint8_t  component_id,
uint8_t  chan,
mavlink_message_t *  msg,
const mavlink_debug_t debug 
)
inlinestatic

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

Definition at line 129 of file mavlink_msg_debug.h.

static uint8_t mavlink_msg_debug_get_ind ( const mavlink_message_t *  msg)
inlinestatic

Get field ind from debug message.

Returns
index of debug variable

Definition at line 227 of file mavlink_msg_debug.h.

static uint32_t mavlink_msg_debug_get_time_boot_ms ( const mavlink_message_t *  msg)
inlinestatic

Send a debug message.

Parameters
chanMAVLink channel to send the message
time_boot_msTimestamp (milliseconds since system boot)
indindex of debug variable
valueDEBUG value Get field time_boot_ms from debug message
Returns
Timestamp (milliseconds since system boot)

Definition at line 217 of file mavlink_msg_debug.h.

static float mavlink_msg_debug_get_value ( const mavlink_message_t *  msg)
inlinestatic

Get field value from debug message.

Returns
DEBUG value

Definition at line 237 of file mavlink_msg_debug.h.

static uint16_t mavlink_msg_debug_pack ( uint8_t  system_id,
uint8_t  component_id,
mavlink_message_t *  msg,
uint32_t  time_boot_ms,
uint8_t  ind,
float  value 
)
inlinestatic

Pack a debug 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_msTimestamp (milliseconds since system boot)
indindex of debug variable
valueDEBUG value
Returns
length of the message in bytes (excluding serial stream start sign)

Definition at line 41 of file mavlink_msg_debug.h.

static uint16_t mavlink_msg_debug_pack_chan ( uint8_t  system_id,
uint8_t  component_id,
uint8_t  chan,
mavlink_message_t *  msg,
uint32_t  time_boot_ms,
uint8_t  ind,
float  value 
)
inlinestatic

Pack a debug 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_msTimestamp (milliseconds since system boot)
indindex of debug variable
valueDEBUG value
Returns
length of the message in bytes (excluding serial stream start sign)

Definition at line 79 of file mavlink_msg_debug.h.



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