3 #define MAVLINK_MSG_ID_TERRAIN_CHECK 135 11 #define MAVLINK_MSG_ID_TERRAIN_CHECK_LEN 8 12 #define MAVLINK_MSG_ID_135_LEN 8 14 #define MAVLINK_MSG_ID_TERRAIN_CHECK_CRC 203 15 #define MAVLINK_MSG_ID_135_CRC 203 19 #define MAVLINK_MESSAGE_INFO_TERRAIN_CHECK { \ 22 { { "lat", NULL, MAVLINK_TYPE_INT32_T, 0, 0, offsetof(mavlink_terrain_check_t, lat) }, \ 23 { "lon", NULL, MAVLINK_TYPE_INT32_T, 0, 4, offsetof(mavlink_terrain_check_t, lon) }, \ 41 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS 74 mavlink_message_t* msg,
77 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS 133 #ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS 137 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS 142 #if MAVLINK_CRC_EXTRA 152 #if MAVLINK_CRC_EXTRA 160 #if MAVLINK_MSG_ID_TERRAIN_CHECK_LEN <= MAVLINK_MAX_PAYLOAD_LEN 168 static inline void mavlink_msg_terrain_check_send_buf(mavlink_message_t *msgbuf,
mavlink_channel_t chan, int32_t
lat, int32_t
lon)
170 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS 171 char *buf = (
char *)msgbuf;
175 #if MAVLINK_CRC_EXTRA 185 #if MAVLINK_CRC_EXTRA 206 return _MAV_RETURN_int32_t(msg, 0);
216 return _MAV_RETURN_int32_t(msg, 4);
227 #if MAVLINK_NEED_BYTE_SWAP
#define MAVLINK_MSG_ID_TERRAIN_CHECK_CRC
struct __mavlink_terrain_check_t mavlink_terrain_check_t
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.
static uint16_t mavlink_msg_terrain_check_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t *msg, int32_t lat, int32_t lon)
Pack a terrain_check message on a channel.
#define _mav_put_int32_t(buf, wire_offset, b)
#define _MAV_PAYLOAD_NON_CONST(msg)
static int32_t mavlink_msg_terrain_check_get_lon(const mavlink_message_t *msg)
Get field lon from terrain_check message.
static void mavlink_msg_terrain_check_decode(const mavlink_message_t *msg, mavlink_terrain_check_t *terrain_check)
Decode a terrain_check message into a struct.
#define _MAV_PAYLOAD(msg)
static uint16_t mavlink_msg_terrain_check_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t *msg, const mavlink_terrain_check_t *terrain_check)
Encode a terrain_check struct.
#define MAVLINK_MSG_ID_TERRAIN_CHECK_LEN
static uint16_t mavlink_msg_terrain_check_encode_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t *msg, const mavlink_terrain_check_t *terrain_check)
Encode a terrain_check struct on a channel.
static int32_t mavlink_msg_terrain_check_get_lat(const mavlink_message_t *msg)
Send a terrain_check message.
static uint16_t mavlink_msg_terrain_check_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t *msg, int32_t lat, int32_t lon)
Pack a terrain_check message.
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 MAVLINK_MSG_ID_TERRAIN_CHECK