3 #define MAVLINK_MSG_ID_POINT_OF_INTEREST_CONNECTION 192
20 #define MAVLINK_MSG_ID_POINT_OF_INTEREST_CONNECTION_LEN 55
21 #define MAVLINK_MSG_ID_192_LEN 55
23 #define MAVLINK_MSG_ID_POINT_OF_INTEREST_CONNECTION_CRC 36
24 #define MAVLINK_MSG_ID_192_CRC 36
26 #define MAVLINK_MSG_POINT_OF_INTEREST_CONNECTION_FIELD_NAME_LEN 26
28 #define MAVLINK_MESSAGE_INFO_POINT_OF_INTEREST_CONNECTION { \
29 "POINT_OF_INTEREST_CONNECTION", \
31 { { "xp1", NULL, MAVLINK_TYPE_FLOAT, 0, 0, offsetof(mavlink_point_of_interest_connection_t, xp1) }, \
32 { "yp1", NULL, MAVLINK_TYPE_FLOAT, 0, 4, offsetof(mavlink_point_of_interest_connection_t, yp1) }, \
33 { "zp1", NULL, MAVLINK_TYPE_FLOAT, 0, 8, offsetof(mavlink_point_of_interest_connection_t, zp1) }, \
34 { "xp2", NULL, MAVLINK_TYPE_FLOAT, 0, 12, offsetof(mavlink_point_of_interest_connection_t, xp2) }, \
35 { "yp2", NULL, MAVLINK_TYPE_FLOAT, 0, 16, offsetof(mavlink_point_of_interest_connection_t, yp2) }, \
36 { "zp2", NULL, MAVLINK_TYPE_FLOAT, 0, 20, offsetof(mavlink_point_of_interest_connection_t, zp2) }, \
37 { "timeout", NULL, MAVLINK_TYPE_UINT16_T, 0, 24, offsetof(mavlink_point_of_interest_connection_t, timeout) }, \
38 { "type", NULL, MAVLINK_TYPE_UINT8_T, 0, 26, offsetof(mavlink_point_of_interest_connection_t, type) }, \
39 { "color", NULL, MAVLINK_TYPE_UINT8_T, 0, 27, offsetof(mavlink_point_of_interest_connection_t, color) }, \
40 { "coordinate_system", NULL, MAVLINK_TYPE_UINT8_T, 0, 28, offsetof(mavlink_point_of_interest_connection_t, coordinate_system) }, \
41 { "name", NULL, MAVLINK_TYPE_CHAR, 26, 29, offsetof(mavlink_point_of_interest_connection_t, name) }, \
65 static inline uint16_t mavlink_msg_point_of_interest_connection_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
66 uint8_t
type, uint8_t
color, uint8_t coordinate_system, uint16_t timeout,
float xp1,
float yp1,
float zp1,
float xp2,
float yp2,
float zp2,
const char *name)
68 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
80 _mav_put_char_array(buf, 29, name, 26);
94 mav_array_memcpy(packet.
name, name,
sizeof(
char)*26);
125 static inline uint16_t mavlink_msg_point_of_interest_connection_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan,
126 mavlink_message_t* msg,
127 uint8_t
type,uint8_t
color,uint8_t coordinate_system,uint16_t timeout,
float xp1,
float yp1,
float zp1,
float xp2,
float yp2,
float zp2,
const char *name)
129 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
141 _mav_put_char_array(buf, 29, name, 26);
155 mav_array_memcpy(packet.
name, name,
sizeof(
char)*26);
160 #if MAVLINK_CRC_EXTRA
175 static inline uint16_t mavlink_msg_point_of_interest_connection_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
const mavlink_point_of_interest_connection_t* point_of_interest_connection)
177 return mavlink_msg_point_of_interest_connection_pack(system_id, component_id, msg, point_of_interest_connection->
type, point_of_interest_connection->
color, point_of_interest_connection->
coordinate_system, point_of_interest_connection->
timeout, point_of_interest_connection->
xp1, point_of_interest_connection->
yp1, point_of_interest_connection->
zp1, point_of_interest_connection->
xp2, point_of_interest_connection->
yp2, point_of_interest_connection->
zp2, point_of_interest_connection->
name);
189 static inline uint16_t mavlink_msg_point_of_interest_connection_encode_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t* msg,
const mavlink_point_of_interest_connection_t* point_of_interest_connection)
191 return mavlink_msg_point_of_interest_connection_pack_chan(system_id, component_id, chan, msg, point_of_interest_connection->
type, point_of_interest_connection->
color, point_of_interest_connection->
coordinate_system, point_of_interest_connection->
timeout, point_of_interest_connection->
xp1, point_of_interest_connection->
yp1, point_of_interest_connection->
zp1, point_of_interest_connection->
xp2, point_of_interest_connection->
yp2, point_of_interest_connection->
zp2, point_of_interest_connection->
name);
210 #ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS
212 static inline void mavlink_msg_point_of_interest_connection_send(
mavlink_channel_t chan, uint8_t type, uint8_t color, uint8_t coordinate_system, uint16_t timeout,
float xp1,
float yp1,
float zp1,
float xp2,
float yp2,
float zp2,
const char *name)
214 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
226 _mav_put_char_array(buf, 29, name, 26);
227 #if MAVLINK_CRC_EXTRA
244 mav_array_memcpy(packet.
name, name,
sizeof(
char)*26);
245 #if MAVLINK_CRC_EXTRA
253 #if MAVLINK_MSG_ID_POINT_OF_INTEREST_CONNECTION_LEN <= MAVLINK_MAX_PAYLOAD_LEN
261 static inline void mavlink_msg_point_of_interest_connection_send_buf(mavlink_message_t *msgbuf,
mavlink_channel_t chan, uint8_t type, uint8_t color, uint8_t coordinate_system, uint16_t timeout,
float xp1,
float yp1,
float zp1,
float xp2,
float yp2,
float zp2,
const char *name)
263 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
264 char *buf = (
char *)msgbuf;
275 _mav_put_char_array(buf, 29, name, 26);
276 #if MAVLINK_CRC_EXTRA
293 mav_array_memcpy(packet->
name, name,
sizeof(
char)*26);
294 #if MAVLINK_CRC_EXTRA
313 static inline uint8_t mavlink_msg_point_of_interest_connection_get_type(
const mavlink_message_t* msg)
323 static inline uint8_t mavlink_msg_point_of_interest_connection_get_color(
const mavlink_message_t* msg)
333 static inline uint8_t mavlink_msg_point_of_interest_connection_get_coordinate_system(
const mavlink_message_t* msg)
343 static inline uint16_t mavlink_msg_point_of_interest_connection_get_timeout(
const mavlink_message_t* msg)
345 return _MAV_RETURN_uint16_t(msg, 24);
353 static inline float mavlink_msg_point_of_interest_connection_get_xp1(
const mavlink_message_t* msg)
355 return _MAV_RETURN_float(msg, 0);
363 static inline float mavlink_msg_point_of_interest_connection_get_yp1(
const mavlink_message_t* msg)
365 return _MAV_RETURN_float(msg, 4);
373 static inline float mavlink_msg_point_of_interest_connection_get_zp1(
const mavlink_message_t* msg)
375 return _MAV_RETURN_float(msg, 8);
383 static inline float mavlink_msg_point_of_interest_connection_get_xp2(
const mavlink_message_t* msg)
385 return _MAV_RETURN_float(msg, 12);
393 static inline float mavlink_msg_point_of_interest_connection_get_yp2(
const mavlink_message_t* msg)
395 return _MAV_RETURN_float(msg, 16);
403 static inline float mavlink_msg_point_of_interest_connection_get_zp2(
const mavlink_message_t* msg)
405 return _MAV_RETURN_float(msg, 20);
413 static inline uint16_t mavlink_msg_point_of_interest_connection_get_name(
const mavlink_message_t* msg,
char *name)
415 return _MAV_RETURN_char_array(msg, name, 26, 29);
426 #if MAVLINK_NEED_BYTE_SWAP
427 point_of_interest_connection->
xp1 = mavlink_msg_point_of_interest_connection_get_xp1(msg);
428 point_of_interest_connection->
yp1 = mavlink_msg_point_of_interest_connection_get_yp1(msg);
429 point_of_interest_connection->
zp1 = mavlink_msg_point_of_interest_connection_get_zp1(msg);
430 point_of_interest_connection->
xp2 = mavlink_msg_point_of_interest_connection_get_xp2(msg);
431 point_of_interest_connection->
yp2 = mavlink_msg_point_of_interest_connection_get_yp2(msg);
432 point_of_interest_connection->
zp2 = mavlink_msg_point_of_interest_connection_get_zp2(msg);
433 point_of_interest_connection->
timeout = mavlink_msg_point_of_interest_connection_get_timeout(msg);
434 point_of_interest_connection->
type = mavlink_msg_point_of_interest_connection_get_type(msg);
435 point_of_interest_connection->
color = mavlink_msg_point_of_interest_connection_get_color(msg);
436 point_of_interest_connection->
coordinate_system = mavlink_msg_point_of_interest_connection_get_coordinate_system(msg);
437 mavlink_msg_point_of_interest_connection_get_name(msg, point_of_interest_connection->
name);
#define MAVLINK_MSG_ID_POINT_OF_INTEREST_CONNECTION_LEN
Definition: mavlink_msg_point_of_interest_connection.h:20
#define _mav_put_float(buf, wire_offset, b)
Definition: protocol.h:145
uint8_t type
Definition: fat_standard.h:67
float xp1
X1 Position.
Definition: mavlink_msg_point_of_interest_connection.h:7
float zp2
Z2 Position.
Definition: mavlink_msg_point_of_interest_connection.h:12
#define _MAV_RETURN_uint8_t(msg, wire_offset)
Definition: protocol.h:238
float xp2
X2 Position.
Definition: mavlink_msg_point_of_interest_connection.h:10
float yp1
Y1 Position.
Definition: mavlink_msg_point_of_interest_connection.h:8
float zp1
Z1 Position.
Definition: mavlink_msg_point_of_interest_connection.h:9
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 MAVLINK_MSG_ID_POINT_OF_INTEREST_CONNECTION
Definition: mavlink_msg_point_of_interest_connection.h:3
uint8_t color
0: blue, 1: yellow, 2: red, 3: orange, 4: green, 5: magenta
Definition: mavlink_msg_point_of_interest_connection.h:15
#define _MAV_PAYLOAD(msg)
Definition: mavlink_types.h:171
uint8_t coordinate_system
0: global, 1:local
Definition: mavlink_msg_point_of_interest_connection.h:16
float yp2
Y2 Position.
Definition: mavlink_msg_point_of_interest_connection.h:11
uint16_t timeout
0: no timeout, >1: timeout in seconds
Definition: mavlink_msg_point_of_interest_connection.h:13
uint8_t color[LED_SPECIAL_COLOR_COUNT]
Definition: ledstrip.h:9
#define MAVLINK_MSG_ID_POINT_OF_INTEREST_CONNECTION_CRC
Definition: mavlink_msg_point_of_interest_connection.h:23
#define _mav_put_uint16_t(buf, wire_offset, b)
Definition: protocol.h:139
Definition: mavlink_msg_point_of_interest_connection.h:5
char name[26]
POI connection name.
Definition: mavlink_msg_point_of_interest_connection.h:17
uint8_t type
0: Notice, 1: Warning, 2: Critical, 3: Emergency, 4: Debug
Definition: mavlink_msg_point_of_interest_connection.h:14
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_connection_t mavlink_point_of_interest_connection_t