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) }, \
38 static inline uint16_t mavlink_msg_terrain_check_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
39 int32_t lat, int32_t lon)
41 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
73 static inline uint16_t mavlink_msg_terrain_check_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan,
74 mavlink_message_t* msg,
75 int32_t lat,int32_t lon)
77 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
107 static inline 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)
109 return mavlink_msg_terrain_check_pack(system_id, component_id, msg, terrain_check->
lat, terrain_check->
lon);
121 static inline 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)
123 return mavlink_msg_terrain_check_pack_chan(system_id, component_id, chan, msg, terrain_check->
lat, terrain_check->
lon);
133 #ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS
135 static inline void mavlink_msg_terrain_check_send(
mavlink_channel_t chan, int32_t lat, int32_t lon)
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
204 static inline int32_t mavlink_msg_terrain_check_get_lat(
const mavlink_message_t* msg)
206 return _MAV_RETURN_int32_t(msg, 0);
214 static inline int32_t mavlink_msg_terrain_check_get_lon(
const mavlink_message_t* msg)
216 return _MAV_RETURN_int32_t(msg, 4);
225 static inline void mavlink_msg_terrain_check_decode(
const mavlink_message_t* msg,
mavlink_terrain_check_t* terrain_check)
227 #if MAVLINK_NEED_BYTE_SWAP
228 terrain_check->
lat = mavlink_msg_terrain_check_get_lat(msg);
229 terrain_check->
lon = mavlink_msg_terrain_check_get_lon(msg);
int32_t lat
Latitude (degrees *10^7)
Definition: mavlink_msg_terrain_check.h:7
#define MAVLINK_MSG_ID_TERRAIN_CHECK_CRC
Definition: mavlink_msg_terrain_check.h:14
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.
Definition: mavlink_helpers.h:105
#define _mav_put_int32_t(buf, wire_offset, b)
Definition: protocol.h:142
#define _MAV_PAYLOAD_NON_CONST(msg)
Definition: mavlink_types.h:172
mavlink_channel_t
Definition: mavlink_types.h:178
#define _MAV_PAYLOAD(msg)
Definition: mavlink_types.h:171
#define MAVLINK_MSG_ID_TERRAIN_CHECK_LEN
Definition: mavlink_msg_terrain_check.h:11
int32_t lon
Longitude (degrees *10^7)
Definition: mavlink_msg_terrain_check.h:8
Definition: mavlink_msg_terrain_check.h:5
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.
Definition: mavlink_helpers.h:71
#define MAVLINK_MSG_ID_TERRAIN_CHECK
Definition: mavlink_msg_terrain_check.h:3