4#define MAVLINK_MSG_ID_GOPRO_HEARTBEAT 215
7typedef struct __mavlink_gopro_heartbeat_t {
11}) mavlink_gopro_heartbeat_t;
13#define MAVLINK_MSG_ID_GOPRO_HEARTBEAT_LEN 3
14#define MAVLINK_MSG_ID_GOPRO_HEARTBEAT_MIN_LEN 3
15#define MAVLINK_MSG_ID_215_LEN 3
16#define MAVLINK_MSG_ID_215_MIN_LEN 3
18#define MAVLINK_MSG_ID_GOPRO_HEARTBEAT_CRC 101
19#define MAVLINK_MSG_ID_215_CRC 101
23#if MAVLINK_COMMAND_24BIT
24#define MAVLINK_MESSAGE_INFO_GOPRO_HEARTBEAT { \
28 { { "status", NULL, MAVLINK_TYPE_UINT8_T, 0, 0, offsetof(mavlink_gopro_heartbeat_t, status) }, \
29 { "capture_mode", NULL, MAVLINK_TYPE_UINT8_T, 0, 1, offsetof(mavlink_gopro_heartbeat_t, capture_mode) }, \
30 { "flags", NULL, MAVLINK_TYPE_UINT8_T, 0, 2, offsetof(mavlink_gopro_heartbeat_t, flags) }, \
34#define MAVLINK_MESSAGE_INFO_GOPRO_HEARTBEAT { \
37 { { "status", NULL, MAVLINK_TYPE_UINT8_T, 0, 0, offsetof(mavlink_gopro_heartbeat_t, status) }, \
38 { "capture_mode", NULL, MAVLINK_TYPE_UINT8_T, 0, 1, offsetof(mavlink_gopro_heartbeat_t, capture_mode) }, \
39 { "flags", NULL, MAVLINK_TYPE_UINT8_T, 0, 2, offsetof(mavlink_gopro_heartbeat_t, flags) }, \
55static inline uint16_t mavlink_msg_gopro_heartbeat_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
56 uint8_t status, uint8_t capture_mode, uint8_t flags)
58#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
59 char buf[MAVLINK_MSG_ID_GOPRO_HEARTBEAT_LEN];
60 _mav_put_uint8_t(buf, 0, status);
61 _mav_put_uint8_t(buf, 1, capture_mode);
62 _mav_put_uint8_t(buf, 2, flags);
64 memcpy(_MAV_PAYLOAD_NON_CONST(msg), buf, MAVLINK_MSG_ID_GOPRO_HEARTBEAT_LEN);
66 mavlink_gopro_heartbeat_t packet;
67 packet.status = status;
68 packet.capture_mode = capture_mode;
71 memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_GOPRO_HEARTBEAT_LEN);
74 msg->msgid = MAVLINK_MSG_ID_GOPRO_HEARTBEAT;
75 return mavlink_finalize_message(msg, system_id, component_id, MAVLINK_MSG_ID_GOPRO_HEARTBEAT_MIN_LEN, MAVLINK_MSG_ID_GOPRO_HEARTBEAT_LEN, MAVLINK_MSG_ID_GOPRO_HEARTBEAT_CRC);
89static inline uint16_t mavlink_msg_gopro_heartbeat_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan,
90 mavlink_message_t* msg,
91 uint8_t status,uint8_t capture_mode,uint8_t flags)
93#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
94 char buf[MAVLINK_MSG_ID_GOPRO_HEARTBEAT_LEN];
95 _mav_put_uint8_t(buf, 0, status);
96 _mav_put_uint8_t(buf, 1, capture_mode);
97 _mav_put_uint8_t(buf, 2, flags);
99 memcpy(_MAV_PAYLOAD_NON_CONST(msg), buf, MAVLINK_MSG_ID_GOPRO_HEARTBEAT_LEN);
101 mavlink_gopro_heartbeat_t packet;
102 packet.status = status;
103 packet.capture_mode = capture_mode;
104 packet.flags = flags;
106 memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_GOPRO_HEARTBEAT_LEN);
109 msg->msgid = MAVLINK_MSG_ID_GOPRO_HEARTBEAT;
110 return mavlink_finalize_message_chan(msg, system_id, component_id, chan, MAVLINK_MSG_ID_GOPRO_HEARTBEAT_MIN_LEN, MAVLINK_MSG_ID_GOPRO_HEARTBEAT_LEN, MAVLINK_MSG_ID_GOPRO_HEARTBEAT_CRC);
121static inline uint16_t mavlink_msg_gopro_heartbeat_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
const mavlink_gopro_heartbeat_t* gopro_heartbeat)
123 return mavlink_msg_gopro_heartbeat_pack(system_id, component_id, msg, gopro_heartbeat->status, gopro_heartbeat->capture_mode, gopro_heartbeat->flags);
135static inline uint16_t mavlink_msg_gopro_heartbeat_encode_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t* msg,
const mavlink_gopro_heartbeat_t* gopro_heartbeat)
137 return mavlink_msg_gopro_heartbeat_pack_chan(system_id, component_id, chan, msg, gopro_heartbeat->status, gopro_heartbeat->capture_mode, gopro_heartbeat->flags);
148#ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS
150static inline void mavlink_msg_gopro_heartbeat_send(mavlink_channel_t chan, uint8_t status, uint8_t capture_mode, uint8_t flags)
152#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
153 char buf[MAVLINK_MSG_ID_GOPRO_HEARTBEAT_LEN];
154 _mav_put_uint8_t(buf, 0, status);
155 _mav_put_uint8_t(buf, 1, capture_mode);
156 _mav_put_uint8_t(buf, 2, flags);
158 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_GOPRO_HEARTBEAT, buf, MAVLINK_MSG_ID_GOPRO_HEARTBEAT_MIN_LEN, MAVLINK_MSG_ID_GOPRO_HEARTBEAT_LEN, MAVLINK_MSG_ID_GOPRO_HEARTBEAT_CRC);
160 mavlink_gopro_heartbeat_t packet;
161 packet.status = status;
162 packet.capture_mode = capture_mode;
163 packet.flags = flags;
165 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_GOPRO_HEARTBEAT, (
const char *)&packet, MAVLINK_MSG_ID_GOPRO_HEARTBEAT_MIN_LEN, MAVLINK_MSG_ID_GOPRO_HEARTBEAT_LEN, MAVLINK_MSG_ID_GOPRO_HEARTBEAT_CRC);
174static inline void mavlink_msg_gopro_heartbeat_send_struct(mavlink_channel_t chan,
const mavlink_gopro_heartbeat_t* gopro_heartbeat)
176#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
177 mavlink_msg_gopro_heartbeat_send(chan, gopro_heartbeat->status, gopro_heartbeat->capture_mode, gopro_heartbeat->flags);
179 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_GOPRO_HEARTBEAT, (
const char *)gopro_heartbeat, MAVLINK_MSG_ID_GOPRO_HEARTBEAT_MIN_LEN, MAVLINK_MSG_ID_GOPRO_HEARTBEAT_LEN, MAVLINK_MSG_ID_GOPRO_HEARTBEAT_CRC);
183#if MAVLINK_MSG_ID_GOPRO_HEARTBEAT_LEN <= MAVLINK_MAX_PAYLOAD_LEN
191static inline void mavlink_msg_gopro_heartbeat_send_buf(mavlink_message_t *msgbuf, mavlink_channel_t chan, uint8_t status, uint8_t capture_mode, uint8_t flags)
193#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
194 char *buf = (
char *)msgbuf;
195 _mav_put_uint8_t(buf, 0, status);
196 _mav_put_uint8_t(buf, 1, capture_mode);
197 _mav_put_uint8_t(buf, 2, flags);
199 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_GOPRO_HEARTBEAT, buf, MAVLINK_MSG_ID_GOPRO_HEARTBEAT_MIN_LEN, MAVLINK_MSG_ID_GOPRO_HEARTBEAT_LEN, MAVLINK_MSG_ID_GOPRO_HEARTBEAT_CRC);
201 mavlink_gopro_heartbeat_t *packet = (mavlink_gopro_heartbeat_t *)msgbuf;
202 packet->status = status;
203 packet->capture_mode = capture_mode;
204 packet->flags = flags;
206 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_GOPRO_HEARTBEAT, (
const char *)packet, MAVLINK_MSG_ID_GOPRO_HEARTBEAT_MIN_LEN, MAVLINK_MSG_ID_GOPRO_HEARTBEAT_LEN, MAVLINK_MSG_ID_GOPRO_HEARTBEAT_CRC);
221static inline uint8_t mavlink_msg_gopro_heartbeat_get_status(
const mavlink_message_t* msg)
223 return _MAV_RETURN_uint8_t(msg, 0);
231static inline uint8_t mavlink_msg_gopro_heartbeat_get_capture_mode(
const mavlink_message_t* msg)
233 return _MAV_RETURN_uint8_t(msg, 1);
241static inline uint8_t mavlink_msg_gopro_heartbeat_get_flags(
const mavlink_message_t* msg)
243 return _MAV_RETURN_uint8_t(msg, 2);
252static inline void mavlink_msg_gopro_heartbeat_decode(
const mavlink_message_t* msg, mavlink_gopro_heartbeat_t* gopro_heartbeat)
254#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
255 gopro_heartbeat->status = mavlink_msg_gopro_heartbeat_get_status(msg);
256 gopro_heartbeat->capture_mode = mavlink_msg_gopro_heartbeat_get_capture_mode(msg);
257 gopro_heartbeat->flags = mavlink_msg_gopro_heartbeat_get_flags(msg);
259 uint8_t len = msg->len < MAVLINK_MSG_ID_GOPRO_HEARTBEAT_LEN? msg->len : MAVLINK_MSG_ID_GOPRO_HEARTBEAT_LEN;
260 memset(gopro_heartbeat, 0, MAVLINK_MSG_ID_GOPRO_HEARTBEAT_LEN);
261 memcpy(gopro_heartbeat, _MAV_PAYLOAD(msg), len);