3 #define MAVLINK_MSG_ID_NAV_CONTROLLER_OUTPUT 62 17 #define MAVLINK_MSG_ID_NAV_CONTROLLER_OUTPUT_LEN 26 18 #define MAVLINK_MSG_ID_62_LEN 26 20 #define MAVLINK_MSG_ID_NAV_CONTROLLER_OUTPUT_CRC 183 21 #define MAVLINK_MSG_ID_62_CRC 183 25 #define MAVLINK_MESSAGE_INFO_NAV_CONTROLLER_OUTPUT { \ 26 "NAV_CONTROLLER_OUTPUT", \ 28 { { "nav_roll", NULL, MAVLINK_TYPE_FLOAT, 0, 0, offsetof(mavlink_nav_controller_output_t, nav_roll) }, \ 29 { "nav_pitch", NULL, MAVLINK_TYPE_FLOAT, 0, 4, offsetof(mavlink_nav_controller_output_t, nav_pitch) }, \ 30 { "alt_error", NULL, MAVLINK_TYPE_FLOAT, 0, 8, offsetof(mavlink_nav_controller_output_t, alt_error) }, \ 31 { "aspd_error", NULL, MAVLINK_TYPE_FLOAT, 0, 12, offsetof(mavlink_nav_controller_output_t, aspd_error) }, \ 32 { "xtrack_error", NULL, MAVLINK_TYPE_FLOAT, 0, 16, offsetof(mavlink_nav_controller_output_t, xtrack_error) }, \ 33 { "nav_bearing", NULL, MAVLINK_TYPE_INT16_T, 0, 20, offsetof(mavlink_nav_controller_output_t, nav_bearing) }, \ 34 { "target_bearing", NULL, MAVLINK_TYPE_INT16_T, 0, 22, offsetof(mavlink_nav_controller_output_t, target_bearing) }, \ 35 { "wp_dist", NULL, MAVLINK_TYPE_UINT16_T, 0, 24, offsetof(mavlink_nav_controller_output_t, wp_dist) }, \ 59 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS 110 mavlink_message_t* msg,
113 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS 140 #if MAVLINK_CRC_EXTRA 157 return mavlink_msg_nav_controller_output_pack(system_id, component_id, msg, nav_controller_output->
nav_roll, nav_controller_output->
nav_pitch, nav_controller_output->
nav_bearing, nav_controller_output->
target_bearing, nav_controller_output->
wp_dist, nav_controller_output->
alt_error, nav_controller_output->
aspd_error, nav_controller_output->
xtrack_error);
171 return mavlink_msg_nav_controller_output_pack_chan(system_id, component_id, chan, msg, nav_controller_output->
nav_roll, nav_controller_output->
nav_pitch, nav_controller_output->
nav_bearing, nav_controller_output->
target_bearing, nav_controller_output->
wp_dist, nav_controller_output->
alt_error, nav_controller_output->
aspd_error, nav_controller_output->
xtrack_error);
187 #ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS 191 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS 202 #if MAVLINK_CRC_EXTRA 218 #if MAVLINK_CRC_EXTRA 226 #if MAVLINK_MSG_ID_NAV_CONTROLLER_OUTPUT_LEN <= MAVLINK_MAX_PAYLOAD_LEN 236 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS 237 char *buf = (
char *)msgbuf;
247 #if MAVLINK_CRC_EXTRA 263 #if MAVLINK_CRC_EXTRA 284 return _MAV_RETURN_float(msg, 0);
294 return _MAV_RETURN_float(msg, 4);
304 return _MAV_RETURN_int16_t(msg, 20);
314 return _MAV_RETURN_int16_t(msg, 22);
324 return _MAV_RETURN_uint16_t(msg, 24);
334 return _MAV_RETURN_float(msg, 8);
344 return _MAV_RETURN_float(msg, 12);
354 return _MAV_RETURN_float(msg, 16);
365 #if MAVLINK_NEED_BYTE_SWAP #define _mav_put_float(buf, wire_offset, b)
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.
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.
MAVLINK_HELPER uint16_t mavlink_finalize_message(mavlink_message_t *msg, uint8_t system_id, uint8_t component_id, uint8_t length)
Finalize a MAVLink message with MAVLINK_COMM_0 as default channel.
#define MAVLINK_MSG_ID_NAV_CONTROLLER_OUTPUT_CRC
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.
#define _MAV_PAYLOAD_NON_CONST(msg)
struct __mavlink_nav_controller_output_t mavlink_nav_controller_output_t
#define _MAV_PAYLOAD(msg)
#define MAVLINK_MSG_ID_NAV_CONTROLLER_OUTPUT
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.
static float mavlink_msg_nav_controller_output_get_aspd_error(const mavlink_message_t *msg)
Get field aspd_error from nav_controller_output message.
static float mavlink_msg_nav_controller_output_get_nav_pitch(const mavlink_message_t *msg)
Get field nav_pitch from nav_controller_output message.
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.
#define MAVLINK_MSG_ID_NAV_CONTROLLER_OUTPUT_LEN
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.
static float mavlink_msg_nav_controller_output_get_xtrack_error(const mavlink_message_t *msg)
Get field xtrack_error from nav_controller_output message.
static float mavlink_msg_nav_controller_output_get_alt_error(const mavlink_message_t *msg)
Get field alt_error from nav_controller_output message.
static float mavlink_msg_nav_controller_output_get_nav_roll(const mavlink_message_t *msg)
Send a nav_controller_output message.
#define _mav_put_uint16_t(buf, wire_offset, b)
MAVLINK_HELPER uint16_t mavlink_finalize_message_chan(mavlink_message_t *msg, uint8_t system_id, uint8_t component_id, uint8_t chan, uint8_t length)
Finalize a MAVLink message with channel assignment.
#define _mav_put_int16_t(buf, wire_offset, b)
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.
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.