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
+30 -30
View File
@@ -5,12 +5,12 @@
MAVPACKED(
typedef struct __mavlink_obstacle_distance_t {
uint64_t time_usec; /*< Timestamp (microseconds since system boot or since UNIX epoch).*/
uint16_t distances[72]; /*< Distance of obstacles around the UAV with index 0 corresponding to local North. A value of 0 means that the obstacle is right in front of the sensor. A value of max_distance +1 means no obstacle is present. A value of UINT16_MAX for unknown/not used. In a array element, one unit corresponds to 1cm.*/
uint16_t min_distance; /*< Minimum distance the sensor can measure in centimeters.*/
uint16_t max_distance; /*< Maximum distance the sensor can measure in centimeters.*/
uint8_t sensor_type; /*< Class id of the distance sensor type.*/
uint8_t increment; /*< Angular width in degrees of each array element.*/
uint64_t time_usec; /*< [us] Timestamp (microseconds since system boot or since UNIX epoch).*/
uint16_t distances[72]; /*< [cm] Distance of obstacles around the UAV with index 0 corresponding to local North. A value of 0 means that the obstacle is right in front of the sensor. A value of max_distance +1 means no obstacle is present. A value of UINT16_MAX for unknown/not used. In a array element, one unit corresponds to 1cm.*/
uint16_t min_distance; /*< [cm] Minimum distance the sensor can measure in centimeters.*/
uint16_t max_distance; /*< [cm] Maximum distance the sensor can measure in centimeters.*/
uint8_t sensor_type; /*< Class id of the distance sensor type.*/
uint8_t increment; /*< [deg] Angular width in degrees of each array element.*/
}) mavlink_obstacle_distance_t;
#define MAVLINK_MSG_ID_OBSTACLE_DISTANCE_LEN 158
@@ -56,12 +56,12 @@ typedef struct __mavlink_obstacle_distance_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 (microseconds since system boot or since UNIX epoch).
* @param sensor_type Class id of the distance sensor type.
* @param distances Distance of obstacles around the UAV with index 0 corresponding to local North. A value of 0 means that the obstacle is right in front of the sensor. A value of max_distance +1 means no obstacle is present. A value of UINT16_MAX for unknown/not used. In a array element, one unit corresponds to 1cm.
* @param increment Angular width in degrees of each array element.
* @param min_distance Minimum distance the sensor can measure in centimeters.
* @param max_distance Maximum distance the sensor can measure in centimeters.
* @param time_usec [us] Timestamp (microseconds since system boot or since UNIX epoch).
* @param sensor_type Class id of the distance sensor type.
* @param distances [cm] Distance of obstacles around the UAV with index 0 corresponding to local North. A value of 0 means that the obstacle is right in front of the sensor. A value of max_distance +1 means no obstacle is present. A value of UINT16_MAX for unknown/not used. In a array element, one unit corresponds to 1cm.
* @param increment [deg] Angular width in degrees of each array element.
* @param min_distance [cm] Minimum distance the sensor can measure in centimeters.
* @param max_distance [cm] Maximum distance the sensor can measure in centimeters.
* @return length of the message in bytes (excluding serial stream start sign)
*/
static inline uint16_t mavlink_msg_obstacle_distance_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
@@ -97,12 +97,12 @@ static inline uint16_t mavlink_msg_obstacle_distance_pack(uint8_t system_id, uin
* @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 (microseconds since system boot or since UNIX epoch).
* @param sensor_type Class id of the distance sensor type.
* @param distances Distance of obstacles around the UAV with index 0 corresponding to local North. A value of 0 means that the obstacle is right in front of the sensor. A value of max_distance +1 means no obstacle is present. A value of UINT16_MAX for unknown/not used. In a array element, one unit corresponds to 1cm.
* @param increment Angular width in degrees of each array element.
* @param min_distance Minimum distance the sensor can measure in centimeters.
* @param max_distance Maximum distance the sensor can measure in centimeters.
* @param time_usec [us] Timestamp (microseconds since system boot or since UNIX epoch).
* @param sensor_type Class id of the distance sensor type.
* @param distances [cm] Distance of obstacles around the UAV with index 0 corresponding to local North. A value of 0 means that the obstacle is right in front of the sensor. A value of max_distance +1 means no obstacle is present. A value of UINT16_MAX for unknown/not used. In a array element, one unit corresponds to 1cm.
* @param increment [deg] Angular width in degrees of each array element.
* @param min_distance [cm] Minimum distance the sensor can measure in centimeters.
* @param max_distance [cm] Maximum distance the sensor can measure in centimeters.
* @return length of the message in bytes (excluding serial stream start sign)
*/
static inline uint16_t mavlink_msg_obstacle_distance_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan,
@@ -164,12 +164,12 @@ static inline uint16_t mavlink_msg_obstacle_distance_encode_chan(uint8_t system_
* @brief Send a obstacle_distance message
* @param chan MAVLink channel to send the message
*
* @param time_usec Timestamp (microseconds since system boot or since UNIX epoch).
* @param sensor_type Class id of the distance sensor type.
* @param distances Distance of obstacles around the UAV with index 0 corresponding to local North. A value of 0 means that the obstacle is right in front of the sensor. A value of max_distance +1 means no obstacle is present. A value of UINT16_MAX for unknown/not used. In a array element, one unit corresponds to 1cm.
* @param increment Angular width in degrees of each array element.
* @param min_distance Minimum distance the sensor can measure in centimeters.
* @param max_distance Maximum distance the sensor can measure in centimeters.
* @param time_usec [us] Timestamp (microseconds since system boot or since UNIX epoch).
* @param sensor_type Class id of the distance sensor type.
* @param distances [cm] Distance of obstacles around the UAV with index 0 corresponding to local North. A value of 0 means that the obstacle is right in front of the sensor. A value of max_distance +1 means no obstacle is present. A value of UINT16_MAX for unknown/not used. In a array element, one unit corresponds to 1cm.
* @param increment [deg] Angular width in degrees of each array element.
* @param min_distance [cm] Minimum distance the sensor can measure in centimeters.
* @param max_distance [cm] Maximum distance the sensor can measure in centimeters.
*/
#ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS
@@ -250,7 +250,7 @@ static inline void mavlink_msg_obstacle_distance_send_buf(mavlink_message_t *msg
/**
* @brief Get field time_usec from obstacle_distance message
*
* @return Timestamp (microseconds since system boot or since UNIX epoch).
* @return [us] Timestamp (microseconds since system boot or since UNIX epoch).
*/
static inline uint64_t mavlink_msg_obstacle_distance_get_time_usec(const mavlink_message_t* msg)
{
@@ -260,7 +260,7 @@ static inline uint64_t mavlink_msg_obstacle_distance_get_time_usec(const mavlink
/**
* @brief Get field sensor_type from obstacle_distance message
*
* @return Class id of the distance sensor type.
* @return Class id of the distance sensor type.
*/
static inline uint8_t mavlink_msg_obstacle_distance_get_sensor_type(const mavlink_message_t* msg)
{
@@ -270,7 +270,7 @@ static inline uint8_t mavlink_msg_obstacle_distance_get_sensor_type(const mavlin
/**
* @brief Get field distances from obstacle_distance message
*
* @return Distance of obstacles around the UAV with index 0 corresponding to local North. A value of 0 means that the obstacle is right in front of the sensor. A value of max_distance +1 means no obstacle is present. A value of UINT16_MAX for unknown/not used. In a array element, one unit corresponds to 1cm.
* @return [cm] Distance of obstacles around the UAV with index 0 corresponding to local North. A value of 0 means that the obstacle is right in front of the sensor. A value of max_distance +1 means no obstacle is present. A value of UINT16_MAX for unknown/not used. In a array element, one unit corresponds to 1cm.
*/
static inline uint16_t mavlink_msg_obstacle_distance_get_distances(const mavlink_message_t* msg, uint16_t *distances)
{
@@ -280,7 +280,7 @@ static inline uint16_t mavlink_msg_obstacle_distance_get_distances(const mavlink
/**
* @brief Get field increment from obstacle_distance message
*
* @return Angular width in degrees of each array element.
* @return [deg] Angular width in degrees of each array element.
*/
static inline uint8_t mavlink_msg_obstacle_distance_get_increment(const mavlink_message_t* msg)
{
@@ -290,7 +290,7 @@ static inline uint8_t mavlink_msg_obstacle_distance_get_increment(const mavlink_
/**
* @brief Get field min_distance from obstacle_distance message
*
* @return Minimum distance the sensor can measure in centimeters.
* @return [cm] Minimum distance the sensor can measure in centimeters.
*/
static inline uint16_t mavlink_msg_obstacle_distance_get_min_distance(const mavlink_message_t* msg)
{
@@ -300,7 +300,7 @@ static inline uint16_t mavlink_msg_obstacle_distance_get_min_distance(const mavl
/**
* @brief Get field max_distance from obstacle_distance message
*
* @return Maximum distance the sensor can measure in centimeters.
* @return [cm] Maximum distance the sensor can measure in centimeters.
*/
static inline uint16_t mavlink_msg_obstacle_distance_get_max_distance(const mavlink_message_t* msg)
{