update
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
|
||||
#define MAVLINK_MSG_ID_CAMERA_FEEDBACK 180
|
||||
|
||||
MAVPACKED(
|
||||
|
||||
typedef struct __mavlink_camera_feedback_t {
|
||||
uint32_t time_usec; /*< [us] Image timestamp (since UNIX epoch), as passed in by CAMERA_STATUS message (or autopilot if no CCB).*/
|
||||
int32_t lat; /*< [degE7] Latitude.*/
|
||||
@@ -14,20 +14,20 @@ typedef struct __mavlink_camera_feedback_t {
|
||||
float pitch; /*< [deg] Camera Pitch angle (earth frame, +-180).*/
|
||||
float yaw; /*< [deg] Camera Yaw (earth frame, 0-360, true).*/
|
||||
float foc_len; /*< [mm] Focal Length.*/
|
||||
uint16_t target_system; /*< System ID.*/
|
||||
uint16_t img_idx; /*< Image index.*/
|
||||
uint8_t target_system; /*< System ID.*/
|
||||
uint8_t cam_idx; /*< Camera ID.*/
|
||||
uint8_t flags; /*< Feedback flags.*/
|
||||
uint16_t completed_captures; /*< Completed image captures.*/
|
||||
}) mavlink_camera_feedback_t;
|
||||
} mavlink_camera_feedback_t;
|
||||
|
||||
#define MAVLINK_MSG_ID_CAMERA_FEEDBACK_LEN 43
|
||||
#define MAVLINK_MSG_ID_CAMERA_FEEDBACK_MIN_LEN 41
|
||||
#define MAVLINK_MSG_ID_180_LEN 43
|
||||
#define MAVLINK_MSG_ID_180_MIN_LEN 41
|
||||
#define MAVLINK_MSG_ID_CAMERA_FEEDBACK_LEN 44
|
||||
#define MAVLINK_MSG_ID_CAMERA_FEEDBACK_MIN_LEN 42
|
||||
#define MAVLINK_MSG_ID_180_LEN 44
|
||||
#define MAVLINK_MSG_ID_180_MIN_LEN 42
|
||||
|
||||
#define MAVLINK_MSG_ID_CAMERA_FEEDBACK_CRC 56
|
||||
#define MAVLINK_MSG_ID_180_CRC 56
|
||||
#define MAVLINK_MSG_ID_CAMERA_FEEDBACK_CRC 76
|
||||
#define MAVLINK_MSG_ID_180_CRC 76
|
||||
|
||||
|
||||
|
||||
@@ -37,9 +37,9 @@ typedef struct __mavlink_camera_feedback_t {
|
||||
"CAMERA_FEEDBACK", \
|
||||
14, \
|
||||
{ { "time_usec", NULL, MAVLINK_TYPE_UINT32_T, 0, 0, offsetof(mavlink_camera_feedback_t, time_usec) }, \
|
||||
{ "target_system", NULL, MAVLINK_TYPE_UINT8_T, 0, 38, offsetof(mavlink_camera_feedback_t, target_system) }, \
|
||||
{ "cam_idx", NULL, MAVLINK_TYPE_UINT8_T, 0, 39, offsetof(mavlink_camera_feedback_t, cam_idx) }, \
|
||||
{ "img_idx", NULL, MAVLINK_TYPE_UINT16_T, 0, 36, offsetof(mavlink_camera_feedback_t, img_idx) }, \
|
||||
{ "target_system", NULL, MAVLINK_TYPE_UINT16_T, 0, 36, offsetof(mavlink_camera_feedback_t, target_system) }, \
|
||||
{ "cam_idx", NULL, MAVLINK_TYPE_UINT8_T, 0, 40, offsetof(mavlink_camera_feedback_t, cam_idx) }, \
|
||||
{ "img_idx", NULL, MAVLINK_TYPE_UINT16_T, 0, 38, offsetof(mavlink_camera_feedback_t, img_idx) }, \
|
||||
{ "lat", NULL, MAVLINK_TYPE_INT32_T, 0, 4, offsetof(mavlink_camera_feedback_t, lat) }, \
|
||||
{ "lng", NULL, MAVLINK_TYPE_INT32_T, 0, 8, offsetof(mavlink_camera_feedback_t, lng) }, \
|
||||
{ "alt_msl", NULL, MAVLINK_TYPE_FLOAT, 0, 12, offsetof(mavlink_camera_feedback_t, alt_msl) }, \
|
||||
@@ -48,8 +48,8 @@ typedef struct __mavlink_camera_feedback_t {
|
||||
{ "pitch", NULL, MAVLINK_TYPE_FLOAT, 0, 24, offsetof(mavlink_camera_feedback_t, pitch) }, \
|
||||
{ "yaw", NULL, MAVLINK_TYPE_FLOAT, 0, 28, offsetof(mavlink_camera_feedback_t, yaw) }, \
|
||||
{ "foc_len", NULL, MAVLINK_TYPE_FLOAT, 0, 32, offsetof(mavlink_camera_feedback_t, foc_len) }, \
|
||||
{ "flags", NULL, MAVLINK_TYPE_UINT8_T, 0, 40, offsetof(mavlink_camera_feedback_t, flags) }, \
|
||||
{ "completed_captures", NULL, MAVLINK_TYPE_UINT16_T, 0, 41, offsetof(mavlink_camera_feedback_t, completed_captures) }, \
|
||||
{ "flags", NULL, MAVLINK_TYPE_UINT8_T, 0, 41, offsetof(mavlink_camera_feedback_t, flags) }, \
|
||||
{ "completed_captures", NULL, MAVLINK_TYPE_UINT16_T, 0, 42, offsetof(mavlink_camera_feedback_t, completed_captures) }, \
|
||||
} \
|
||||
}
|
||||
#else
|
||||
@@ -57,9 +57,9 @@ typedef struct __mavlink_camera_feedback_t {
|
||||
"CAMERA_FEEDBACK", \
|
||||
14, \
|
||||
{ { "time_usec", NULL, MAVLINK_TYPE_UINT32_T, 0, 0, offsetof(mavlink_camera_feedback_t, time_usec) }, \
|
||||
{ "target_system", NULL, MAVLINK_TYPE_UINT8_T, 0, 38, offsetof(mavlink_camera_feedback_t, target_system) }, \
|
||||
{ "cam_idx", NULL, MAVLINK_TYPE_UINT8_T, 0, 39, offsetof(mavlink_camera_feedback_t, cam_idx) }, \
|
||||
{ "img_idx", NULL, MAVLINK_TYPE_UINT16_T, 0, 36, offsetof(mavlink_camera_feedback_t, img_idx) }, \
|
||||
{ "target_system", NULL, MAVLINK_TYPE_UINT16_T, 0, 36, offsetof(mavlink_camera_feedback_t, target_system) }, \
|
||||
{ "cam_idx", NULL, MAVLINK_TYPE_UINT8_T, 0, 40, offsetof(mavlink_camera_feedback_t, cam_idx) }, \
|
||||
{ "img_idx", NULL, MAVLINK_TYPE_UINT16_T, 0, 38, offsetof(mavlink_camera_feedback_t, img_idx) }, \
|
||||
{ "lat", NULL, MAVLINK_TYPE_INT32_T, 0, 4, offsetof(mavlink_camera_feedback_t, lat) }, \
|
||||
{ "lng", NULL, MAVLINK_TYPE_INT32_T, 0, 8, offsetof(mavlink_camera_feedback_t, lng) }, \
|
||||
{ "alt_msl", NULL, MAVLINK_TYPE_FLOAT, 0, 12, offsetof(mavlink_camera_feedback_t, alt_msl) }, \
|
||||
@@ -68,8 +68,8 @@ typedef struct __mavlink_camera_feedback_t {
|
||||
{ "pitch", NULL, MAVLINK_TYPE_FLOAT, 0, 24, offsetof(mavlink_camera_feedback_t, pitch) }, \
|
||||
{ "yaw", NULL, MAVLINK_TYPE_FLOAT, 0, 28, offsetof(mavlink_camera_feedback_t, yaw) }, \
|
||||
{ "foc_len", NULL, MAVLINK_TYPE_FLOAT, 0, 32, offsetof(mavlink_camera_feedback_t, foc_len) }, \
|
||||
{ "flags", NULL, MAVLINK_TYPE_UINT8_T, 0, 40, offsetof(mavlink_camera_feedback_t, flags) }, \
|
||||
{ "completed_captures", NULL, MAVLINK_TYPE_UINT16_T, 0, 41, offsetof(mavlink_camera_feedback_t, completed_captures) }, \
|
||||
{ "flags", NULL, MAVLINK_TYPE_UINT8_T, 0, 41, offsetof(mavlink_camera_feedback_t, flags) }, \
|
||||
{ "completed_captures", NULL, MAVLINK_TYPE_UINT16_T, 0, 42, offsetof(mavlink_camera_feedback_t, completed_captures) }, \
|
||||
} \
|
||||
}
|
||||
#endif
|
||||
@@ -97,7 +97,7 @@ typedef struct __mavlink_camera_feedback_t {
|
||||
* @return length of the message in bytes (excluding serial stream start sign)
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_camera_feedback_pack(uint16_t system_id, uint8_t component_id, mavlink_message_t* msg,
|
||||
uint32_t time_usec, uint8_t target_system, uint8_t cam_idx, uint16_t img_idx, int32_t lat, int32_t lng, float alt_msl, float alt_rel, float roll, float pitch, float yaw, float foc_len, uint8_t flags, uint16_t completed_captures)
|
||||
uint32_t time_usec, uint16_t target_system, uint8_t cam_idx, uint16_t img_idx, int32_t lat, int32_t lng, float alt_msl, float alt_rel, float roll, float pitch, float yaw, float foc_len, uint8_t flags, uint16_t completed_captures)
|
||||
{
|
||||
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
|
||||
char buf[MAVLINK_MSG_ID_CAMERA_FEEDBACK_LEN];
|
||||
@@ -110,11 +110,11 @@ static inline uint16_t mavlink_msg_camera_feedback_pack(uint16_t system_id, uint
|
||||
_mav_put_float(buf, 24, pitch);
|
||||
_mav_put_float(buf, 28, yaw);
|
||||
_mav_put_float(buf, 32, foc_len);
|
||||
_mav_put_uint16_t(buf, 36, img_idx);
|
||||
_mav_put_uint8_t(buf, 38, target_system);
|
||||
_mav_put_uint8_t(buf, 39, cam_idx);
|
||||
_mav_put_uint8_t(buf, 40, flags);
|
||||
_mav_put_uint16_t(buf, 41, completed_captures);
|
||||
_mav_put_uint16_t(buf, 36, target_system);
|
||||
_mav_put_uint16_t(buf, 38, img_idx);
|
||||
_mav_put_uint8_t(buf, 40, cam_idx);
|
||||
_mav_put_uint8_t(buf, 41, flags);
|
||||
_mav_put_uint16_t(buf, 42, completed_captures);
|
||||
|
||||
memcpy(_MAV_PAYLOAD_NON_CONST(msg), buf, MAVLINK_MSG_ID_CAMERA_FEEDBACK_LEN);
|
||||
#else
|
||||
@@ -128,8 +128,8 @@ static inline uint16_t mavlink_msg_camera_feedback_pack(uint16_t system_id, uint
|
||||
packet.pitch = pitch;
|
||||
packet.yaw = yaw;
|
||||
packet.foc_len = foc_len;
|
||||
packet.img_idx = img_idx;
|
||||
packet.target_system = target_system;
|
||||
packet.img_idx = img_idx;
|
||||
packet.cam_idx = cam_idx;
|
||||
packet.flags = flags;
|
||||
packet.completed_captures = completed_captures;
|
||||
@@ -165,7 +165,7 @@ static inline uint16_t mavlink_msg_camera_feedback_pack(uint16_t system_id, uint
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_camera_feedback_pack_chan(uint16_t system_id, uint8_t component_id, uint8_t chan,
|
||||
mavlink_message_t* msg,
|
||||
uint32_t time_usec,uint8_t target_system,uint8_t cam_idx,uint16_t img_idx,int32_t lat,int32_t lng,float alt_msl,float alt_rel,float roll,float pitch,float yaw,float foc_len,uint8_t flags,uint16_t completed_captures)
|
||||
uint32_t time_usec,uint16_t target_system,uint8_t cam_idx,uint16_t img_idx,int32_t lat,int32_t lng,float alt_msl,float alt_rel,float roll,float pitch,float yaw,float foc_len,uint8_t flags,uint16_t completed_captures)
|
||||
{
|
||||
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
|
||||
char buf[MAVLINK_MSG_ID_CAMERA_FEEDBACK_LEN];
|
||||
@@ -178,11 +178,11 @@ static inline uint16_t mavlink_msg_camera_feedback_pack_chan(uint16_t system_id,
|
||||
_mav_put_float(buf, 24, pitch);
|
||||
_mav_put_float(buf, 28, yaw);
|
||||
_mav_put_float(buf, 32, foc_len);
|
||||
_mav_put_uint16_t(buf, 36, img_idx);
|
||||
_mav_put_uint8_t(buf, 38, target_system);
|
||||
_mav_put_uint8_t(buf, 39, cam_idx);
|
||||
_mav_put_uint8_t(buf, 40, flags);
|
||||
_mav_put_uint16_t(buf, 41, completed_captures);
|
||||
_mav_put_uint16_t(buf, 36, target_system);
|
||||
_mav_put_uint16_t(buf, 38, img_idx);
|
||||
_mav_put_uint8_t(buf, 40, cam_idx);
|
||||
_mav_put_uint8_t(buf, 41, flags);
|
||||
_mav_put_uint16_t(buf, 42, completed_captures);
|
||||
|
||||
memcpy(_MAV_PAYLOAD_NON_CONST(msg), buf, MAVLINK_MSG_ID_CAMERA_FEEDBACK_LEN);
|
||||
#else
|
||||
@@ -196,8 +196,8 @@ static inline uint16_t mavlink_msg_camera_feedback_pack_chan(uint16_t system_id,
|
||||
packet.pitch = pitch;
|
||||
packet.yaw = yaw;
|
||||
packet.foc_len = foc_len;
|
||||
packet.img_idx = img_idx;
|
||||
packet.target_system = target_system;
|
||||
packet.img_idx = img_idx;
|
||||
packet.cam_idx = cam_idx;
|
||||
packet.flags = flags;
|
||||
packet.completed_captures = completed_captures;
|
||||
@@ -257,7 +257,7 @@ static inline uint16_t mavlink_msg_camera_feedback_encode_chan(uint16_t system_i
|
||||
*/
|
||||
#ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS
|
||||
|
||||
static inline void mavlink_msg_camera_feedback_send(mavlink_channel_t chan, uint32_t time_usec, uint8_t target_system, uint8_t cam_idx, uint16_t img_idx, int32_t lat, int32_t lng, float alt_msl, float alt_rel, float roll, float pitch, float yaw, float foc_len, uint8_t flags, uint16_t completed_captures)
|
||||
static inline void mavlink_msg_camera_feedback_send(mavlink_channel_t chan, uint32_t time_usec, uint16_t target_system, uint8_t cam_idx, uint16_t img_idx, int32_t lat, int32_t lng, float alt_msl, float alt_rel, float roll, float pitch, float yaw, float foc_len, uint8_t flags, uint16_t completed_captures)
|
||||
{
|
||||
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
|
||||
char buf[MAVLINK_MSG_ID_CAMERA_FEEDBACK_LEN];
|
||||
@@ -270,11 +270,11 @@ static inline void mavlink_msg_camera_feedback_send(mavlink_channel_t chan, uint
|
||||
_mav_put_float(buf, 24, pitch);
|
||||
_mav_put_float(buf, 28, yaw);
|
||||
_mav_put_float(buf, 32, foc_len);
|
||||
_mav_put_uint16_t(buf, 36, img_idx);
|
||||
_mav_put_uint8_t(buf, 38, target_system);
|
||||
_mav_put_uint8_t(buf, 39, cam_idx);
|
||||
_mav_put_uint8_t(buf, 40, flags);
|
||||
_mav_put_uint16_t(buf, 41, completed_captures);
|
||||
_mav_put_uint16_t(buf, 36, target_system);
|
||||
_mav_put_uint16_t(buf, 38, img_idx);
|
||||
_mav_put_uint8_t(buf, 40, cam_idx);
|
||||
_mav_put_uint8_t(buf, 41, flags);
|
||||
_mav_put_uint16_t(buf, 42, completed_captures);
|
||||
|
||||
_mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_CAMERA_FEEDBACK, buf, MAVLINK_MSG_ID_CAMERA_FEEDBACK_MIN_LEN, MAVLINK_MSG_ID_CAMERA_FEEDBACK_LEN, MAVLINK_MSG_ID_CAMERA_FEEDBACK_CRC);
|
||||
#else
|
||||
@@ -288,8 +288,8 @@ static inline void mavlink_msg_camera_feedback_send(mavlink_channel_t chan, uint
|
||||
packet.pitch = pitch;
|
||||
packet.yaw = yaw;
|
||||
packet.foc_len = foc_len;
|
||||
packet.img_idx = img_idx;
|
||||
packet.target_system = target_system;
|
||||
packet.img_idx = img_idx;
|
||||
packet.cam_idx = cam_idx;
|
||||
packet.flags = flags;
|
||||
packet.completed_captures = completed_captures;
|
||||
@@ -320,7 +320,7 @@ static inline void mavlink_msg_camera_feedback_send_struct(mavlink_channel_t cha
|
||||
is usually the receive buffer for the channel, and allows a reply to an
|
||||
incoming message with minimum stack space usage.
|
||||
*/
|
||||
static inline void mavlink_msg_camera_feedback_send_buf(mavlink_message_t *msgbuf, mavlink_channel_t chan, uint32_t time_usec, uint8_t target_system, uint8_t cam_idx, uint16_t img_idx, int32_t lat, int32_t lng, float alt_msl, float alt_rel, float roll, float pitch, float yaw, float foc_len, uint8_t flags, uint16_t completed_captures)
|
||||
static inline void mavlink_msg_camera_feedback_send_buf(mavlink_message_t *msgbuf, mavlink_channel_t chan, uint32_t time_usec, uint16_t target_system, uint8_t cam_idx, uint16_t img_idx, int32_t lat, int32_t lng, float alt_msl, float alt_rel, float roll, float pitch, float yaw, float foc_len, uint8_t flags, uint16_t completed_captures)
|
||||
{
|
||||
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
|
||||
char *buf = (char *)msgbuf;
|
||||
@@ -333,11 +333,11 @@ static inline void mavlink_msg_camera_feedback_send_buf(mavlink_message_t *msgbu
|
||||
_mav_put_float(buf, 24, pitch);
|
||||
_mav_put_float(buf, 28, yaw);
|
||||
_mav_put_float(buf, 32, foc_len);
|
||||
_mav_put_uint16_t(buf, 36, img_idx);
|
||||
_mav_put_uint8_t(buf, 38, target_system);
|
||||
_mav_put_uint8_t(buf, 39, cam_idx);
|
||||
_mav_put_uint8_t(buf, 40, flags);
|
||||
_mav_put_uint16_t(buf, 41, completed_captures);
|
||||
_mav_put_uint16_t(buf, 36, target_system);
|
||||
_mav_put_uint16_t(buf, 38, img_idx);
|
||||
_mav_put_uint8_t(buf, 40, cam_idx);
|
||||
_mav_put_uint8_t(buf, 41, flags);
|
||||
_mav_put_uint16_t(buf, 42, completed_captures);
|
||||
|
||||
_mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_CAMERA_FEEDBACK, buf, MAVLINK_MSG_ID_CAMERA_FEEDBACK_MIN_LEN, MAVLINK_MSG_ID_CAMERA_FEEDBACK_LEN, MAVLINK_MSG_ID_CAMERA_FEEDBACK_CRC);
|
||||
#else
|
||||
@@ -351,8 +351,8 @@ static inline void mavlink_msg_camera_feedback_send_buf(mavlink_message_t *msgbu
|
||||
packet->pitch = pitch;
|
||||
packet->yaw = yaw;
|
||||
packet->foc_len = foc_len;
|
||||
packet->img_idx = img_idx;
|
||||
packet->target_system = target_system;
|
||||
packet->img_idx = img_idx;
|
||||
packet->cam_idx = cam_idx;
|
||||
packet->flags = flags;
|
||||
packet->completed_captures = completed_captures;
|
||||
@@ -382,9 +382,9 @@ static inline uint32_t mavlink_msg_camera_feedback_get_time_usec(const mavlink_m
|
||||
*
|
||||
* @return System ID.
|
||||
*/
|
||||
static inline uint8_t mavlink_msg_camera_feedback_get_target_system(const mavlink_message_t* msg)
|
||||
static inline uint16_t mavlink_msg_camera_feedback_get_target_system(const mavlink_message_t* msg)
|
||||
{
|
||||
return _MAV_RETURN_uint8_t(msg, 38);
|
||||
return _MAV_RETURN_uint16_t(msg, 36);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -394,7 +394,7 @@ static inline uint8_t mavlink_msg_camera_feedback_get_target_system(const mavlin
|
||||
*/
|
||||
static inline uint8_t mavlink_msg_camera_feedback_get_cam_idx(const mavlink_message_t* msg)
|
||||
{
|
||||
return _MAV_RETURN_uint8_t(msg, 39);
|
||||
return _MAV_RETURN_uint8_t(msg, 40);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -404,7 +404,7 @@ static inline uint8_t mavlink_msg_camera_feedback_get_cam_idx(const mavlink_mess
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_camera_feedback_get_img_idx(const mavlink_message_t* msg)
|
||||
{
|
||||
return _MAV_RETURN_uint16_t(msg, 36);
|
||||
return _MAV_RETURN_uint16_t(msg, 38);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -494,7 +494,7 @@ static inline float mavlink_msg_camera_feedback_get_foc_len(const mavlink_messag
|
||||
*/
|
||||
static inline uint8_t mavlink_msg_camera_feedback_get_flags(const mavlink_message_t* msg)
|
||||
{
|
||||
return _MAV_RETURN_uint8_t(msg, 40);
|
||||
return _MAV_RETURN_uint8_t(msg, 41);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -504,7 +504,7 @@ static inline uint8_t mavlink_msg_camera_feedback_get_flags(const mavlink_messag
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_camera_feedback_get_completed_captures(const mavlink_message_t* msg)
|
||||
{
|
||||
return _MAV_RETURN_uint16_t(msg, 41);
|
||||
return _MAV_RETURN_uint16_t(msg, 42);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -525,8 +525,8 @@ static inline void mavlink_msg_camera_feedback_decode(const mavlink_message_t* m
|
||||
camera_feedback->pitch = mavlink_msg_camera_feedback_get_pitch(msg);
|
||||
camera_feedback->yaw = mavlink_msg_camera_feedback_get_yaw(msg);
|
||||
camera_feedback->foc_len = mavlink_msg_camera_feedback_get_foc_len(msg);
|
||||
camera_feedback->img_idx = mavlink_msg_camera_feedback_get_img_idx(msg);
|
||||
camera_feedback->target_system = mavlink_msg_camera_feedback_get_target_system(msg);
|
||||
camera_feedback->img_idx = mavlink_msg_camera_feedback_get_img_idx(msg);
|
||||
camera_feedback->cam_idx = mavlink_msg_camera_feedback_get_cam_idx(msg);
|
||||
camera_feedback->flags = mavlink_msg_camera_feedback_get_flags(msg);
|
||||
camera_feedback->completed_captures = mavlink_msg_camera_feedback_get_completed_captures(msg);
|
||||
|
||||
Reference in New Issue
Block a user