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
+75 -75
View File
@@ -5,21 +5,21 @@
MAVPACKED(
typedef struct __mavlink_highres_imu_t {
uint64_t time_usec; /*< Timestamp (microseconds, synced to UNIX time or since system boot)*/
float xacc; /*< X acceleration (m/s^2)*/
float yacc; /*< Y acceleration (m/s^2)*/
float zacc; /*< Z acceleration (m/s^2)*/
float xgyro; /*< Angular speed around X axis (rad / sec)*/
float ygyro; /*< Angular speed around Y axis (rad / sec)*/
float zgyro; /*< Angular speed around Z axis (rad / sec)*/
float xmag; /*< X Magnetic field (Gauss)*/
float ymag; /*< Y Magnetic field (Gauss)*/
float zmag; /*< Z Magnetic field (Gauss)*/
float abs_pressure; /*< Absolute pressure in millibar*/
float diff_pressure; /*< Differential pressure in millibar*/
float pressure_alt; /*< Altitude calculated from pressure*/
float temperature; /*< Temperature in degrees celsius*/
uint16_t fields_updated; /*< Bitmask for fields that have updated since last message, bit 0 = xacc, bit 12: temperature*/
uint64_t time_usec; /*< [us] Timestamp (microseconds, synced to UNIX time or since system boot)*/
float xacc; /*< [m/s/s] X acceleration (m/s^2)*/
float yacc; /*< [m/s/s] Y acceleration (m/s^2)*/
float zacc; /*< [m/s/s] Z acceleration (m/s^2)*/
float xgyro; /*< [rad/s] Angular speed around X axis (rad / sec)*/
float ygyro; /*< [rad/s] Angular speed around Y axis (rad / sec)*/
float zgyro; /*< [rad/s] Angular speed around Z axis (rad / sec)*/
float xmag; /*< [gauss] X Magnetic field (Gauss)*/
float ymag; /*< [gauss] Y Magnetic field (Gauss)*/
float zmag; /*< [gauss] Z Magnetic field (Gauss)*/
float abs_pressure; /*< [mbar] Absolute pressure in millibar*/
float diff_pressure; /*< [mbar] Differential pressure in millibar*/
float pressure_alt; /*< Altitude calculated from pressure*/
float temperature; /*< [degC] Temperature in degrees celsius*/
uint16_t fields_updated; /*< Bitmask for fields that have updated since last message, bit 0 = xacc, bit 12: temperature*/
}) mavlink_highres_imu_t;
#define MAVLINK_MSG_ID_HIGHRES_IMU_LEN 62
@@ -83,21 +83,21 @@ typedef struct __mavlink_highres_imu_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, synced to UNIX time or since system boot)
* @param xacc X acceleration (m/s^2)
* @param yacc Y acceleration (m/s^2)
* @param zacc Z acceleration (m/s^2)
* @param xgyro Angular speed around X axis (rad / sec)
* @param ygyro Angular speed around Y axis (rad / sec)
* @param zgyro Angular speed around Z axis (rad / sec)
* @param xmag X Magnetic field (Gauss)
* @param ymag Y Magnetic field (Gauss)
* @param zmag Z Magnetic field (Gauss)
* @param abs_pressure Absolute pressure in millibar
* @param diff_pressure Differential pressure in millibar
* @param pressure_alt Altitude calculated from pressure
* @param temperature Temperature in degrees celsius
* @param fields_updated Bitmask for fields that have updated since last message, bit 0 = xacc, bit 12: temperature
* @param time_usec [us] Timestamp (microseconds, synced to UNIX time or since system boot)
* @param xacc [m/s/s] X acceleration (m/s^2)
* @param yacc [m/s/s] Y acceleration (m/s^2)
* @param zacc [m/s/s] Z acceleration (m/s^2)
* @param xgyro [rad/s] Angular speed around X axis (rad / sec)
* @param ygyro [rad/s] Angular speed around Y axis (rad / sec)
* @param zgyro [rad/s] Angular speed around Z axis (rad / sec)
* @param xmag [gauss] X Magnetic field (Gauss)
* @param ymag [gauss] Y Magnetic field (Gauss)
* @param zmag [gauss] Z Magnetic field (Gauss)
* @param abs_pressure [mbar] Absolute pressure in millibar
* @param diff_pressure [mbar] Differential pressure in millibar
* @param pressure_alt Altitude calculated from pressure
* @param temperature [degC] Temperature in degrees celsius
* @param fields_updated Bitmask for fields that have updated since last message, bit 0 = xacc, bit 12: temperature
* @return length of the message in bytes (excluding serial stream start sign)
*/
static inline uint16_t mavlink_msg_highres_imu_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
@@ -153,21 +153,21 @@ static inline uint16_t mavlink_msg_highres_imu_pack(uint8_t system_id, uint8_t c
* @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, synced to UNIX time or since system boot)
* @param xacc X acceleration (m/s^2)
* @param yacc Y acceleration (m/s^2)
* @param zacc Z acceleration (m/s^2)
* @param xgyro Angular speed around X axis (rad / sec)
* @param ygyro Angular speed around Y axis (rad / sec)
* @param zgyro Angular speed around Z axis (rad / sec)
* @param xmag X Magnetic field (Gauss)
* @param ymag Y Magnetic field (Gauss)
* @param zmag Z Magnetic field (Gauss)
* @param abs_pressure Absolute pressure in millibar
* @param diff_pressure Differential pressure in millibar
* @param pressure_alt Altitude calculated from pressure
* @param temperature Temperature in degrees celsius
* @param fields_updated Bitmask for fields that have updated since last message, bit 0 = xacc, bit 12: temperature
* @param time_usec [us] Timestamp (microseconds, synced to UNIX time or since system boot)
* @param xacc [m/s/s] X acceleration (m/s^2)
* @param yacc [m/s/s] Y acceleration (m/s^2)
* @param zacc [m/s/s] Z acceleration (m/s^2)
* @param xgyro [rad/s] Angular speed around X axis (rad / sec)
* @param ygyro [rad/s] Angular speed around Y axis (rad / sec)
* @param zgyro [rad/s] Angular speed around Z axis (rad / sec)
* @param xmag [gauss] X Magnetic field (Gauss)
* @param ymag [gauss] Y Magnetic field (Gauss)
* @param zmag [gauss] Z Magnetic field (Gauss)
* @param abs_pressure [mbar] Absolute pressure in millibar
* @param diff_pressure [mbar] Differential pressure in millibar
* @param pressure_alt Altitude calculated from pressure
* @param temperature [degC] Temperature in degrees celsius
* @param fields_updated Bitmask for fields that have updated since last message, bit 0 = xacc, bit 12: temperature
* @return length of the message in bytes (excluding serial stream start sign)
*/
static inline uint16_t mavlink_msg_highres_imu_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan,
@@ -249,21 +249,21 @@ static inline uint16_t mavlink_msg_highres_imu_encode_chan(uint8_t system_id, ui
* @brief Send a highres_imu message
* @param chan MAVLink channel to send the message
*
* @param time_usec Timestamp (microseconds, synced to UNIX time or since system boot)
* @param xacc X acceleration (m/s^2)
* @param yacc Y acceleration (m/s^2)
* @param zacc Z acceleration (m/s^2)
* @param xgyro Angular speed around X axis (rad / sec)
* @param ygyro Angular speed around Y axis (rad / sec)
* @param zgyro Angular speed around Z axis (rad / sec)
* @param xmag X Magnetic field (Gauss)
* @param ymag Y Magnetic field (Gauss)
* @param zmag Z Magnetic field (Gauss)
* @param abs_pressure Absolute pressure in millibar
* @param diff_pressure Differential pressure in millibar
* @param pressure_alt Altitude calculated from pressure
* @param temperature Temperature in degrees celsius
* @param fields_updated Bitmask for fields that have updated since last message, bit 0 = xacc, bit 12: temperature
* @param time_usec [us] Timestamp (microseconds, synced to UNIX time or since system boot)
* @param xacc [m/s/s] X acceleration (m/s^2)
* @param yacc [m/s/s] Y acceleration (m/s^2)
* @param zacc [m/s/s] Z acceleration (m/s^2)
* @param xgyro [rad/s] Angular speed around X axis (rad / sec)
* @param ygyro [rad/s] Angular speed around Y axis (rad / sec)
* @param zgyro [rad/s] Angular speed around Z axis (rad / sec)
* @param xmag [gauss] X Magnetic field (Gauss)
* @param ymag [gauss] Y Magnetic field (Gauss)
* @param zmag [gauss] Z Magnetic field (Gauss)
* @param abs_pressure [mbar] Absolute pressure in millibar
* @param diff_pressure [mbar] Differential pressure in millibar
* @param pressure_alt Altitude calculated from pressure
* @param temperature [degC] Temperature in degrees celsius
* @param fields_updated Bitmask for fields that have updated since last message, bit 0 = xacc, bit 12: temperature
*/
#ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS
@@ -384,7 +384,7 @@ static inline void mavlink_msg_highres_imu_send_buf(mavlink_message_t *msgbuf, m
/**
* @brief Get field time_usec from highres_imu message
*
* @return Timestamp (microseconds, synced to UNIX time or since system boot)
* @return [us] Timestamp (microseconds, synced to UNIX time or since system boot)
*/
static inline uint64_t mavlink_msg_highres_imu_get_time_usec(const mavlink_message_t* msg)
{
@@ -394,7 +394,7 @@ static inline uint64_t mavlink_msg_highres_imu_get_time_usec(const mavlink_messa
/**
* @brief Get field xacc from highres_imu message
*
* @return X acceleration (m/s^2)
* @return [m/s/s] X acceleration (m/s^2)
*/
static inline float mavlink_msg_highres_imu_get_xacc(const mavlink_message_t* msg)
{
@@ -404,7 +404,7 @@ static inline float mavlink_msg_highres_imu_get_xacc(const mavlink_message_t* ms
/**
* @brief Get field yacc from highres_imu message
*
* @return Y acceleration (m/s^2)
* @return [m/s/s] Y acceleration (m/s^2)
*/
static inline float mavlink_msg_highres_imu_get_yacc(const mavlink_message_t* msg)
{
@@ -414,7 +414,7 @@ static inline float mavlink_msg_highres_imu_get_yacc(const mavlink_message_t* ms
/**
* @brief Get field zacc from highres_imu message
*
* @return Z acceleration (m/s^2)
* @return [m/s/s] Z acceleration (m/s^2)
*/
static inline float mavlink_msg_highres_imu_get_zacc(const mavlink_message_t* msg)
{
@@ -424,7 +424,7 @@ static inline float mavlink_msg_highres_imu_get_zacc(const mavlink_message_t* ms
/**
* @brief Get field xgyro from highres_imu message
*
* @return Angular speed around X axis (rad / sec)
* @return [rad/s] Angular speed around X axis (rad / sec)
*/
static inline float mavlink_msg_highres_imu_get_xgyro(const mavlink_message_t* msg)
{
@@ -434,7 +434,7 @@ static inline float mavlink_msg_highres_imu_get_xgyro(const mavlink_message_t* m
/**
* @brief Get field ygyro from highres_imu message
*
* @return Angular speed around Y axis (rad / sec)
* @return [rad/s] Angular speed around Y axis (rad / sec)
*/
static inline float mavlink_msg_highres_imu_get_ygyro(const mavlink_message_t* msg)
{
@@ -444,7 +444,7 @@ static inline float mavlink_msg_highres_imu_get_ygyro(const mavlink_message_t* m
/**
* @brief Get field zgyro from highres_imu message
*
* @return Angular speed around Z axis (rad / sec)
* @return [rad/s] Angular speed around Z axis (rad / sec)
*/
static inline float mavlink_msg_highres_imu_get_zgyro(const mavlink_message_t* msg)
{
@@ -454,7 +454,7 @@ static inline float mavlink_msg_highres_imu_get_zgyro(const mavlink_message_t* m
/**
* @brief Get field xmag from highres_imu message
*
* @return X Magnetic field (Gauss)
* @return [gauss] X Magnetic field (Gauss)
*/
static inline float mavlink_msg_highres_imu_get_xmag(const mavlink_message_t* msg)
{
@@ -464,7 +464,7 @@ static inline float mavlink_msg_highres_imu_get_xmag(const mavlink_message_t* ms
/**
* @brief Get field ymag from highres_imu message
*
* @return Y Magnetic field (Gauss)
* @return [gauss] Y Magnetic field (Gauss)
*/
static inline float mavlink_msg_highres_imu_get_ymag(const mavlink_message_t* msg)
{
@@ -474,7 +474,7 @@ static inline float mavlink_msg_highres_imu_get_ymag(const mavlink_message_t* ms
/**
* @brief Get field zmag from highres_imu message
*
* @return Z Magnetic field (Gauss)
* @return [gauss] Z Magnetic field (Gauss)
*/
static inline float mavlink_msg_highres_imu_get_zmag(const mavlink_message_t* msg)
{
@@ -484,7 +484,7 @@ static inline float mavlink_msg_highres_imu_get_zmag(const mavlink_message_t* ms
/**
* @brief Get field abs_pressure from highres_imu message
*
* @return Absolute pressure in millibar
* @return [mbar] Absolute pressure in millibar
*/
static inline float mavlink_msg_highres_imu_get_abs_pressure(const mavlink_message_t* msg)
{
@@ -494,7 +494,7 @@ static inline float mavlink_msg_highres_imu_get_abs_pressure(const mavlink_messa
/**
* @brief Get field diff_pressure from highres_imu message
*
* @return Differential pressure in millibar
* @return [mbar] Differential pressure in millibar
*/
static inline float mavlink_msg_highres_imu_get_diff_pressure(const mavlink_message_t* msg)
{
@@ -504,7 +504,7 @@ static inline float mavlink_msg_highres_imu_get_diff_pressure(const mavlink_mess
/**
* @brief Get field pressure_alt from highres_imu message
*
* @return Altitude calculated from pressure
* @return Altitude calculated from pressure
*/
static inline float mavlink_msg_highres_imu_get_pressure_alt(const mavlink_message_t* msg)
{
@@ -514,7 +514,7 @@ static inline float mavlink_msg_highres_imu_get_pressure_alt(const mavlink_messa
/**
* @brief Get field temperature from highres_imu message
*
* @return Temperature in degrees celsius
* @return [degC] Temperature in degrees celsius
*/
static inline float mavlink_msg_highres_imu_get_temperature(const mavlink_message_t* msg)
{
@@ -524,7 +524,7 @@ static inline float mavlink_msg_highres_imu_get_temperature(const mavlink_messag
/**
* @brief Get field fields_updated from highres_imu message
*
* @return Bitmask for fields that have updated since last message, bit 0 = xacc, bit 12: temperature
* @return Bitmask for fields that have updated since last message, bit 0 = xacc, bit 12: temperature
*/
static inline uint16_t mavlink_msg_highres_imu_get_fields_updated(const mavlink_message_t* msg)
{