update xml, and pymavlink

This commit is contained in:
Matt
2018-06-03 17:07:10 +08:00
parent ec25673f44
commit 6a1a7939a4
247 changed files with 9247 additions and 9027 deletions
+70 -70
View File
@@ -5,20 +5,20 @@
MAVPACKED(
typedef struct __mavlink_landing_target_t {
uint64_t time_usec; /*< Timestamp (micros since boot or Unix epoch)*/
float angle_x; /*< X-axis angular offset (in radians) of the target from the center of the image*/
float angle_y; /*< Y-axis angular offset (in radians) of the target from the center of the image*/
float distance; /*< Distance to the target from the vehicle in meters*/
float size_x; /*< Size in radians of target along x-axis*/
float size_y; /*< Size in radians 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.*/
float x; /*< X Position of the landing target on MAV_FRAME*/
float y; /*< Y Position of the landing target on MAV_FRAME*/
float z; /*< 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*/
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*/
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.*/
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*/
}) 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 Timestamp (micros since boot or Unix epoch)
* @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 X-axis angular offset (in radians) of the target from the center of the image
* @param angle_y Y-axis angular offset (in radians) of the target from the center of the image
* @param distance Distance to the target from the vehicle in meters
* @param size_x Size in radians of target along x-axis
* @param size_y Size in radians of target along y-axis
* @param x X Position of the landing target on MAV_FRAME
* @param y Y Position of the landing target on MAV_FRAME
* @param z 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 time_usec [us] Timestamp (micros since boot or Unix epoch)
* @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 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
* @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 Timestamp (micros since boot or Unix epoch)
* @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 X-axis angular offset (in radians) of the target from the center of the image
* @param angle_y Y-axis angular offset (in radians) of the target from the center of the image
* @param distance Distance to the target from the vehicle in meters
* @param size_x Size in radians of target along x-axis
* @param size_y Size in radians of target along y-axis
* @param x X Position of the landing target on MAV_FRAME
* @param y Y Position of the landing target on MAV_FRAME
* @param z 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 time_usec [us] Timestamp (micros since boot or Unix epoch)
* @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 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
* @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 Timestamp (micros since boot or Unix epoch)
* @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 X-axis angular offset (in radians) of the target from the center of the image
* @param angle_y Y-axis angular offset (in radians) of the target from the center of the image
* @param distance Distance to the target from the vehicle in meters
* @param size_x Size in radians of target along x-axis
* @param size_y Size in radians of target along y-axis
* @param x X Position of the landing target on MAV_FRAME
* @param y Y Position of the landing target on MAV_FRAME
* @param z 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 time_usec [us] Timestamp (micros since boot or Unix epoch)
* @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 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
*/
#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 Timestamp (micros since boot or Unix epoch)
* @return [us] Timestamp (micros since boot or Unix epoch)
*/
static inline uint64_t mavlink_msg_landing_target_get_time_usec(const mavlink_message_t* msg)
{
@@ -372,7 +372,7 @@ static inline uint64_t mavlink_msg_landing_target_get_time_usec(const mavlink_me
/**
* @brief Get field target_num from landing_target message
*
* @return The ID of the target if multiple targets are present
* @return The ID of the target if multiple targets are present
*/
static inline uint8_t mavlink_msg_landing_target_get_target_num(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 MAV_FRAME enum specifying the whether the following feilds are earth-frame, body-frame, etc.
*/
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 X-axis angular offset (in radians) of the target from the center of the image
* @return [rad] X-axis angular offset (in radians) 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 Y-axis angular offset (in radians) of the target from the center of the image
* @return [rad] Y-axis angular offset (in radians) 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 Distance to the target from the vehicle in meters
* @return [m] Distance to the target from the vehicle in meters
*/
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 Size in radians of target along x-axis
* @return [rad] Size in radians 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 Size in radians of target along y-axis
* @return [rad] Size in radians of target along y-axis
*/
static inline float mavlink_msg_landing_target_get_size_y(const mavlink_message_t* msg)
{
@@ -442,7 +442,7 @@ static inline float mavlink_msg_landing_target_get_size_y(const mavlink_message_
/**
* @brief Get field x from landing_target message
*
* @return X Position of the landing target on MAV_FRAME
* @return [m] X Position of the landing target on MAV_FRAME
*/
static inline float mavlink_msg_landing_target_get_x(const mavlink_message_t* msg)
{
@@ -452,7 +452,7 @@ static inline float mavlink_msg_landing_target_get_x(const mavlink_message_t* ms
/**
* @brief Get field y from landing_target message
*
* @return Y Position of the landing target on MAV_FRAME
* @return [m] Y Position of the landing target on MAV_FRAME
*/
static inline float mavlink_msg_landing_target_get_y(const mavlink_message_t* msg)
{
@@ -462,7 +462,7 @@ static inline float mavlink_msg_landing_target_get_y(const mavlink_message_t* ms
/**
* @brief Get field z from landing_target message
*
* @return Z Position of the landing target on MAV_FRAME
* @return [m] Z Position of the landing target on MAV_FRAME
*/
static inline float mavlink_msg_landing_target_get_z(const mavlink_message_t* msg)
{
@@ -472,7 +472,7 @@ static inline float mavlink_msg_landing_target_get_z(const mavlink_message_t* ms
/**
* @brief Get field q from landing_target message
*
* @return Quaternion of landing target orientation (w, x, y, z order, zero-rotation is 1, 0, 0, 0)
* @return Quaternion of landing target orientation (w, x, y, z order, zero-rotation is 1, 0, 0, 0)
*/
static inline uint16_t mavlink_msg_landing_target_get_q(const mavlink_message_t* msg, float *q)
{
@@ -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 LANDING_TARGET_TYPE enum specifying the 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 unkown 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)
{