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
+45 -45
View File
@@ -5,15 +5,15 @@
MAVPACKED(
typedef struct __mavlink_set_attitude_target_t {
uint32_t time_boot_ms; /*< Timestamp in milliseconds since system boot*/
float q[4]; /*< Attitude quaternion (w, x, y, z order, zero-rotation is 1, 0, 0, 0)*/
float body_roll_rate; /*< Body roll rate in radians per second*/
float body_pitch_rate; /*< Body pitch rate in radians per second*/
float body_yaw_rate; /*< Body yaw rate in radians per second*/
float thrust; /*< Collective thrust, normalized to 0 .. 1 (-1 .. 1 for vehicles capable of reverse trust)*/
uint8_t target_system; /*< System ID*/
uint8_t target_component; /*< Component ID*/
uint8_t type_mask; /*< Mappings: If any of these bits are set, the corresponding input should be ignored: bit 1: body roll rate, bit 2: body pitch rate, bit 3: body yaw rate. bit 4-bit 6: reserved, bit 7: throttle, bit 8: attitude*/
uint32_t time_boot_ms; /*< [ms] Timestamp in milliseconds since system boot*/
float q[4]; /*< Attitude quaternion (w, x, y, z order, zero-rotation is 1, 0, 0, 0)*/
float body_roll_rate; /*< [rad/s] Body roll rate in radians per second*/
float body_pitch_rate; /*< [rad/s] Body pitch rate in radians per second*/
float body_yaw_rate; /*< [rad/s] Body yaw rate in radians per second*/
float thrust; /*< Collective thrust, normalized to 0 .. 1 (-1 .. 1 for vehicles capable of reverse trust)*/
uint8_t target_system; /*< System ID*/
uint8_t target_component; /*< Component ID*/
uint8_t type_mask; /*< Mappings: If any of these bits are set, the corresponding input should be ignored: bit 1: body roll rate, bit 2: body pitch rate, bit 3: body yaw rate. bit 4-bit 6: reserved, bit 7: throttle, bit 8: attitude*/
}) mavlink_set_attitude_target_t;
#define MAVLINK_MSG_ID_SET_ATTITUDE_TARGET_LEN 39
@@ -65,15 +65,15 @@ typedef struct __mavlink_set_attitude_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_boot_ms Timestamp in milliseconds since system boot
* @param target_system System ID
* @param target_component Component ID
* @param type_mask Mappings: If any of these bits are set, the corresponding input should be ignored: bit 1: body roll rate, bit 2: body pitch rate, bit 3: body yaw rate. bit 4-bit 6: reserved, bit 7: throttle, bit 8: attitude
* @param q Attitude quaternion (w, x, y, z order, zero-rotation is 1, 0, 0, 0)
* @param body_roll_rate Body roll rate in radians per second
* @param body_pitch_rate Body pitch rate in radians per second
* @param body_yaw_rate Body yaw rate in radians per second
* @param thrust Collective thrust, normalized to 0 .. 1 (-1 .. 1 for vehicles capable of reverse trust)
* @param time_boot_ms [ms] Timestamp in milliseconds since system boot
* @param target_system System ID
* @param target_component Component ID
* @param type_mask Mappings: If any of these bits are set, the corresponding input should be ignored: bit 1: body roll rate, bit 2: body pitch rate, bit 3: body yaw rate. bit 4-bit 6: reserved, bit 7: throttle, bit 8: attitude
* @param q Attitude quaternion (w, x, y, z order, zero-rotation is 1, 0, 0, 0)
* @param body_roll_rate [rad/s] Body roll rate in radians per second
* @param body_pitch_rate [rad/s] Body pitch rate in radians per second
* @param body_yaw_rate [rad/s] Body yaw rate in radians per second
* @param thrust Collective thrust, normalized to 0 .. 1 (-1 .. 1 for vehicles capable of reverse trust)
* @return length of the message in bytes (excluding serial stream start sign)
*/
static inline uint16_t mavlink_msg_set_attitude_target_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
@@ -115,15 +115,15 @@ static inline uint16_t mavlink_msg_set_attitude_target_pack(uint8_t system_id, u
* @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_boot_ms Timestamp in milliseconds since system boot
* @param target_system System ID
* @param target_component Component ID
* @param type_mask Mappings: If any of these bits are set, the corresponding input should be ignored: bit 1: body roll rate, bit 2: body pitch rate, bit 3: body yaw rate. bit 4-bit 6: reserved, bit 7: throttle, bit 8: attitude
* @param q Attitude quaternion (w, x, y, z order, zero-rotation is 1, 0, 0, 0)
* @param body_roll_rate Body roll rate in radians per second
* @param body_pitch_rate Body pitch rate in radians per second
* @param body_yaw_rate Body yaw rate in radians per second
* @param thrust Collective thrust, normalized to 0 .. 1 (-1 .. 1 for vehicles capable of reverse trust)
* @param time_boot_ms [ms] Timestamp in milliseconds since system boot
* @param target_system System ID
* @param target_component Component ID
* @param type_mask Mappings: If any of these bits are set, the corresponding input should be ignored: bit 1: body roll rate, bit 2: body pitch rate, bit 3: body yaw rate. bit 4-bit 6: reserved, bit 7: throttle, bit 8: attitude
* @param q Attitude quaternion (w, x, y, z order, zero-rotation is 1, 0, 0, 0)
* @param body_roll_rate [rad/s] Body roll rate in radians per second
* @param body_pitch_rate [rad/s] Body pitch rate in radians per second
* @param body_yaw_rate [rad/s] Body yaw rate in radians per second
* @param thrust Collective thrust, normalized to 0 .. 1 (-1 .. 1 for vehicles capable of reverse trust)
* @return length of the message in bytes (excluding serial stream start sign)
*/
static inline uint16_t mavlink_msg_set_attitude_target_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan,
@@ -191,15 +191,15 @@ static inline uint16_t mavlink_msg_set_attitude_target_encode_chan(uint8_t syste
* @brief Send a set_attitude_target message
* @param chan MAVLink channel to send the message
*
* @param time_boot_ms Timestamp in milliseconds since system boot
* @param target_system System ID
* @param target_component Component ID
* @param type_mask Mappings: If any of these bits are set, the corresponding input should be ignored: bit 1: body roll rate, bit 2: body pitch rate, bit 3: body yaw rate. bit 4-bit 6: reserved, bit 7: throttle, bit 8: attitude
* @param q Attitude quaternion (w, x, y, z order, zero-rotation is 1, 0, 0, 0)
* @param body_roll_rate Body roll rate in radians per second
* @param body_pitch_rate Body pitch rate in radians per second
* @param body_yaw_rate Body yaw rate in radians per second
* @param thrust Collective thrust, normalized to 0 .. 1 (-1 .. 1 for vehicles capable of reverse trust)
* @param time_boot_ms [ms] Timestamp in milliseconds since system boot
* @param target_system System ID
* @param target_component Component ID
* @param type_mask Mappings: If any of these bits are set, the corresponding input should be ignored: bit 1: body roll rate, bit 2: body pitch rate, bit 3: body yaw rate. bit 4-bit 6: reserved, bit 7: throttle, bit 8: attitude
* @param q Attitude quaternion (w, x, y, z order, zero-rotation is 1, 0, 0, 0)
* @param body_roll_rate [rad/s] Body roll rate in radians per second
* @param body_pitch_rate [rad/s] Body pitch rate in radians per second
* @param body_yaw_rate [rad/s] Body yaw rate in radians per second
* @param thrust Collective thrust, normalized to 0 .. 1 (-1 .. 1 for vehicles capable of reverse trust)
*/
#ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS
@@ -292,7 +292,7 @@ static inline void mavlink_msg_set_attitude_target_send_buf(mavlink_message_t *m
/**
* @brief Get field time_boot_ms from set_attitude_target message
*
* @return Timestamp in milliseconds since system boot
* @return [ms] Timestamp in milliseconds since system boot
*/
static inline uint32_t mavlink_msg_set_attitude_target_get_time_boot_ms(const mavlink_message_t* msg)
{
@@ -302,7 +302,7 @@ static inline uint32_t mavlink_msg_set_attitude_target_get_time_boot_ms(const ma
/**
* @brief Get field target_system from set_attitude_target message
*
* @return System ID
* @return System ID
*/
static inline uint8_t mavlink_msg_set_attitude_target_get_target_system(const mavlink_message_t* msg)
{
@@ -312,7 +312,7 @@ static inline uint8_t mavlink_msg_set_attitude_target_get_target_system(const ma
/**
* @brief Get field target_component from set_attitude_target message
*
* @return Component ID
* @return Component ID
*/
static inline uint8_t mavlink_msg_set_attitude_target_get_target_component(const mavlink_message_t* msg)
{
@@ -322,7 +322,7 @@ static inline uint8_t mavlink_msg_set_attitude_target_get_target_component(const
/**
* @brief Get field type_mask from set_attitude_target message
*
* @return Mappings: If any of these bits are set, the corresponding input should be ignored: bit 1: body roll rate, bit 2: body pitch rate, bit 3: body yaw rate. bit 4-bit 6: reserved, bit 7: throttle, bit 8: attitude
* @return Mappings: If any of these bits are set, the corresponding input should be ignored: bit 1: body roll rate, bit 2: body pitch rate, bit 3: body yaw rate. bit 4-bit 6: reserved, bit 7: throttle, bit 8: attitude
*/
static inline uint8_t mavlink_msg_set_attitude_target_get_type_mask(const mavlink_message_t* msg)
{
@@ -332,7 +332,7 @@ static inline uint8_t mavlink_msg_set_attitude_target_get_type_mask(const mavlin
/**
* @brief Get field q from set_attitude_target message
*
* @return Attitude quaternion (w, x, y, z order, zero-rotation is 1, 0, 0, 0)
* @return Attitude quaternion (w, x, y, z order, zero-rotation is 1, 0, 0, 0)
*/
static inline uint16_t mavlink_msg_set_attitude_target_get_q(const mavlink_message_t* msg, float *q)
{
@@ -342,7 +342,7 @@ static inline uint16_t mavlink_msg_set_attitude_target_get_q(const mavlink_messa
/**
* @brief Get field body_roll_rate from set_attitude_target message
*
* @return Body roll rate in radians per second
* @return [rad/s] Body roll rate in radians per second
*/
static inline float mavlink_msg_set_attitude_target_get_body_roll_rate(const mavlink_message_t* msg)
{
@@ -352,7 +352,7 @@ static inline float mavlink_msg_set_attitude_target_get_body_roll_rate(const mav
/**
* @brief Get field body_pitch_rate from set_attitude_target message
*
* @return Body pitch rate in radians per second
* @return [rad/s] Body pitch rate in radians per second
*/
static inline float mavlink_msg_set_attitude_target_get_body_pitch_rate(const mavlink_message_t* msg)
{
@@ -362,7 +362,7 @@ static inline float mavlink_msg_set_attitude_target_get_body_pitch_rate(const ma
/**
* @brief Get field body_yaw_rate from set_attitude_target message
*
* @return Body yaw rate in radians per second
* @return [rad/s] Body yaw rate in radians per second
*/
static inline float mavlink_msg_set_attitude_target_get_body_yaw_rate(const mavlink_message_t* msg)
{
@@ -372,7 +372,7 @@ static inline float mavlink_msg_set_attitude_target_get_body_yaw_rate(const mavl
/**
* @brief Get field thrust from set_attitude_target message
*
* @return Collective thrust, normalized to 0 .. 1 (-1 .. 1 for vehicles capable of reverse trust)
* @return Collective thrust, normalized to 0 .. 1 (-1 .. 1 for vehicles capable of reverse trust)
*/
static inline float mavlink_msg_set_attitude_target_get_thrust(const mavlink_message_t* msg)
{