4#define MAVLINK_MSG_ID_SLUGS_MOBILE_LOCATION 186
7typedef struct __mavlink_slugs_mobile_location_t {
11}) mavlink_slugs_mobile_location_t;
13#define MAVLINK_MSG_ID_SLUGS_MOBILE_LOCATION_LEN 9
14#define MAVLINK_MSG_ID_SLUGS_MOBILE_LOCATION_MIN_LEN 9
15#define MAVLINK_MSG_ID_186_LEN 9
16#define MAVLINK_MSG_ID_186_MIN_LEN 9
18#define MAVLINK_MSG_ID_SLUGS_MOBILE_LOCATION_CRC 101
19#define MAVLINK_MSG_ID_186_CRC 101
23#if MAVLINK_COMMAND_24BIT
24#define MAVLINK_MESSAGE_INFO_SLUGS_MOBILE_LOCATION { \
26 "SLUGS_MOBILE_LOCATION", \
28 { { "target", NULL, MAVLINK_TYPE_UINT8_T, 0, 8, offsetof(mavlink_slugs_mobile_location_t, target) }, \
29 { "latitude", NULL, MAVLINK_TYPE_FLOAT, 0, 0, offsetof(mavlink_slugs_mobile_location_t, latitude) }, \
30 { "longitude", NULL, MAVLINK_TYPE_FLOAT, 0, 4, offsetof(mavlink_slugs_mobile_location_t, longitude) }, \
34#define MAVLINK_MESSAGE_INFO_SLUGS_MOBILE_LOCATION { \
35 "SLUGS_MOBILE_LOCATION", \
37 { { "target", NULL, MAVLINK_TYPE_UINT8_T, 0, 8, offsetof(mavlink_slugs_mobile_location_t, target) }, \
38 { "latitude", NULL, MAVLINK_TYPE_FLOAT, 0, 0, offsetof(mavlink_slugs_mobile_location_t, latitude) }, \
39 { "longitude", NULL, MAVLINK_TYPE_FLOAT, 0, 4, offsetof(mavlink_slugs_mobile_location_t, longitude) }, \
55static inline uint16_t mavlink_msg_slugs_mobile_location_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
56 uint8_t target,
float latitude,
float longitude)
58#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
59 char buf[MAVLINK_MSG_ID_SLUGS_MOBILE_LOCATION_LEN];
60 _mav_put_float(buf, 0, latitude);
61 _mav_put_float(buf, 4, longitude);
62 _mav_put_uint8_t(buf, 8, target);
64 memcpy(_MAV_PAYLOAD_NON_CONST(msg), buf, MAVLINK_MSG_ID_SLUGS_MOBILE_LOCATION_LEN);
66 mavlink_slugs_mobile_location_t packet;
67 packet.latitude = latitude;
68 packet.longitude = longitude;
69 packet.target = target;
71 memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_SLUGS_MOBILE_LOCATION_LEN);
74 msg->msgid = MAVLINK_MSG_ID_SLUGS_MOBILE_LOCATION;
75 return mavlink_finalize_message(msg, system_id, component_id, MAVLINK_MSG_ID_SLUGS_MOBILE_LOCATION_MIN_LEN, MAVLINK_MSG_ID_SLUGS_MOBILE_LOCATION_LEN, MAVLINK_MSG_ID_SLUGS_MOBILE_LOCATION_CRC);
89static inline uint16_t mavlink_msg_slugs_mobile_location_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan,
90 mavlink_message_t* msg,
91 uint8_t target,
float latitude,
float longitude)
93#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
94 char buf[MAVLINK_MSG_ID_SLUGS_MOBILE_LOCATION_LEN];
95 _mav_put_float(buf, 0, latitude);
96 _mav_put_float(buf, 4, longitude);
97 _mav_put_uint8_t(buf, 8, target);
99 memcpy(_MAV_PAYLOAD_NON_CONST(msg), buf, MAVLINK_MSG_ID_SLUGS_MOBILE_LOCATION_LEN);
101 mavlink_slugs_mobile_location_t packet;
102 packet.latitude = latitude;
103 packet.longitude = longitude;
104 packet.target = target;
106 memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_SLUGS_MOBILE_LOCATION_LEN);
109 msg->msgid = MAVLINK_MSG_ID_SLUGS_MOBILE_LOCATION;
110 return mavlink_finalize_message_chan(msg, system_id, component_id, chan, MAVLINK_MSG_ID_SLUGS_MOBILE_LOCATION_MIN_LEN, MAVLINK_MSG_ID_SLUGS_MOBILE_LOCATION_LEN, MAVLINK_MSG_ID_SLUGS_MOBILE_LOCATION_CRC);
121static inline uint16_t mavlink_msg_slugs_mobile_location_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
const mavlink_slugs_mobile_location_t* slugs_mobile_location)
123 return mavlink_msg_slugs_mobile_location_pack(system_id, component_id, msg, slugs_mobile_location->target, slugs_mobile_location->latitude, slugs_mobile_location->longitude);
135static inline uint16_t mavlink_msg_slugs_mobile_location_encode_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t* msg,
const mavlink_slugs_mobile_location_t* slugs_mobile_location)
137 return mavlink_msg_slugs_mobile_location_pack_chan(system_id, component_id, chan, msg, slugs_mobile_location->target, slugs_mobile_location->latitude, slugs_mobile_location->longitude);
148#ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS
150static inline void mavlink_msg_slugs_mobile_location_send(mavlink_channel_t chan, uint8_t target,
float latitude,
float longitude)
152#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
153 char buf[MAVLINK_MSG_ID_SLUGS_MOBILE_LOCATION_LEN];
154 _mav_put_float(buf, 0, latitude);
155 _mav_put_float(buf, 4, longitude);
156 _mav_put_uint8_t(buf, 8, target);
158 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_SLUGS_MOBILE_LOCATION, buf, MAVLINK_MSG_ID_SLUGS_MOBILE_LOCATION_MIN_LEN, MAVLINK_MSG_ID_SLUGS_MOBILE_LOCATION_LEN, MAVLINK_MSG_ID_SLUGS_MOBILE_LOCATION_CRC);
160 mavlink_slugs_mobile_location_t packet;
161 packet.latitude = latitude;
162 packet.longitude = longitude;
163 packet.target = target;
165 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_SLUGS_MOBILE_LOCATION, (
const char *)&packet, MAVLINK_MSG_ID_SLUGS_MOBILE_LOCATION_MIN_LEN, MAVLINK_MSG_ID_SLUGS_MOBILE_LOCATION_LEN, MAVLINK_MSG_ID_SLUGS_MOBILE_LOCATION_CRC);
174static inline void mavlink_msg_slugs_mobile_location_send_struct(mavlink_channel_t chan,
const mavlink_slugs_mobile_location_t* slugs_mobile_location)
176#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
177 mavlink_msg_slugs_mobile_location_send(chan, slugs_mobile_location->target, slugs_mobile_location->latitude, slugs_mobile_location->longitude);
179 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_SLUGS_MOBILE_LOCATION, (
const char *)slugs_mobile_location, MAVLINK_MSG_ID_SLUGS_MOBILE_LOCATION_MIN_LEN, MAVLINK_MSG_ID_SLUGS_MOBILE_LOCATION_LEN, MAVLINK_MSG_ID_SLUGS_MOBILE_LOCATION_CRC);
183#if MAVLINK_MSG_ID_SLUGS_MOBILE_LOCATION_LEN <= MAVLINK_MAX_PAYLOAD_LEN
191static inline void mavlink_msg_slugs_mobile_location_send_buf(mavlink_message_t *msgbuf, mavlink_channel_t chan, uint8_t target,
float latitude,
float longitude)
193#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
194 char *buf = (
char *)msgbuf;
195 _mav_put_float(buf, 0, latitude);
196 _mav_put_float(buf, 4, longitude);
197 _mav_put_uint8_t(buf, 8, target);
199 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_SLUGS_MOBILE_LOCATION, buf, MAVLINK_MSG_ID_SLUGS_MOBILE_LOCATION_MIN_LEN, MAVLINK_MSG_ID_SLUGS_MOBILE_LOCATION_LEN, MAVLINK_MSG_ID_SLUGS_MOBILE_LOCATION_CRC);
201 mavlink_slugs_mobile_location_t *packet = (mavlink_slugs_mobile_location_t *)msgbuf;
202 packet->latitude = latitude;
203 packet->longitude = longitude;
204 packet->target = target;
206 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_SLUGS_MOBILE_LOCATION, (
const char *)packet, MAVLINK_MSG_ID_SLUGS_MOBILE_LOCATION_MIN_LEN, MAVLINK_MSG_ID_SLUGS_MOBILE_LOCATION_LEN, MAVLINK_MSG_ID_SLUGS_MOBILE_LOCATION_CRC);
221static inline uint8_t mavlink_msg_slugs_mobile_location_get_target(
const mavlink_message_t* msg)
223 return _MAV_RETURN_uint8_t(msg, 8);
231static inline float mavlink_msg_slugs_mobile_location_get_latitude(
const mavlink_message_t* msg)
233 return _MAV_RETURN_float(msg, 0);
241static inline float mavlink_msg_slugs_mobile_location_get_longitude(
const mavlink_message_t* msg)
243 return _MAV_RETURN_float(msg, 4);
252static inline void mavlink_msg_slugs_mobile_location_decode(
const mavlink_message_t* msg, mavlink_slugs_mobile_location_t* slugs_mobile_location)
254#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
255 slugs_mobile_location->latitude = mavlink_msg_slugs_mobile_location_get_latitude(msg);
256 slugs_mobile_location->longitude = mavlink_msg_slugs_mobile_location_get_longitude(msg);
257 slugs_mobile_location->target = mavlink_msg_slugs_mobile_location_get_target(msg);
259 uint8_t len = msg->len < MAVLINK_MSG_ID_SLUGS_MOBILE_LOCATION_LEN? msg->len : MAVLINK_MSG_ID_SLUGS_MOBILE_LOCATION_LEN;
260 memset(slugs_mobile_location, 0, MAVLINK_MSG_ID_SLUGS_MOBILE_LOCATION_LEN);
261 memcpy(slugs_mobile_location, _MAV_PAYLOAD(msg), len);