update protocol
This commit is contained in:
@@ -5,20 +5,20 @@
|
||||
|
||||
MAVPACKED(
|
||||
typedef struct __mavlink_landing_target_t {
|
||||
uint64_t time_usec; /*< [us] Timestamp (micros since boot or Unix epoch)*/
|
||||
float angle_x; /*< [rad] X-axis angular offset (in radians) of the target from the center of the image*/
|
||||
float angle_y; /*< [rad] Y-axis angular offset (in radians) of the target from the center of the image*/
|
||||
float distance; /*< [m] Distance to the target from the vehicle in meters*/
|
||||
float size_x; /*< [rad] Size in radians of target along x-axis*/
|
||||
float size_y; /*< [rad] Size in radians of target along y-axis*/
|
||||
uint64_t time_usec; /*< [us] Timestamp (UNIX Epoch time or time since system boot). The receiving end can infer timestamp format (since 1.1.1970 or since system boot) by checking for the magnitude the number.*/
|
||||
float angle_x; /*< [rad] X-axis angular offset of the target from the center of the image*/
|
||||
float angle_y; /*< [rad] Y-axis angular offset of the target from the center of the image*/
|
||||
float distance; /*< [m] Distance to the target from the vehicle*/
|
||||
float size_x; /*< [rad] Size of target along x-axis*/
|
||||
float size_y; /*< [rad] Size of target along y-axis*/
|
||||
uint8_t target_num; /*< The ID of the target if multiple targets are present*/
|
||||
uint8_t frame; /*< MAV_FRAME enum specifying the whether the following feilds are earth-frame, body-frame, etc.*/
|
||||
uint8_t frame; /*< Coordinate frame used for following fields.*/
|
||||
float x; /*< [m] X Position of the landing target on MAV_FRAME*/
|
||||
float y; /*< [m] Y Position of the landing target on MAV_FRAME*/
|
||||
float z; /*< [m] Z Position of the landing target on MAV_FRAME*/
|
||||
float q[4]; /*< Quaternion of landing target orientation (w, x, y, z order, zero-rotation is 1, 0, 0, 0)*/
|
||||
uint8_t type; /*< LANDING_TARGET_TYPE enum specifying the type of landing target*/
|
||||
uint8_t position_valid; /*< Boolean indicating known position (1) or default unkown position (0), for validation of positioning of the landing target*/
|
||||
uint8_t type; /*< Type of landing target*/
|
||||
uint8_t position_valid; /*< Boolean indicating known position (1) or default unknown position (0), for validation of positioning of the landing target*/
|
||||
}) mavlink_landing_target_t;
|
||||
|
||||
#define MAVLINK_MSG_ID_LANDING_TARGET_LEN 60
|
||||
@@ -80,20 +80,20 @@ typedef struct __mavlink_landing_target_t {
|
||||
* @param component_id ID of this component (e.g. 200 for IMU)
|
||||
* @param msg The MAVLink message to compress the data into
|
||||
*
|
||||
* @param time_usec [us] Timestamp (micros since boot or Unix epoch)
|
||||
* @param time_usec [us] Timestamp (UNIX Epoch time or time since system boot). The receiving end can infer timestamp format (since 1.1.1970 or since system boot) by checking for the magnitude the number.
|
||||
* @param target_num The ID of the target if multiple targets are present
|
||||
* @param frame MAV_FRAME enum specifying the whether the following feilds are earth-frame, body-frame, etc.
|
||||
* @param angle_x [rad] X-axis angular offset (in radians) of the target from the center of the image
|
||||
* @param angle_y [rad] Y-axis angular offset (in radians) of the target from the center of the image
|
||||
* @param distance [m] Distance to the target from the vehicle in meters
|
||||
* @param size_x [rad] Size in radians of target along x-axis
|
||||
* @param size_y [rad] Size in radians of target along y-axis
|
||||
* @param frame Coordinate frame used for following fields.
|
||||
* @param angle_x [rad] X-axis angular offset of the target from the center of the image
|
||||
* @param angle_y [rad] Y-axis angular offset of the target from the center of the image
|
||||
* @param distance [m] Distance to the target from the vehicle
|
||||
* @param size_x [rad] Size of target along x-axis
|
||||
* @param size_y [rad] Size of target along y-axis
|
||||
* @param x [m] X Position of the landing target on MAV_FRAME
|
||||
* @param y [m] Y Position of the landing target on MAV_FRAME
|
||||
* @param z [m] Z Position of the landing target on MAV_FRAME
|
||||
* @param q Quaternion of landing target orientation (w, x, y, z order, zero-rotation is 1, 0, 0, 0)
|
||||
* @param type LANDING_TARGET_TYPE enum specifying the type of landing target
|
||||
* @param position_valid Boolean indicating known position (1) or default unkown position (0), for validation of positioning of the landing target
|
||||
* @param type Type of landing target
|
||||
* @param position_valid Boolean indicating known position (1) or default unknown position (0), for validation of positioning of the landing target
|
||||
* @return length of the message in bytes (excluding serial stream start sign)
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_landing_target_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
|
||||
@@ -145,20 +145,20 @@ static inline uint16_t mavlink_msg_landing_target_pack(uint8_t system_id, uint8_
|
||||
* @param component_id ID of this component (e.g. 200 for IMU)
|
||||
* @param chan The MAVLink channel this message will be sent over
|
||||
* @param msg The MAVLink message to compress the data into
|
||||
* @param time_usec [us] Timestamp (micros since boot or Unix epoch)
|
||||
* @param time_usec [us] Timestamp (UNIX Epoch time or time since system boot). The receiving end can infer timestamp format (since 1.1.1970 or since system boot) by checking for the magnitude the number.
|
||||
* @param target_num The ID of the target if multiple targets are present
|
||||
* @param frame MAV_FRAME enum specifying the whether the following feilds are earth-frame, body-frame, etc.
|
||||
* @param angle_x [rad] X-axis angular offset (in radians) of the target from the center of the image
|
||||
* @param angle_y [rad] Y-axis angular offset (in radians) of the target from the center of the image
|
||||
* @param distance [m] Distance to the target from the vehicle in meters
|
||||
* @param size_x [rad] Size in radians of target along x-axis
|
||||
* @param size_y [rad] Size in radians of target along y-axis
|
||||
* @param frame Coordinate frame used for following fields.
|
||||
* @param angle_x [rad] X-axis angular offset of the target from the center of the image
|
||||
* @param angle_y [rad] Y-axis angular offset of the target from the center of the image
|
||||
* @param distance [m] Distance to the target from the vehicle
|
||||
* @param size_x [rad] Size of target along x-axis
|
||||
* @param size_y [rad] Size of target along y-axis
|
||||
* @param x [m] X Position of the landing target on MAV_FRAME
|
||||
* @param y [m] Y Position of the landing target on MAV_FRAME
|
||||
* @param z [m] Z Position of the landing target on MAV_FRAME
|
||||
* @param q Quaternion of landing target orientation (w, x, y, z order, zero-rotation is 1, 0, 0, 0)
|
||||
* @param type LANDING_TARGET_TYPE enum specifying the type of landing target
|
||||
* @param position_valid Boolean indicating known position (1) or default unkown position (0), for validation of positioning of the landing target
|
||||
* @param type Type of landing target
|
||||
* @param position_valid Boolean indicating known position (1) or default unknown position (0), for validation of positioning of the landing target
|
||||
* @return length of the message in bytes (excluding serial stream start sign)
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_landing_target_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan,
|
||||
@@ -236,20 +236,20 @@ static inline uint16_t mavlink_msg_landing_target_encode_chan(uint8_t system_id,
|
||||
* @brief Send a landing_target message
|
||||
* @param chan MAVLink channel to send the message
|
||||
*
|
||||
* @param time_usec [us] Timestamp (micros since boot or Unix epoch)
|
||||
* @param time_usec [us] Timestamp (UNIX Epoch time or time since system boot). The receiving end can infer timestamp format (since 1.1.1970 or since system boot) by checking for the magnitude the number.
|
||||
* @param target_num The ID of the target if multiple targets are present
|
||||
* @param frame MAV_FRAME enum specifying the whether the following feilds are earth-frame, body-frame, etc.
|
||||
* @param angle_x [rad] X-axis angular offset (in radians) of the target from the center of the image
|
||||
* @param angle_y [rad] Y-axis angular offset (in radians) of the target from the center of the image
|
||||
* @param distance [m] Distance to the target from the vehicle in meters
|
||||
* @param size_x [rad] Size in radians of target along x-axis
|
||||
* @param size_y [rad] Size in radians of target along y-axis
|
||||
* @param frame Coordinate frame used for following fields.
|
||||
* @param angle_x [rad] X-axis angular offset of the target from the center of the image
|
||||
* @param angle_y [rad] Y-axis angular offset of the target from the center of the image
|
||||
* @param distance [m] Distance to the target from the vehicle
|
||||
* @param size_x [rad] Size of target along x-axis
|
||||
* @param size_y [rad] Size of target along y-axis
|
||||
* @param x [m] X Position of the landing target on MAV_FRAME
|
||||
* @param y [m] Y Position of the landing target on MAV_FRAME
|
||||
* @param z [m] Z Position of the landing target on MAV_FRAME
|
||||
* @param q Quaternion of landing target orientation (w, x, y, z order, zero-rotation is 1, 0, 0, 0)
|
||||
* @param type LANDING_TARGET_TYPE enum specifying the type of landing target
|
||||
* @param position_valid Boolean indicating known position (1) or default unkown position (0), for validation of positioning of the landing target
|
||||
* @param type Type of landing target
|
||||
* @param position_valid Boolean indicating known position (1) or default unknown position (0), for validation of positioning of the landing target
|
||||
*/
|
||||
#ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS
|
||||
|
||||
@@ -362,7 +362,7 @@ static inline void mavlink_msg_landing_target_send_buf(mavlink_message_t *msgbuf
|
||||
/**
|
||||
* @brief Get field time_usec from landing_target message
|
||||
*
|
||||
* @return [us] Timestamp (micros since boot or Unix epoch)
|
||||
* @return [us] Timestamp (UNIX Epoch time or time since system boot). The receiving end can infer timestamp format (since 1.1.1970 or since system boot) by checking for the magnitude the number.
|
||||
*/
|
||||
static inline uint64_t mavlink_msg_landing_target_get_time_usec(const mavlink_message_t* msg)
|
||||
{
|
||||
@@ -382,7 +382,7 @@ static inline uint8_t mavlink_msg_landing_target_get_target_num(const mavlink_me
|
||||
/**
|
||||
* @brief Get field frame from landing_target message
|
||||
*
|
||||
* @return MAV_FRAME enum specifying the whether the following feilds are earth-frame, body-frame, etc.
|
||||
* @return Coordinate frame used for following fields.
|
||||
*/
|
||||
static inline uint8_t mavlink_msg_landing_target_get_frame(const mavlink_message_t* msg)
|
||||
{
|
||||
@@ -392,7 +392,7 @@ static inline uint8_t mavlink_msg_landing_target_get_frame(const mavlink_message
|
||||
/**
|
||||
* @brief Get field angle_x from landing_target message
|
||||
*
|
||||
* @return [rad] X-axis angular offset (in radians) of the target from the center of the image
|
||||
* @return [rad] X-axis angular offset of the target from the center of the image
|
||||
*/
|
||||
static inline float mavlink_msg_landing_target_get_angle_x(const mavlink_message_t* msg)
|
||||
{
|
||||
@@ -402,7 +402,7 @@ static inline float mavlink_msg_landing_target_get_angle_x(const mavlink_message
|
||||
/**
|
||||
* @brief Get field angle_y from landing_target message
|
||||
*
|
||||
* @return [rad] Y-axis angular offset (in radians) of the target from the center of the image
|
||||
* @return [rad] Y-axis angular offset of the target from the center of the image
|
||||
*/
|
||||
static inline float mavlink_msg_landing_target_get_angle_y(const mavlink_message_t* msg)
|
||||
{
|
||||
@@ -412,7 +412,7 @@ static inline float mavlink_msg_landing_target_get_angle_y(const mavlink_message
|
||||
/**
|
||||
* @brief Get field distance from landing_target message
|
||||
*
|
||||
* @return [m] Distance to the target from the vehicle in meters
|
||||
* @return [m] Distance to the target from the vehicle
|
||||
*/
|
||||
static inline float mavlink_msg_landing_target_get_distance(const mavlink_message_t* msg)
|
||||
{
|
||||
@@ -422,7 +422,7 @@ static inline float mavlink_msg_landing_target_get_distance(const mavlink_messag
|
||||
/**
|
||||
* @brief Get field size_x from landing_target message
|
||||
*
|
||||
* @return [rad] Size in radians of target along x-axis
|
||||
* @return [rad] Size of target along x-axis
|
||||
*/
|
||||
static inline float mavlink_msg_landing_target_get_size_x(const mavlink_message_t* msg)
|
||||
{
|
||||
@@ -432,7 +432,7 @@ static inline float mavlink_msg_landing_target_get_size_x(const mavlink_message_
|
||||
/**
|
||||
* @brief Get field size_y from landing_target message
|
||||
*
|
||||
* @return [rad] Size in radians of target along y-axis
|
||||
* @return [rad] Size of target along y-axis
|
||||
*/
|
||||
static inline float mavlink_msg_landing_target_get_size_y(const mavlink_message_t* msg)
|
||||
{
|
||||
@@ -482,7 +482,7 @@ static inline uint16_t mavlink_msg_landing_target_get_q(const mavlink_message_t*
|
||||
/**
|
||||
* @brief Get field type from landing_target message
|
||||
*
|
||||
* @return LANDING_TARGET_TYPE enum specifying the type of landing target
|
||||
* @return Type of landing target
|
||||
*/
|
||||
static inline uint8_t mavlink_msg_landing_target_get_type(const mavlink_message_t* msg)
|
||||
{
|
||||
@@ -492,7 +492,7 @@ static inline uint8_t mavlink_msg_landing_target_get_type(const mavlink_message_
|
||||
/**
|
||||
* @brief Get field position_valid from landing_target message
|
||||
*
|
||||
* @return Boolean indicating known position (1) or default unkown position (0), for validation of positioning of the landing target
|
||||
* @return Boolean indicating known position (1) or default unknown position (0), for validation of positioning of the landing target
|
||||
*/
|
||||
static inline uint8_t mavlink_msg_landing_target_get_position_valid(const mavlink_message_t* msg)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user