3 #define MAVLINK_MSG_ID_IMAGE_TRIGGERED 152
21 #define MAVLINK_MSG_ID_IMAGE_TRIGGERED_LEN 52
22 #define MAVLINK_MSG_ID_152_LEN 52
24 #define MAVLINK_MSG_ID_IMAGE_TRIGGERED_CRC 86
25 #define MAVLINK_MSG_ID_152_CRC 86
29 #define MAVLINK_MESSAGE_INFO_IMAGE_TRIGGERED { \
32 { { "timestamp", NULL, MAVLINK_TYPE_UINT64_T, 0, 0, offsetof(mavlink_image_triggered_t, timestamp) }, \
33 { "seq", NULL, MAVLINK_TYPE_UINT32_T, 0, 8, offsetof(mavlink_image_triggered_t, seq) }, \
34 { "roll", NULL, MAVLINK_TYPE_FLOAT, 0, 12, offsetof(mavlink_image_triggered_t, roll) }, \
35 { "pitch", NULL, MAVLINK_TYPE_FLOAT, 0, 16, offsetof(mavlink_image_triggered_t, pitch) }, \
36 { "yaw", NULL, MAVLINK_TYPE_FLOAT, 0, 20, offsetof(mavlink_image_triggered_t, yaw) }, \
37 { "local_z", NULL, MAVLINK_TYPE_FLOAT, 0, 24, offsetof(mavlink_image_triggered_t, local_z) }, \
38 { "lat", NULL, MAVLINK_TYPE_FLOAT, 0, 28, offsetof(mavlink_image_triggered_t, lat) }, \
39 { "lon", NULL, MAVLINK_TYPE_FLOAT, 0, 32, offsetof(mavlink_image_triggered_t, lon) }, \
40 { "alt", NULL, MAVLINK_TYPE_FLOAT, 0, 36, offsetof(mavlink_image_triggered_t, alt) }, \
41 { "ground_x", NULL, MAVLINK_TYPE_FLOAT, 0, 40, offsetof(mavlink_image_triggered_t, ground_x) }, \
42 { "ground_y", NULL, MAVLINK_TYPE_FLOAT, 0, 44, offsetof(mavlink_image_triggered_t, ground_y) }, \
43 { "ground_z", NULL, MAVLINK_TYPE_FLOAT, 0, 48, offsetof(mavlink_image_triggered_t, ground_z) }, \
68 static inline uint16_t mavlink_msg_image_triggered_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
69 uint64_t timestamp, uint32_t seq,
float roll,
float pitch,
float yaw,
float local_z,
float lat,
float lon,
float alt,
float ground_x,
float ground_y,
float ground_z)
71 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
106 #if MAVLINK_CRC_EXTRA
133 static inline uint16_t mavlink_msg_image_triggered_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan,
134 mavlink_message_t* msg,
135 uint64_t timestamp,uint32_t seq,
float roll,
float pitch,
float yaw,
float local_z,
float lat,
float lon,
float alt,
float ground_x,
float ground_y,
float ground_z)
137 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
172 #if MAVLINK_CRC_EXTRA
187 static inline uint16_t mavlink_msg_image_triggered_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
const mavlink_image_triggered_t* image_triggered)
189 return mavlink_msg_image_triggered_pack(system_id, component_id, msg, image_triggered->
timestamp, image_triggered->
seq, image_triggered->
roll, image_triggered->
pitch, image_triggered->
yaw, image_triggered->
local_z, image_triggered->
lat, image_triggered->
lon, image_triggered->
alt, image_triggered->
ground_x, image_triggered->
ground_y, image_triggered->
ground_z);
201 static inline uint16_t mavlink_msg_image_triggered_encode_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t* msg,
const mavlink_image_triggered_t* image_triggered)
203 return mavlink_msg_image_triggered_pack_chan(system_id, component_id, chan, msg, image_triggered->
timestamp, image_triggered->
seq, image_triggered->
roll, image_triggered->
pitch, image_triggered->
yaw, image_triggered->
local_z, image_triggered->
lat, image_triggered->
lon, image_triggered->
alt, image_triggered->
ground_x, image_triggered->
ground_y, image_triggered->
ground_z);
223 #ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS
225 static inline void mavlink_msg_image_triggered_send(
mavlink_channel_t chan, uint64_t timestamp, uint32_t seq,
float roll,
float pitch,
float yaw,
float local_z,
float lat,
float lon,
float alt,
float ground_x,
float ground_y,
float ground_z)
227 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
242 #if MAVLINK_CRC_EXTRA
262 #if MAVLINK_CRC_EXTRA
270 #if MAVLINK_MSG_ID_IMAGE_TRIGGERED_LEN <= MAVLINK_MAX_PAYLOAD_LEN
278 static inline void mavlink_msg_image_triggered_send_buf(mavlink_message_t *msgbuf,
mavlink_channel_t chan, uint64_t timestamp, uint32_t seq,
float roll,
float pitch,
float yaw,
float local_z,
float lat,
float lon,
float alt,
float ground_x,
float ground_y,
float ground_z)
280 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
281 char *buf = (
char *)msgbuf;
295 #if MAVLINK_CRC_EXTRA
315 #if MAVLINK_CRC_EXTRA
334 static inline uint64_t mavlink_msg_image_triggered_get_timestamp(
const mavlink_message_t* msg)
336 return _MAV_RETURN_uint64_t(msg, 0);
344 static inline uint32_t mavlink_msg_image_triggered_get_seq(
const mavlink_message_t* msg)
346 return _MAV_RETURN_uint32_t(msg, 8);
354 static inline float mavlink_msg_image_triggered_get_roll(
const mavlink_message_t* msg)
356 return _MAV_RETURN_float(msg, 12);
364 static inline float mavlink_msg_image_triggered_get_pitch(
const mavlink_message_t* msg)
366 return _MAV_RETURN_float(msg, 16);
374 static inline float mavlink_msg_image_triggered_get_yaw(
const mavlink_message_t* msg)
376 return _MAV_RETURN_float(msg, 20);
384 static inline float mavlink_msg_image_triggered_get_local_z(
const mavlink_message_t* msg)
386 return _MAV_RETURN_float(msg, 24);
394 static inline float mavlink_msg_image_triggered_get_lat(
const mavlink_message_t* msg)
396 return _MAV_RETURN_float(msg, 28);
404 static inline float mavlink_msg_image_triggered_get_lon(
const mavlink_message_t* msg)
406 return _MAV_RETURN_float(msg, 32);
414 static inline float mavlink_msg_image_triggered_get_alt(
const mavlink_message_t* msg)
416 return _MAV_RETURN_float(msg, 36);
424 static inline float mavlink_msg_image_triggered_get_ground_x(
const mavlink_message_t* msg)
426 return _MAV_RETURN_float(msg, 40);
434 static inline float mavlink_msg_image_triggered_get_ground_y(
const mavlink_message_t* msg)
436 return _MAV_RETURN_float(msg, 44);
444 static inline float mavlink_msg_image_triggered_get_ground_z(
const mavlink_message_t* msg)
446 return _MAV_RETURN_float(msg, 48);
455 static inline void mavlink_msg_image_triggered_decode(
const mavlink_message_t* msg,
mavlink_image_triggered_t* image_triggered)
457 #if MAVLINK_NEED_BYTE_SWAP
458 image_triggered->
timestamp = mavlink_msg_image_triggered_get_timestamp(msg);
459 image_triggered->
seq = mavlink_msg_image_triggered_get_seq(msg);
460 image_triggered->
roll = mavlink_msg_image_triggered_get_roll(msg);
461 image_triggered->
pitch = mavlink_msg_image_triggered_get_pitch(msg);
462 image_triggered->
yaw = mavlink_msg_image_triggered_get_yaw(msg);
463 image_triggered->
local_z = mavlink_msg_image_triggered_get_local_z(msg);
464 image_triggered->
lat = mavlink_msg_image_triggered_get_lat(msg);
465 image_triggered->
lon = mavlink_msg_image_triggered_get_lon(msg);
466 image_triggered->
alt = mavlink_msg_image_triggered_get_alt(msg);
467 image_triggered->
ground_x = mavlink_msg_image_triggered_get_ground_x(msg);
468 image_triggered->
ground_y = mavlink_msg_image_triggered_get_ground_y(msg);
469 image_triggered->
ground_z = mavlink_msg_image_triggered_get_ground_z(msg);
#define _mav_put_float(buf, wire_offset, b)
Definition: protocol.h:145
#define MAVLINK_MSG_ID_IMAGE_TRIGGERED_LEN
Definition: mavlink_msg_image_triggered.h:21
#define MAVLINK_MSG_ID_IMAGE_TRIGGERED
Definition: mavlink_msg_image_triggered.h:3
float lon
GPS Y coordinate.
Definition: mavlink_msg_image_triggered.h:14
float roll
Roll angle in rad.
Definition: mavlink_msg_image_triggered.h:9
float lat
GPS X coordinate.
Definition: mavlink_msg_image_triggered.h:13
uint32_t seq
IMU seq.
Definition: mavlink_msg_image_triggered.h:8
Definition: mavlink_msg_image_triggered.h:5
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_uint64_t(buf, wire_offset, b)
Definition: protocol.h:143
#define _MAV_PAYLOAD_NON_CONST(msg)
Definition: mavlink_types.h:172
mavlink_channel_t
Definition: mavlink_types.h:178
float alt
Global frame altitude.
Definition: mavlink_msg_image_triggered.h:15
#define _MAV_PAYLOAD(msg)
Definition: mavlink_types.h:171
float yaw
Yaw angle in rad.
Definition: mavlink_msg_image_triggered.h:11
struct __mavlink_image_triggered_t mavlink_image_triggered_t
float ground_z
Ground truth Z.
Definition: mavlink_msg_image_triggered.h:18
int16_t pitch
Definition: accelerometer.h:52
#define MAVLINK_MSG_ID_IMAGE_TRIGGERED_CRC
Definition: mavlink_msg_image_triggered.h:24
int16_t yaw
Definition: sensors.h:31
uint64_t timestamp
Timestamp.
Definition: mavlink_msg_image_triggered.h:7
float pitch
Pitch angle in rad.
Definition: mavlink_msg_image_triggered.h:10
float ground_y
Ground truth Y.
Definition: mavlink_msg_image_triggered.h:17
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
float local_z
Local frame Z coordinate (height over ground)
Definition: mavlink_msg_image_triggered.h:12
float ground_x
Ground truth X.
Definition: mavlink_msg_image_triggered.h:16
int16_t roll
Definition: accelerometer.h:51
#define _mav_put_uint32_t(buf, wire_offset, b)
Definition: protocol.h:141