Classes | Macros | Typedefs | Functions
mavlink_msg_extended_sys_state.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_extended_sys_state_t
 

Macros

#define MAVLINK_MESSAGE_INFO_EXTENDED_SYS_STATE
 
#define MAVLINK_MSG_ID_245_CRC   130
 
#define MAVLINK_MSG_ID_245_LEN   2
 
#define MAVLINK_MSG_ID_EXTENDED_SYS_STATE   245
 
#define MAVLINK_MSG_ID_EXTENDED_SYS_STATE_CRC   130
 
#define MAVLINK_MSG_ID_EXTENDED_SYS_STATE_LEN   2
 

Typedefs

typedef struct __mavlink_extended_sys_state_t mavlink_extended_sys_state_t
 

Functions

static void mavlink_msg_extended_sys_state_decode (const mavlink_message_t *msg, mavlink_extended_sys_state_t *extended_sys_state)
 Decode a extended_sys_state message into a struct. More...
 
static uint16_t mavlink_msg_extended_sys_state_encode (uint8_t system_id, uint8_t component_id, mavlink_message_t *msg, const mavlink_extended_sys_state_t *extended_sys_state)
 Encode a extended_sys_state struct. More...
 
static uint16_t mavlink_msg_extended_sys_state_encode_chan (uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t *msg, const mavlink_extended_sys_state_t *extended_sys_state)
 Encode a extended_sys_state struct on a channel. More...
 
static uint8_t mavlink_msg_extended_sys_state_get_landed_state (const mavlink_message_t *msg)
 Get field landed_state from extended_sys_state message. More...
 
static uint8_t mavlink_msg_extended_sys_state_get_vtol_state (const mavlink_message_t *msg)
 Send a extended_sys_state message. More...
 
static uint16_t mavlink_msg_extended_sys_state_pack (uint8_t system_id, uint8_t component_id, mavlink_message_t *msg, uint8_t vtol_state, uint8_t landed_state)
 Pack a extended_sys_state message. More...
 
static uint16_t mavlink_msg_extended_sys_state_pack_chan (uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t *msg, uint8_t vtol_state, uint8_t landed_state)
 Pack a extended_sys_state message on a channel. More...
 

Macro Definition Documentation

#define MAVLINK_MESSAGE_INFO_EXTENDED_SYS_STATE
Value:
{ \
"EXTENDED_SYS_STATE", \
2, \
{ { "vtol_state", NULL, MAVLINK_TYPE_UINT8_T, 0, 0, offsetof(mavlink_extended_sys_state_t, vtol_state) }, \
{ "landed_state", NULL, MAVLINK_TYPE_UINT8_T, 0, 1, offsetof(mavlink_extended_sys_state_t, landed_state) }, \
} \
}
#define NULL
Definition: usbd_def.h:50

Definition at line 19 of file mavlink_msg_extended_sys_state.h.

#define MAVLINK_MSG_ID_245_CRC   130

Definition at line 15 of file mavlink_msg_extended_sys_state.h.

#define MAVLINK_MSG_ID_245_LEN   2

Definition at line 12 of file mavlink_msg_extended_sys_state.h.

#define MAVLINK_MSG_ID_EXTENDED_SYS_STATE   245

Definition at line 3 of file mavlink_msg_extended_sys_state.h.

#define MAVLINK_MSG_ID_EXTENDED_SYS_STATE_CRC   130

Definition at line 14 of file mavlink_msg_extended_sys_state.h.

#define MAVLINK_MSG_ID_EXTENDED_SYS_STATE_LEN   2

Definition at line 11 of file mavlink_msg_extended_sys_state.h.

Typedef Documentation

Function Documentation

static void mavlink_msg_extended_sys_state_decode ( const mavlink_message_t *  msg,
mavlink_extended_sys_state_t extended_sys_state 
)
inlinestatic

Decode a extended_sys_state message into a struct.

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

Definition at line 225 of file mavlink_msg_extended_sys_state.h.

static uint16_t mavlink_msg_extended_sys_state_encode ( uint8_t  system_id,
uint8_t  component_id,
mavlink_message_t *  msg,
const mavlink_extended_sys_state_t extended_sys_state 
)
inlinestatic

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

Definition at line 107 of file mavlink_msg_extended_sys_state.h.

static uint16_t mavlink_msg_extended_sys_state_encode_chan ( uint8_t  system_id,
uint8_t  component_id,
uint8_t  chan,
mavlink_message_t *  msg,
const mavlink_extended_sys_state_t extended_sys_state 
)
inlinestatic

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

Definition at line 121 of file mavlink_msg_extended_sys_state.h.

static uint8_t mavlink_msg_extended_sys_state_get_landed_state ( const mavlink_message_t *  msg)
inlinestatic

Get field landed_state from extended_sys_state message.

Returns
The landed state. Is set to MAV_LANDED_STATE_UNDEFINED if landed state is unknown.

Definition at line 214 of file mavlink_msg_extended_sys_state.h.

static uint8_t mavlink_msg_extended_sys_state_get_vtol_state ( const mavlink_message_t *  msg)
inlinestatic

Send a extended_sys_state message.

Parameters
chanMAVLink channel to send the message
vtol_stateThe VTOL state if applicable. Is set to MAV_VTOL_STATE_UNDEFINED if UAV is not in VTOL configuration.
landed_stateThe landed state. Is set to MAV_LANDED_STATE_UNDEFINED if landed state is unknown. Get field vtol_state from extended_sys_state message
Returns
The VTOL state if applicable. Is set to MAV_VTOL_STATE_UNDEFINED if UAV is not in VTOL configuration.

Definition at line 204 of file mavlink_msg_extended_sys_state.h.

static uint16_t mavlink_msg_extended_sys_state_pack ( uint8_t  system_id,
uint8_t  component_id,
mavlink_message_t *  msg,
uint8_t  vtol_state,
uint8_t  landed_state 
)
inlinestatic

Pack a extended_sys_state 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
vtol_stateThe VTOL state if applicable. Is set to MAV_VTOL_STATE_UNDEFINED if UAV is not in VTOL configuration.
landed_stateThe landed state. Is set to MAV_LANDED_STATE_UNDEFINED if landed state is unknown.
Returns
length of the message in bytes (excluding serial stream start sign)

Definition at line 38 of file mavlink_msg_extended_sys_state.h.

static uint16_t mavlink_msg_extended_sys_state_pack_chan ( uint8_t  system_id,
uint8_t  component_id,
uint8_t  chan,
mavlink_message_t *  msg,
uint8_t  vtol_state,
uint8_t  landed_state 
)
inlinestatic

Pack a extended_sys_state 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
vtol_stateThe VTOL state if applicable. Is set to MAV_VTOL_STATE_UNDEFINED if UAV is not in VTOL configuration.
landed_stateThe landed state. Is set to MAV_LANDED_STATE_UNDEFINED if landed state is unknown.
Returns
length of the message in bytes (excluding serial stream start sign)

Definition at line 73 of file mavlink_msg_extended_sys_state.h.



rosflight_firmware
Author(s): Daniel Koch , James Jackson
autogenerated on Thu Oct 24 2019 03:17:20