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_position_target_local_ned_t {
uint32_t time_boot_ms; /*< Timestamp in milliseconds since system boot*/
float x; /*< X Position in NED frame in meters*/
float y; /*< Y Position in NED frame in meters*/
float z; /*< Z Position in NED frame in meters (note, altitude is negative in NED)*/
float vx; /*< X velocity in NED frame in meter / s*/
float vy; /*< Y velocity in NED frame in meter / s*/
float vz; /*< Z velocity in NED frame in meter / s*/
float afx; /*< X acceleration or force (if bit 10 of type_mask is set) in NED frame in meter / s^2 or N*/
float afy; /*< Y acceleration or force (if bit 10 of type_mask is set) in NED frame in meter / s^2 or N*/
float afz; /*< Z acceleration or force (if bit 10 of type_mask is set) in NED frame in meter / s^2 or N*/
float yaw; /*< yaw setpoint in rad*/
float yaw_rate; /*< yaw rate setpoint in rad/s*/
uint16_t type_mask; /*< Bitmask to indicate which dimensions should be ignored by the vehicle: a value of 0b0000000000000000 or 0b0000001000000000 indicates that none of the setpoint dimensions should be ignored. If bit 10 is set the floats afx afy afz should be interpreted as force instead of acceleration. Mapping: bit 1: x, bit 2: y, bit 3: z, bit 4: vx, bit 5: vy, bit 6: vz, bit 7: ax, bit 8: ay, bit 9: az, bit 10: is force setpoint, bit 11: yaw, bit 12: yaw rate*/
uint8_t coordinate_frame; /*< Valid options are: MAV_FRAME_LOCAL_NED = 1, MAV_FRAME_LOCAL_OFFSET_NED = 7, MAV_FRAME_BODY_NED = 8, MAV_FRAME_BODY_OFFSET_NED = 9*/
uint32_t time_boot_ms; /*< [ms] Timestamp in milliseconds since system boot*/
float x; /*< [m] X Position in NED frame in meters*/
float y; /*< [m] Y Position in NED frame in meters*/
float z; /*< [m] Z Position in NED frame in meters (note, altitude is negative in NED)*/
float vx; /*< [m/s] X velocity in NED frame in meter / s*/
float vy; /*< [m/s] Y velocity in NED frame in meter / s*/
float vz; /*< [m/s] Z velocity in NED frame in meter / s*/
float afx; /*< [m/s/s] X acceleration or force (if bit 10 of type_mask is set) in NED frame in meter / s^2 or N*/
float afy; /*< [m/s/s] Y acceleration or force (if bit 10 of type_mask is set) in NED frame in meter / s^2 or N*/
float afz; /*< [m/s/s] Z acceleration or force (if bit 10 of type_mask is set) in NED frame in meter / s^2 or N*/
float yaw; /*< [rad] yaw setpoint in rad*/
float yaw_rate; /*< [rad/s] yaw rate setpoint in rad/s*/
uint16_t type_mask; /*< Bitmask to indicate which dimensions should be ignored by the vehicle: a value of 0b0000000000000000 or 0b0000001000000000 indicates that none of the setpoint dimensions should be ignored. If bit 10 is set the floats afx afy afz should be interpreted as force instead of acceleration. Mapping: bit 1: x, bit 2: y, bit 3: z, bit 4: vx, bit 5: vy, bit 6: vz, bit 7: ax, bit 8: ay, bit 9: az, bit 10: is force setpoint, bit 11: yaw, bit 12: yaw rate*/
uint8_t coordinate_frame; /*< Valid options are: MAV_FRAME_LOCAL_NED = 1, MAV_FRAME_LOCAL_OFFSET_NED = 7, MAV_FRAME_BODY_NED = 8, MAV_FRAME_BODY_OFFSET_NED = 9*/
}) mavlink_position_target_local_ned_t;
#define MAVLINK_MSG_ID_POSITION_TARGET_LOCAL_NED_LEN 51
@@ -80,20 +80,20 @@ typedef struct __mavlink_position_target_local_ned_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 coordinate_frame Valid options are: MAV_FRAME_LOCAL_NED = 1, MAV_FRAME_LOCAL_OFFSET_NED = 7, MAV_FRAME_BODY_NED = 8, MAV_FRAME_BODY_OFFSET_NED = 9
* @param type_mask Bitmask to indicate which dimensions should be ignored by the vehicle: a value of 0b0000000000000000 or 0b0000001000000000 indicates that none of the setpoint dimensions should be ignored. If bit 10 is set the floats afx afy afz should be interpreted as force instead of acceleration. Mapping: bit 1: x, bit 2: y, bit 3: z, bit 4: vx, bit 5: vy, bit 6: vz, bit 7: ax, bit 8: ay, bit 9: az, bit 10: is force setpoint, bit 11: yaw, bit 12: yaw rate
* @param x X Position in NED frame in meters
* @param y Y Position in NED frame in meters
* @param z Z Position in NED frame in meters (note, altitude is negative in NED)
* @param vx X velocity in NED frame in meter / s
* @param vy Y velocity in NED frame in meter / s
* @param vz Z velocity in NED frame in meter / s
* @param afx X acceleration or force (if bit 10 of type_mask is set) in NED frame in meter / s^2 or N
* @param afy Y acceleration or force (if bit 10 of type_mask is set) in NED frame in meter / s^2 or N
* @param afz Z acceleration or force (if bit 10 of type_mask is set) in NED frame in meter / s^2 or N
* @param yaw yaw setpoint in rad
* @param yaw_rate yaw rate setpoint in rad/s
* @param time_boot_ms [ms] Timestamp in milliseconds since system boot
* @param coordinate_frame Valid options are: MAV_FRAME_LOCAL_NED = 1, MAV_FRAME_LOCAL_OFFSET_NED = 7, MAV_FRAME_BODY_NED = 8, MAV_FRAME_BODY_OFFSET_NED = 9
* @param type_mask Bitmask to indicate which dimensions should be ignored by the vehicle: a value of 0b0000000000000000 or 0b0000001000000000 indicates that none of the setpoint dimensions should be ignored. If bit 10 is set the floats afx afy afz should be interpreted as force instead of acceleration. Mapping: bit 1: x, bit 2: y, bit 3: z, bit 4: vx, bit 5: vy, bit 6: vz, bit 7: ax, bit 8: ay, bit 9: az, bit 10: is force setpoint, bit 11: yaw, bit 12: yaw rate
* @param x [m] X Position in NED frame in meters
* @param y [m] Y Position in NED frame in meters
* @param z [m] Z Position in NED frame in meters (note, altitude is negative in NED)
* @param vx [m/s] X velocity in NED frame in meter / s
* @param vy [m/s] Y velocity in NED frame in meter / s
* @param vz [m/s] Z velocity in NED frame in meter / s
* @param afx [m/s/s] X acceleration or force (if bit 10 of type_mask is set) in NED frame in meter / s^2 or N
* @param afy [m/s/s] Y acceleration or force (if bit 10 of type_mask is set) in NED frame in meter / s^2 or N
* @param afz [m/s/s] Z acceleration or force (if bit 10 of type_mask is set) in NED frame in meter / s^2 or N
* @param yaw [rad] yaw setpoint in rad
* @param yaw_rate [rad/s] yaw rate setpoint in rad/s
* @return length of the message in bytes (excluding serial stream start sign)
*/
static inline uint16_t mavlink_msg_position_target_local_ned_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
@@ -147,20 +147,20 @@ static inline uint16_t mavlink_msg_position_target_local_ned_pack(uint8_t system
* @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 coordinate_frame Valid options are: MAV_FRAME_LOCAL_NED = 1, MAV_FRAME_LOCAL_OFFSET_NED = 7, MAV_FRAME_BODY_NED = 8, MAV_FRAME_BODY_OFFSET_NED = 9
* @param type_mask Bitmask to indicate which dimensions should be ignored by the vehicle: a value of 0b0000000000000000 or 0b0000001000000000 indicates that none of the setpoint dimensions should be ignored. If bit 10 is set the floats afx afy afz should be interpreted as force instead of acceleration. Mapping: bit 1: x, bit 2: y, bit 3: z, bit 4: vx, bit 5: vy, bit 6: vz, bit 7: ax, bit 8: ay, bit 9: az, bit 10: is force setpoint, bit 11: yaw, bit 12: yaw rate
* @param x X Position in NED frame in meters
* @param y Y Position in NED frame in meters
* @param z Z Position in NED frame in meters (note, altitude is negative in NED)
* @param vx X velocity in NED frame in meter / s
* @param vy Y velocity in NED frame in meter / s
* @param vz Z velocity in NED frame in meter / s
* @param afx X acceleration or force (if bit 10 of type_mask is set) in NED frame in meter / s^2 or N
* @param afy Y acceleration or force (if bit 10 of type_mask is set) in NED frame in meter / s^2 or N
* @param afz Z acceleration or force (if bit 10 of type_mask is set) in NED frame in meter / s^2 or N
* @param yaw yaw setpoint in rad
* @param yaw_rate yaw rate setpoint in rad/s
* @param time_boot_ms [ms] Timestamp in milliseconds since system boot
* @param coordinate_frame Valid options are: MAV_FRAME_LOCAL_NED = 1, MAV_FRAME_LOCAL_OFFSET_NED = 7, MAV_FRAME_BODY_NED = 8, MAV_FRAME_BODY_OFFSET_NED = 9
* @param type_mask Bitmask to indicate which dimensions should be ignored by the vehicle: a value of 0b0000000000000000 or 0b0000001000000000 indicates that none of the setpoint dimensions should be ignored. If bit 10 is set the floats afx afy afz should be interpreted as force instead of acceleration. Mapping: bit 1: x, bit 2: y, bit 3: z, bit 4: vx, bit 5: vy, bit 6: vz, bit 7: ax, bit 8: ay, bit 9: az, bit 10: is force setpoint, bit 11: yaw, bit 12: yaw rate
* @param x [m] X Position in NED frame in meters
* @param y [m] Y Position in NED frame in meters
* @param z [m] Z Position in NED frame in meters (note, altitude is negative in NED)
* @param vx [m/s] X velocity in NED frame in meter / s
* @param vy [m/s] Y velocity in NED frame in meter / s
* @param vz [m/s] Z velocity in NED frame in meter / s
* @param afx [m/s/s] X acceleration or force (if bit 10 of type_mask is set) in NED frame in meter / s^2 or N
* @param afy [m/s/s] Y acceleration or force (if bit 10 of type_mask is set) in NED frame in meter / s^2 or N
* @param afz [m/s/s] Z acceleration or force (if bit 10 of type_mask is set) in NED frame in meter / s^2 or N
* @param yaw [rad] yaw setpoint in rad
* @param yaw_rate [rad/s] yaw rate setpoint in rad/s
* @return length of the message in bytes (excluding serial stream start sign)
*/
static inline uint16_t mavlink_msg_position_target_local_ned_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan,
@@ -240,20 +240,20 @@ static inline uint16_t mavlink_msg_position_target_local_ned_encode_chan(uint8_t
* @brief Send a position_target_local_ned message
* @param chan MAVLink channel to send the message
*
* @param time_boot_ms Timestamp in milliseconds since system boot
* @param coordinate_frame Valid options are: MAV_FRAME_LOCAL_NED = 1, MAV_FRAME_LOCAL_OFFSET_NED = 7, MAV_FRAME_BODY_NED = 8, MAV_FRAME_BODY_OFFSET_NED = 9
* @param type_mask Bitmask to indicate which dimensions should be ignored by the vehicle: a value of 0b0000000000000000 or 0b0000001000000000 indicates that none of the setpoint dimensions should be ignored. If bit 10 is set the floats afx afy afz should be interpreted as force instead of acceleration. Mapping: bit 1: x, bit 2: y, bit 3: z, bit 4: vx, bit 5: vy, bit 6: vz, bit 7: ax, bit 8: ay, bit 9: az, bit 10: is force setpoint, bit 11: yaw, bit 12: yaw rate
* @param x X Position in NED frame in meters
* @param y Y Position in NED frame in meters
* @param z Z Position in NED frame in meters (note, altitude is negative in NED)
* @param vx X velocity in NED frame in meter / s
* @param vy Y velocity in NED frame in meter / s
* @param vz Z velocity in NED frame in meter / s
* @param afx X acceleration or force (if bit 10 of type_mask is set) in NED frame in meter / s^2 or N
* @param afy Y acceleration or force (if bit 10 of type_mask is set) in NED frame in meter / s^2 or N
* @param afz Z acceleration or force (if bit 10 of type_mask is set) in NED frame in meter / s^2 or N
* @param yaw yaw setpoint in rad
* @param yaw_rate yaw rate setpoint in rad/s
* @param time_boot_ms [ms] Timestamp in milliseconds since system boot
* @param coordinate_frame Valid options are: MAV_FRAME_LOCAL_NED = 1, MAV_FRAME_LOCAL_OFFSET_NED = 7, MAV_FRAME_BODY_NED = 8, MAV_FRAME_BODY_OFFSET_NED = 9
* @param type_mask Bitmask to indicate which dimensions should be ignored by the vehicle: a value of 0b0000000000000000 or 0b0000001000000000 indicates that none of the setpoint dimensions should be ignored. If bit 10 is set the floats afx afy afz should be interpreted as force instead of acceleration. Mapping: bit 1: x, bit 2: y, bit 3: z, bit 4: vx, bit 5: vy, bit 6: vz, bit 7: ax, bit 8: ay, bit 9: az, bit 10: is force setpoint, bit 11: yaw, bit 12: yaw rate
* @param x [m] X Position in NED frame in meters
* @param y [m] Y Position in NED frame in meters
* @param z [m] Z Position in NED frame in meters (note, altitude is negative in NED)
* @param vx [m/s] X velocity in NED frame in meter / s
* @param vy [m/s] Y velocity in NED frame in meter / s
* @param vz [m/s] Z velocity in NED frame in meter / s
* @param afx [m/s/s] X acceleration or force (if bit 10 of type_mask is set) in NED frame in meter / s^2 or N
* @param afy [m/s/s] Y acceleration or force (if bit 10 of type_mask is set) in NED frame in meter / s^2 or N
* @param afz [m/s/s] Z acceleration or force (if bit 10 of type_mask is set) in NED frame in meter / s^2 or N
* @param yaw [rad] yaw setpoint in rad
* @param yaw_rate [rad/s] yaw rate setpoint in rad/s
*/
#ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS
@@ -370,7 +370,7 @@ static inline void mavlink_msg_position_target_local_ned_send_buf(mavlink_messag
/**
* @brief Get field time_boot_ms from position_target_local_ned message
*
* @return Timestamp in milliseconds since system boot
* @return [ms] Timestamp in milliseconds since system boot
*/
static inline uint32_t mavlink_msg_position_target_local_ned_get_time_boot_ms(const mavlink_message_t* msg)
{
@@ -380,7 +380,7 @@ static inline uint32_t mavlink_msg_position_target_local_ned_get_time_boot_ms(co
/**
* @brief Get field coordinate_frame from position_target_local_ned message
*
* @return Valid options are: MAV_FRAME_LOCAL_NED = 1, MAV_FRAME_LOCAL_OFFSET_NED = 7, MAV_FRAME_BODY_NED = 8, MAV_FRAME_BODY_OFFSET_NED = 9
* @return Valid options are: MAV_FRAME_LOCAL_NED = 1, MAV_FRAME_LOCAL_OFFSET_NED = 7, MAV_FRAME_BODY_NED = 8, MAV_FRAME_BODY_OFFSET_NED = 9
*/
static inline uint8_t mavlink_msg_position_target_local_ned_get_coordinate_frame(const mavlink_message_t* msg)
{
@@ -390,7 +390,7 @@ static inline uint8_t mavlink_msg_position_target_local_ned_get_coordinate_frame
/**
* @brief Get field type_mask from position_target_local_ned message
*
* @return Bitmask to indicate which dimensions should be ignored by the vehicle: a value of 0b0000000000000000 or 0b0000001000000000 indicates that none of the setpoint dimensions should be ignored. If bit 10 is set the floats afx afy afz should be interpreted as force instead of acceleration. Mapping: bit 1: x, bit 2: y, bit 3: z, bit 4: vx, bit 5: vy, bit 6: vz, bit 7: ax, bit 8: ay, bit 9: az, bit 10: is force setpoint, bit 11: yaw, bit 12: yaw rate
* @return Bitmask to indicate which dimensions should be ignored by the vehicle: a value of 0b0000000000000000 or 0b0000001000000000 indicates that none of the setpoint dimensions should be ignored. If bit 10 is set the floats afx afy afz should be interpreted as force instead of acceleration. Mapping: bit 1: x, bit 2: y, bit 3: z, bit 4: vx, bit 5: vy, bit 6: vz, bit 7: ax, bit 8: ay, bit 9: az, bit 10: is force setpoint, bit 11: yaw, bit 12: yaw rate
*/
static inline uint16_t mavlink_msg_position_target_local_ned_get_type_mask(const mavlink_message_t* msg)
{
@@ -400,7 +400,7 @@ static inline uint16_t mavlink_msg_position_target_local_ned_get_type_mask(const
/**
* @brief Get field x from position_target_local_ned message
*
* @return X Position in NED frame in meters
* @return [m] X Position in NED frame in meters
*/
static inline float mavlink_msg_position_target_local_ned_get_x(const mavlink_message_t* msg)
{
@@ -410,7 +410,7 @@ static inline float mavlink_msg_position_target_local_ned_get_x(const mavlink_me
/**
* @brief Get field y from position_target_local_ned message
*
* @return Y Position in NED frame in meters
* @return [m] Y Position in NED frame in meters
*/
static inline float mavlink_msg_position_target_local_ned_get_y(const mavlink_message_t* msg)
{
@@ -420,7 +420,7 @@ static inline float mavlink_msg_position_target_local_ned_get_y(const mavlink_me
/**
* @brief Get field z from position_target_local_ned message
*
* @return Z Position in NED frame in meters (note, altitude is negative in NED)
* @return [m] Z Position in NED frame in meters (note, altitude is negative in NED)
*/
static inline float mavlink_msg_position_target_local_ned_get_z(const mavlink_message_t* msg)
{
@@ -430,7 +430,7 @@ static inline float mavlink_msg_position_target_local_ned_get_z(const mavlink_me
/**
* @brief Get field vx from position_target_local_ned message
*
* @return X velocity in NED frame in meter / s
* @return [m/s] X velocity in NED frame in meter / s
*/
static inline float mavlink_msg_position_target_local_ned_get_vx(const mavlink_message_t* msg)
{
@@ -440,7 +440,7 @@ static inline float mavlink_msg_position_target_local_ned_get_vx(const mavlink_m
/**
* @brief Get field vy from position_target_local_ned message
*
* @return Y velocity in NED frame in meter / s
* @return [m/s] Y velocity in NED frame in meter / s
*/
static inline float mavlink_msg_position_target_local_ned_get_vy(const mavlink_message_t* msg)
{
@@ -450,7 +450,7 @@ static inline float mavlink_msg_position_target_local_ned_get_vy(const mavlink_m
/**
* @brief Get field vz from position_target_local_ned message
*
* @return Z velocity in NED frame in meter / s
* @return [m/s] Z velocity in NED frame in meter / s
*/
static inline float mavlink_msg_position_target_local_ned_get_vz(const mavlink_message_t* msg)
{
@@ -460,7 +460,7 @@ static inline float mavlink_msg_position_target_local_ned_get_vz(const mavlink_m
/**
* @brief Get field afx from position_target_local_ned message
*
* @return X acceleration or force (if bit 10 of type_mask is set) in NED frame in meter / s^2 or N
* @return [m/s/s] X acceleration or force (if bit 10 of type_mask is set) in NED frame in meter / s^2 or N
*/
static inline float mavlink_msg_position_target_local_ned_get_afx(const mavlink_message_t* msg)
{
@@ -470,7 +470,7 @@ static inline float mavlink_msg_position_target_local_ned_get_afx(const mavlink_
/**
* @brief Get field afy from position_target_local_ned message
*
* @return Y acceleration or force (if bit 10 of type_mask is set) in NED frame in meter / s^2 or N
* @return [m/s/s] Y acceleration or force (if bit 10 of type_mask is set) in NED frame in meter / s^2 or N
*/
static inline float mavlink_msg_position_target_local_ned_get_afy(const mavlink_message_t* msg)
{
@@ -480,7 +480,7 @@ static inline float mavlink_msg_position_target_local_ned_get_afy(const mavlink_
/**
* @brief Get field afz from position_target_local_ned message
*
* @return Z acceleration or force (if bit 10 of type_mask is set) in NED frame in meter / s^2 or N
* @return [m/s/s] Z acceleration or force (if bit 10 of type_mask is set) in NED frame in meter / s^2 or N
*/
static inline float mavlink_msg_position_target_local_ned_get_afz(const mavlink_message_t* msg)
{
@@ -490,7 +490,7 @@ static inline float mavlink_msg_position_target_local_ned_get_afz(const mavlink_
/**
* @brief Get field yaw from position_target_local_ned message
*
* @return yaw setpoint in rad
* @return [rad] yaw setpoint in rad
*/
static inline float mavlink_msg_position_target_local_ned_get_yaw(const mavlink_message_t* msg)
{
@@ -500,7 +500,7 @@ static inline float mavlink_msg_position_target_local_ned_get_yaw(const mavlink_
/**
* @brief Get field yaw_rate from position_target_local_ned message
*
* @return yaw rate setpoint in rad/s
* @return [rad/s] yaw rate setpoint in rad/s
*/
static inline float mavlink_msg_position_target_local_ned_get_yaw_rate(const mavlink_message_t* msg)
{