3 #define MAVLINK_MSG_ID_POINT_OF_INTEREST 191
17 #define MAVLINK_MSG_ID_POINT_OF_INTEREST_LEN 43
18 #define MAVLINK_MSG_ID_191_LEN 43
20 #define MAVLINK_MSG_ID_POINT_OF_INTEREST_CRC 95
21 #define MAVLINK_MSG_ID_191_CRC 95
23 #define MAVLINK_MSG_POINT_OF_INTEREST_FIELD_NAME_LEN 26
25 #define MAVLINK_MESSAGE_INFO_POINT_OF_INTEREST { \
26 "POINT_OF_INTEREST", \
28 { { "x", NULL, MAVLINK_TYPE_FLOAT, 0, 0, offsetof(mavlink_point_of_interest_t, x) }, \
29 { "y", NULL, MAVLINK_TYPE_FLOAT, 0, 4, offsetof(mavlink_point_of_interest_t, y) }, \
30 { "z", NULL, MAVLINK_TYPE_FLOAT, 0, 8, offsetof(mavlink_point_of_interest_t, z) }, \
31 { "timeout", NULL, MAVLINK_TYPE_UINT16_T, 0, 12, offsetof(mavlink_point_of_interest_t, timeout) }, \
32 { "type", NULL, MAVLINK_TYPE_UINT8_T, 0, 14, offsetof(mavlink_point_of_interest_t, type) }, \
33 { "color", NULL, MAVLINK_TYPE_UINT8_T, 0, 15, offsetof(mavlink_point_of_interest_t, color) }, \
34 { "coordinate_system", NULL, MAVLINK_TYPE_UINT8_T, 0, 16, offsetof(mavlink_point_of_interest_t, coordinate_system) }, \
35 { "name", NULL, MAVLINK_TYPE_CHAR, 26, 17, offsetof(mavlink_point_of_interest_t, name) }, \
56 static inline uint16_t mavlink_msg_point_of_interest_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
57 uint8_t
type, uint8_t
color, uint8_t coordinate_system, uint16_t timeout,
float x,
float y,
float z,
const char *name)
59 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
68 _mav_put_char_array(buf, 17, name, 26);
79 mav_array_memcpy(packet.
name, name,
sizeof(
char)*26);
107 static inline uint16_t mavlink_msg_point_of_interest_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan,
108 mavlink_message_t* msg,
109 uint8_t
type,uint8_t
color,uint8_t coordinate_system,uint16_t timeout,
float x,
float y,
float z,
const char *name)
111 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
120 _mav_put_char_array(buf, 17, name, 26);
131 mav_array_memcpy(packet.
name, name,
sizeof(
char)*26);
136 #if MAVLINK_CRC_EXTRA
151 static inline uint16_t mavlink_msg_point_of_interest_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
const mavlink_point_of_interest_t* point_of_interest)
153 return mavlink_msg_point_of_interest_pack(system_id, component_id, msg, point_of_interest->
type, point_of_interest->
color, point_of_interest->
coordinate_system, point_of_interest->
timeout, point_of_interest->
x, point_of_interest->
y, point_of_interest->
z, point_of_interest->
name);
165 static inline uint16_t mavlink_msg_point_of_interest_encode_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t* msg,
const mavlink_point_of_interest_t* point_of_interest)
167 return mavlink_msg_point_of_interest_pack_chan(system_id, component_id, chan, msg, point_of_interest->
type, point_of_interest->
color, point_of_interest->
coordinate_system, point_of_interest->
timeout, point_of_interest->
x, point_of_interest->
y, point_of_interest->
z, point_of_interest->
name);
183 #ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS
185 static inline void mavlink_msg_point_of_interest_send(
mavlink_channel_t chan, uint8_t type, uint8_t color, uint8_t coordinate_system, uint16_t timeout,
float x,
float y,
float z,
const char *name)
187 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
196 _mav_put_char_array(buf, 17, name, 26);
197 #if MAVLINK_CRC_EXTRA
211 mav_array_memcpy(packet.
name, name,
sizeof(
char)*26);
212 #if MAVLINK_CRC_EXTRA
220 #if MAVLINK_MSG_ID_POINT_OF_INTEREST_LEN <= MAVLINK_MAX_PAYLOAD_LEN
228 static inline void mavlink_msg_point_of_interest_send_buf(mavlink_message_t *msgbuf,
mavlink_channel_t chan, uint8_t type, uint8_t color, uint8_t coordinate_system, uint16_t timeout,
float x,
float y,
float z,
const char *name)
230 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
231 char *buf = (
char *)msgbuf;
239 _mav_put_char_array(buf, 17, name, 26);
240 #if MAVLINK_CRC_EXTRA
254 mav_array_memcpy(packet->
name, name,
sizeof(
char)*26);
255 #if MAVLINK_CRC_EXTRA
274 static inline uint8_t mavlink_msg_point_of_interest_get_type(
const mavlink_message_t* msg)
284 static inline uint8_t mavlink_msg_point_of_interest_get_color(
const mavlink_message_t* msg)
294 static inline uint8_t mavlink_msg_point_of_interest_get_coordinate_system(
const mavlink_message_t* msg)
304 static inline uint16_t mavlink_msg_point_of_interest_get_timeout(
const mavlink_message_t* msg)
306 return _MAV_RETURN_uint16_t(msg, 12);
314 static inline float mavlink_msg_point_of_interest_get_x(
const mavlink_message_t* msg)
316 return _MAV_RETURN_float(msg, 0);
324 static inline float mavlink_msg_point_of_interest_get_y(
const mavlink_message_t* msg)
326 return _MAV_RETURN_float(msg, 4);
334 static inline float mavlink_msg_point_of_interest_get_z(
const mavlink_message_t* msg)
336 return _MAV_RETURN_float(msg, 8);
344 static inline uint16_t mavlink_msg_point_of_interest_get_name(
const mavlink_message_t* msg,
char *name)
346 return _MAV_RETURN_char_array(msg, name, 26, 17);
355 static inline void mavlink_msg_point_of_interest_decode(
const mavlink_message_t* msg,
mavlink_point_of_interest_t* point_of_interest)
357 #if MAVLINK_NEED_BYTE_SWAP
358 point_of_interest->
x = mavlink_msg_point_of_interest_get_x(msg);
359 point_of_interest->
y = mavlink_msg_point_of_interest_get_y(msg);
360 point_of_interest->
z = mavlink_msg_point_of_interest_get_z(msg);
361 point_of_interest->
timeout = mavlink_msg_point_of_interest_get_timeout(msg);
362 point_of_interest->
type = mavlink_msg_point_of_interest_get_type(msg);
363 point_of_interest->
color = mavlink_msg_point_of_interest_get_color(msg);
364 point_of_interest->
coordinate_system = mavlink_msg_point_of_interest_get_coordinate_system(msg);
365 mavlink_msg_point_of_interest_get_name(msg, point_of_interest->
name);
#define _mav_put_float(buf, wire_offset, b)
Definition: protocol.h:145
uint8_t type
0: Notice, 1: Warning, 2: Critical, 3: Emergency, 4: Debug
Definition: mavlink_msg_point_of_interest.h:11
uint8_t type
Definition: fat_standard.h:67
#define _MAV_RETURN_uint8_t(msg, wire_offset)
Definition: protocol.h:238
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_uint8_t(buf, wire_offset, b)
Definition: protocol.h:134
#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
float x
X Position.
Definition: mavlink_msg_point_of_interest.h:7
uint8_t z
set the acc deadband for z-Axis, this ignores small accelerations
Definition: accelerometer.h:52
float y
Y Position.
Definition: mavlink_msg_point_of_interest.h:8
float z
Z Position.
Definition: mavlink_msg_point_of_interest.h:9
uint8_t color
0: blue, 1: yellow, 2: red, 3: orange, 4: green, 5: magenta
Definition: mavlink_msg_point_of_interest.h:12
uint8_t color[LED_SPECIAL_COLOR_COUNT]
Definition: ledstrip.h:9
#define MAVLINK_MSG_ID_POINT_OF_INTEREST
Definition: mavlink_msg_point_of_interest.h:3
#define _mav_put_uint16_t(buf, wire_offset, b)
Definition: protocol.h:139
uint8_t coordinate_system
0: global, 1:local
Definition: mavlink_msg_point_of_interest.h:13
Definition: mavlink_msg_point_of_interest.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
struct __mavlink_point_of_interest_t mavlink_point_of_interest_t
char name[26]
POI name.
Definition: mavlink_msg_point_of_interest.h:14
uint16_t timeout
0: no timeout, >1: timeout in seconds
Definition: mavlink_msg_point_of_interest.h:10
#define MAVLINK_MSG_ID_POINT_OF_INTEREST_LEN
Definition: mavlink_msg_point_of_interest.h:17
#define MAVLINK_MSG_ID_POINT_OF_INTEREST_CRC
Definition: mavlink_msg_point_of_interest.h:20