Classes | Defines | 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

Defines

#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.
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.
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.
static uint8_t mavlink_msg_debug_get_ind (const mavlink_message_t *msg)
 Get field ind from debug message.
static uint32_t mavlink_msg_debug_get_time_boot_ms (const mavlink_message_t *msg)
 Send a debug message.
static float mavlink_msg_debug_get_value (const mavlink_message_t *msg)
 Get field value from debug message.
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.
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.

Define Documentation

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) }, \
         } \
}

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 
) [inline, static]

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 
) [inline, static]

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 
) [inline, static]

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) [inline, static]

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) [inline, static]

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) [inline, static]

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 
) [inline, static]

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 
) [inline, static]

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.



dji_sdk_dji2mav
Author(s):
autogenerated on Thu Jun 6 2019 17:55:35