Classes | Macros | Typedefs | Functions
mavlink_msg_nav_controller_output.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_nav_controller_output_t
 

Macros

#define MAVLINK_MESSAGE_INFO_NAV_CONTROLLER_OUTPUT
 
#define MAVLINK_MSG_ID_62_CRC   183
 
#define MAVLINK_MSG_ID_62_LEN   26
 
#define MAVLINK_MSG_ID_NAV_CONTROLLER_OUTPUT   62
 
#define MAVLINK_MSG_ID_NAV_CONTROLLER_OUTPUT_CRC   183
 
#define MAVLINK_MSG_ID_NAV_CONTROLLER_OUTPUT_LEN   26
 

Typedefs

typedef struct __mavlink_nav_controller_output_t mavlink_nav_controller_output_t
 

Functions

static void mavlink_msg_nav_controller_output_decode (const mavlink_message_t *msg, mavlink_nav_controller_output_t *nav_controller_output)
 Decode a nav_controller_output message into a struct. More...
 
static uint16_t mavlink_msg_nav_controller_output_encode (uint8_t system_id, uint8_t component_id, mavlink_message_t *msg, const mavlink_nav_controller_output_t *nav_controller_output)
 Encode a nav_controller_output struct. More...
 
static uint16_t mavlink_msg_nav_controller_output_encode_chan (uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t *msg, const mavlink_nav_controller_output_t *nav_controller_output)
 Encode a nav_controller_output struct on a channel. More...
 
static float mavlink_msg_nav_controller_output_get_alt_error (const mavlink_message_t *msg)
 Get field alt_error from nav_controller_output message. More...
 
static float mavlink_msg_nav_controller_output_get_aspd_error (const mavlink_message_t *msg)
 Get field aspd_error from nav_controller_output message. More...
 
static int16_t mavlink_msg_nav_controller_output_get_nav_bearing (const mavlink_message_t *msg)
 Get field nav_bearing from nav_controller_output message. More...
 
static float mavlink_msg_nav_controller_output_get_nav_pitch (const mavlink_message_t *msg)
 Get field nav_pitch from nav_controller_output message. More...
 
static float mavlink_msg_nav_controller_output_get_nav_roll (const mavlink_message_t *msg)
 Send a nav_controller_output message. More...
 
static int16_t mavlink_msg_nav_controller_output_get_target_bearing (const mavlink_message_t *msg)
 Get field target_bearing from nav_controller_output message. More...
 
static uint16_t mavlink_msg_nav_controller_output_get_wp_dist (const mavlink_message_t *msg)
 Get field wp_dist from nav_controller_output message. More...
 
static float mavlink_msg_nav_controller_output_get_xtrack_error (const mavlink_message_t *msg)
 Get field xtrack_error from nav_controller_output message. More...
 
static uint16_t mavlink_msg_nav_controller_output_pack (uint8_t system_id, uint8_t component_id, mavlink_message_t *msg, float nav_roll, float nav_pitch, int16_t nav_bearing, int16_t target_bearing, uint16_t wp_dist, float alt_error, float aspd_error, float xtrack_error)
 Pack a nav_controller_output message. More...
 
static uint16_t mavlink_msg_nav_controller_output_pack_chan (uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t *msg, float nav_roll, float nav_pitch, int16_t nav_bearing, int16_t target_bearing, uint16_t wp_dist, float alt_error, float aspd_error, float xtrack_error)
 Pack a nav_controller_output message on a channel. More...
 

Macro Definition Documentation

#define MAVLINK_MESSAGE_INFO_NAV_CONTROLLER_OUTPUT
Value:
{ \
"NAV_CONTROLLER_OUTPUT", \
8, \
{ { "nav_roll", NULL, MAVLINK_TYPE_FLOAT, 0, 0, offsetof(mavlink_nav_controller_output_t, nav_roll) }, \
{ "nav_pitch", NULL, MAVLINK_TYPE_FLOAT, 0, 4, offsetof(mavlink_nav_controller_output_t, nav_pitch) }, \
{ "alt_error", NULL, MAVLINK_TYPE_FLOAT, 0, 8, offsetof(mavlink_nav_controller_output_t, alt_error) }, \
{ "aspd_error", NULL, MAVLINK_TYPE_FLOAT, 0, 12, offsetof(mavlink_nav_controller_output_t, aspd_error) }, \
{ "xtrack_error", NULL, MAVLINK_TYPE_FLOAT, 0, 16, offsetof(mavlink_nav_controller_output_t, xtrack_error) }, \
{ "nav_bearing", NULL, MAVLINK_TYPE_INT16_T, 0, 20, offsetof(mavlink_nav_controller_output_t, nav_bearing) }, \
{ "target_bearing", NULL, MAVLINK_TYPE_INT16_T, 0, 22, offsetof(mavlink_nav_controller_output_t, target_bearing) }, \
{ "wp_dist", NULL, MAVLINK_TYPE_UINT16_T, 0, 24, offsetof(mavlink_nav_controller_output_t, wp_dist) }, \
} \
}
#define NULL
Definition: usbd_def.h:50

Definition at line 25 of file mavlink_msg_nav_controller_output.h.

#define MAVLINK_MSG_ID_62_CRC   183

Definition at line 21 of file mavlink_msg_nav_controller_output.h.

#define MAVLINK_MSG_ID_62_LEN   26

Definition at line 18 of file mavlink_msg_nav_controller_output.h.

#define MAVLINK_MSG_ID_NAV_CONTROLLER_OUTPUT   62

Definition at line 3 of file mavlink_msg_nav_controller_output.h.

#define MAVLINK_MSG_ID_NAV_CONTROLLER_OUTPUT_CRC   183

Definition at line 20 of file mavlink_msg_nav_controller_output.h.

#define MAVLINK_MSG_ID_NAV_CONTROLLER_OUTPUT_LEN   26

Definition at line 17 of file mavlink_msg_nav_controller_output.h.

Typedef Documentation

Function Documentation

static void mavlink_msg_nav_controller_output_decode ( const mavlink_message_t *  msg,
mavlink_nav_controller_output_t nav_controller_output 
)
inlinestatic

Decode a nav_controller_output message into a struct.

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

Definition at line 363 of file mavlink_msg_nav_controller_output.h.

static uint16_t mavlink_msg_nav_controller_output_encode ( uint8_t  system_id,
uint8_t  component_id,
mavlink_message_t *  msg,
const mavlink_nav_controller_output_t nav_controller_output 
)
inlinestatic

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

Definition at line 155 of file mavlink_msg_nav_controller_output.h.

static uint16_t mavlink_msg_nav_controller_output_encode_chan ( uint8_t  system_id,
uint8_t  component_id,
uint8_t  chan,
mavlink_message_t *  msg,
const mavlink_nav_controller_output_t nav_controller_output 
)
inlinestatic

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

Definition at line 169 of file mavlink_msg_nav_controller_output.h.

static float mavlink_msg_nav_controller_output_get_alt_error ( const mavlink_message_t *  msg)
inlinestatic

Get field alt_error from nav_controller_output message.

Returns
Current altitude error in meters

Definition at line 332 of file mavlink_msg_nav_controller_output.h.

static float mavlink_msg_nav_controller_output_get_aspd_error ( const mavlink_message_t *  msg)
inlinestatic

Get field aspd_error from nav_controller_output message.

Returns
Current airspeed error in meters/second

Definition at line 342 of file mavlink_msg_nav_controller_output.h.

static int16_t mavlink_msg_nav_controller_output_get_nav_bearing ( const mavlink_message_t *  msg)
inlinestatic

Get field nav_bearing from nav_controller_output message.

Returns
Current desired heading in degrees

Definition at line 302 of file mavlink_msg_nav_controller_output.h.

static float mavlink_msg_nav_controller_output_get_nav_pitch ( const mavlink_message_t *  msg)
inlinestatic

Get field nav_pitch from nav_controller_output message.

Returns
Current desired pitch in degrees

Definition at line 292 of file mavlink_msg_nav_controller_output.h.

static float mavlink_msg_nav_controller_output_get_nav_roll ( const mavlink_message_t *  msg)
inlinestatic

Send a nav_controller_output message.

Parameters
chanMAVLink channel to send the message
nav_rollCurrent desired roll in degrees
nav_pitchCurrent desired pitch in degrees
nav_bearingCurrent desired heading in degrees
target_bearingBearing to current MISSION/target in degrees
wp_distDistance to active MISSION in meters
alt_errorCurrent altitude error in meters
aspd_errorCurrent airspeed error in meters/second
xtrack_errorCurrent crosstrack error on x-y plane in meters Get field nav_roll from nav_controller_output message
Returns
Current desired roll in degrees

Definition at line 282 of file mavlink_msg_nav_controller_output.h.

static int16_t mavlink_msg_nav_controller_output_get_target_bearing ( const mavlink_message_t *  msg)
inlinestatic

Get field target_bearing from nav_controller_output message.

Returns
Bearing to current MISSION/target in degrees

Definition at line 312 of file mavlink_msg_nav_controller_output.h.

static uint16_t mavlink_msg_nav_controller_output_get_wp_dist ( const mavlink_message_t *  msg)
inlinestatic

Get field wp_dist from nav_controller_output message.

Returns
Distance to active MISSION in meters

Definition at line 322 of file mavlink_msg_nav_controller_output.h.

static float mavlink_msg_nav_controller_output_get_xtrack_error ( const mavlink_message_t *  msg)
inlinestatic

Get field xtrack_error from nav_controller_output message.

Returns
Current crosstrack error on x-y plane in meters

Definition at line 352 of file mavlink_msg_nav_controller_output.h.

static uint16_t mavlink_msg_nav_controller_output_pack ( uint8_t  system_id,
uint8_t  component_id,
mavlink_message_t *  msg,
float  nav_roll,
float  nav_pitch,
int16_t  nav_bearing,
int16_t  target_bearing,
uint16_t  wp_dist,
float  alt_error,
float  aspd_error,
float  xtrack_error 
)
inlinestatic

Pack a nav_controller_output 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
nav_rollCurrent desired roll in degrees
nav_pitchCurrent desired pitch in degrees
nav_bearingCurrent desired heading in degrees
target_bearingBearing to current MISSION/target in degrees
wp_distDistance to active MISSION in meters
alt_errorCurrent altitude error in meters
aspd_errorCurrent airspeed error in meters/second
xtrack_errorCurrent crosstrack error on x-y plane in meters
Returns
length of the message in bytes (excluding serial stream start sign)

Definition at line 56 of file mavlink_msg_nav_controller_output.h.

static uint16_t mavlink_msg_nav_controller_output_pack_chan ( uint8_t  system_id,
uint8_t  component_id,
uint8_t  chan,
mavlink_message_t *  msg,
float  nav_roll,
float  nav_pitch,
int16_t  nav_bearing,
int16_t  target_bearing,
uint16_t  wp_dist,
float  alt_error,
float  aspd_error,
float  xtrack_error 
)
inlinestatic

Pack a nav_controller_output 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
nav_rollCurrent desired roll in degrees
nav_pitchCurrent desired pitch in degrees
nav_bearingCurrent desired heading in degrees
target_bearingBearing to current MISSION/target in degrees
wp_distDistance to active MISSION in meters
alt_errorCurrent altitude error in meters
aspd_errorCurrent airspeed error in meters/second
xtrack_errorCurrent crosstrack error on x-y plane in meters
Returns
length of the message in bytes (excluding serial stream start sign)

Definition at line 109 of file mavlink_msg_nav_controller_output.h.



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