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
+55 -55
View File
@@ -5,17 +5,17 @@
MAVPACKED(
typedef struct __mavlink_hil_controls_t {
uint64_t time_usec; /*< Timestamp (microseconds since UNIX epoch or microseconds since system boot)*/
float roll_ailerons; /*< Control output -1 .. 1*/
float pitch_elevator; /*< Control output -1 .. 1*/
float yaw_rudder; /*< Control output -1 .. 1*/
float throttle; /*< Throttle 0 .. 1*/
float aux1; /*< Aux 1, -1 .. 1*/
float aux2; /*< Aux 2, -1 .. 1*/
float aux3; /*< Aux 3, -1 .. 1*/
float aux4; /*< Aux 4, -1 .. 1*/
uint8_t mode; /*< System mode (MAV_MODE)*/
uint8_t nav_mode; /*< Navigation mode (MAV_NAV_MODE)*/
uint64_t time_usec; /*< [us] Timestamp (microseconds since UNIX epoch or microseconds since system boot)*/
float roll_ailerons; /*< Control output -1 .. 1*/
float pitch_elevator; /*< Control output -1 .. 1*/
float yaw_rudder; /*< Control output -1 .. 1*/
float throttle; /*< Throttle 0 .. 1*/
float aux1; /*< Aux 1, -1 .. 1*/
float aux2; /*< Aux 2, -1 .. 1*/
float aux3; /*< Aux 3, -1 .. 1*/
float aux4; /*< Aux 4, -1 .. 1*/
uint8_t mode; /*< System mode (MAV_MODE)*/
uint8_t nav_mode; /*< Navigation mode (MAV_NAV_MODE)*/
}) mavlink_hil_controls_t;
#define MAVLINK_MSG_ID_HIL_CONTROLS_LEN 42
@@ -71,17 +71,17 @@ typedef struct __mavlink_hil_controls_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 UNIX epoch or microseconds since system boot)
* @param roll_ailerons Control output -1 .. 1
* @param pitch_elevator Control output -1 .. 1
* @param yaw_rudder Control output -1 .. 1
* @param throttle Throttle 0 .. 1
* @param aux1 Aux 1, -1 .. 1
* @param aux2 Aux 2, -1 .. 1
* @param aux3 Aux 3, -1 .. 1
* @param aux4 Aux 4, -1 .. 1
* @param mode System mode (MAV_MODE)
* @param nav_mode Navigation mode (MAV_NAV_MODE)
* @param time_usec [us] Timestamp (microseconds since UNIX epoch or microseconds since system boot)
* @param roll_ailerons Control output -1 .. 1
* @param pitch_elevator Control output -1 .. 1
* @param yaw_rudder Control output -1 .. 1
* @param throttle Throttle 0 .. 1
* @param aux1 Aux 1, -1 .. 1
* @param aux2 Aux 2, -1 .. 1
* @param aux3 Aux 3, -1 .. 1
* @param aux4 Aux 4, -1 .. 1
* @param mode System mode (MAV_MODE)
* @param nav_mode Navigation mode (MAV_NAV_MODE)
* @return length of the message in bytes (excluding serial stream start sign)
*/
static inline uint16_t mavlink_msg_hil_controls_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
@@ -129,17 +129,17 @@ static inline uint16_t mavlink_msg_hil_controls_pack(uint8_t system_id, uint8_t
* @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 UNIX epoch or microseconds since system boot)
* @param roll_ailerons Control output -1 .. 1
* @param pitch_elevator Control output -1 .. 1
* @param yaw_rudder Control output -1 .. 1
* @param throttle Throttle 0 .. 1
* @param aux1 Aux 1, -1 .. 1
* @param aux2 Aux 2, -1 .. 1
* @param aux3 Aux 3, -1 .. 1
* @param aux4 Aux 4, -1 .. 1
* @param mode System mode (MAV_MODE)
* @param nav_mode Navigation mode (MAV_NAV_MODE)
* @param time_usec [us] Timestamp (microseconds since UNIX epoch or microseconds since system boot)
* @param roll_ailerons Control output -1 .. 1
* @param pitch_elevator Control output -1 .. 1
* @param yaw_rudder Control output -1 .. 1
* @param throttle Throttle 0 .. 1
* @param aux1 Aux 1, -1 .. 1
* @param aux2 Aux 2, -1 .. 1
* @param aux3 Aux 3, -1 .. 1
* @param aux4 Aux 4, -1 .. 1
* @param mode System mode (MAV_MODE)
* @param nav_mode Navigation mode (MAV_NAV_MODE)
* @return length of the message in bytes (excluding serial stream start sign)
*/
static inline uint16_t mavlink_msg_hil_controls_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan,
@@ -213,17 +213,17 @@ static inline uint16_t mavlink_msg_hil_controls_encode_chan(uint8_t system_id, u
* @brief Send a hil_controls message
* @param chan MAVLink channel to send the message
*
* @param time_usec Timestamp (microseconds since UNIX epoch or microseconds since system boot)
* @param roll_ailerons Control output -1 .. 1
* @param pitch_elevator Control output -1 .. 1
* @param yaw_rudder Control output -1 .. 1
* @param throttle Throttle 0 .. 1
* @param aux1 Aux 1, -1 .. 1
* @param aux2 Aux 2, -1 .. 1
* @param aux3 Aux 3, -1 .. 1
* @param aux4 Aux 4, -1 .. 1
* @param mode System mode (MAV_MODE)
* @param nav_mode Navigation mode (MAV_NAV_MODE)
* @param time_usec [us] Timestamp (microseconds since UNIX epoch or microseconds since system boot)
* @param roll_ailerons Control output -1 .. 1
* @param pitch_elevator Control output -1 .. 1
* @param yaw_rudder Control output -1 .. 1
* @param throttle Throttle 0 .. 1
* @param aux1 Aux 1, -1 .. 1
* @param aux2 Aux 2, -1 .. 1
* @param aux3 Aux 3, -1 .. 1
* @param aux4 Aux 4, -1 .. 1
* @param mode System mode (MAV_MODE)
* @param nav_mode Navigation mode (MAV_NAV_MODE)
*/
#ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS
@@ -328,7 +328,7 @@ static inline void mavlink_msg_hil_controls_send_buf(mavlink_message_t *msgbuf,
/**
* @brief Get field time_usec from hil_controls message
*
* @return Timestamp (microseconds since UNIX epoch or microseconds since system boot)
* @return [us] Timestamp (microseconds since UNIX epoch or microseconds since system boot)
*/
static inline uint64_t mavlink_msg_hil_controls_get_time_usec(const mavlink_message_t* msg)
{
@@ -338,7 +338,7 @@ static inline uint64_t mavlink_msg_hil_controls_get_time_usec(const mavlink_mess
/**
* @brief Get field roll_ailerons from hil_controls message
*
* @return Control output -1 .. 1
* @return Control output -1 .. 1
*/
static inline float mavlink_msg_hil_controls_get_roll_ailerons(const mavlink_message_t* msg)
{
@@ -348,7 +348,7 @@ static inline float mavlink_msg_hil_controls_get_roll_ailerons(const mavlink_mes
/**
* @brief Get field pitch_elevator from hil_controls message
*
* @return Control output -1 .. 1
* @return Control output -1 .. 1
*/
static inline float mavlink_msg_hil_controls_get_pitch_elevator(const mavlink_message_t* msg)
{
@@ -358,7 +358,7 @@ static inline float mavlink_msg_hil_controls_get_pitch_elevator(const mavlink_me
/**
* @brief Get field yaw_rudder from hil_controls message
*
* @return Control output -1 .. 1
* @return Control output -1 .. 1
*/
static inline float mavlink_msg_hil_controls_get_yaw_rudder(const mavlink_message_t* msg)
{
@@ -368,7 +368,7 @@ static inline float mavlink_msg_hil_controls_get_yaw_rudder(const mavlink_messag
/**
* @brief Get field throttle from hil_controls message
*
* @return Throttle 0 .. 1
* @return Throttle 0 .. 1
*/
static inline float mavlink_msg_hil_controls_get_throttle(const mavlink_message_t* msg)
{
@@ -378,7 +378,7 @@ static inline float mavlink_msg_hil_controls_get_throttle(const mavlink_message_
/**
* @brief Get field aux1 from hil_controls message
*
* @return Aux 1, -1 .. 1
* @return Aux 1, -1 .. 1
*/
static inline float mavlink_msg_hil_controls_get_aux1(const mavlink_message_t* msg)
{
@@ -388,7 +388,7 @@ static inline float mavlink_msg_hil_controls_get_aux1(const mavlink_message_t* m
/**
* @brief Get field aux2 from hil_controls message
*
* @return Aux 2, -1 .. 1
* @return Aux 2, -1 .. 1
*/
static inline float mavlink_msg_hil_controls_get_aux2(const mavlink_message_t* msg)
{
@@ -398,7 +398,7 @@ static inline float mavlink_msg_hil_controls_get_aux2(const mavlink_message_t* m
/**
* @brief Get field aux3 from hil_controls message
*
* @return Aux 3, -1 .. 1
* @return Aux 3, -1 .. 1
*/
static inline float mavlink_msg_hil_controls_get_aux3(const mavlink_message_t* msg)
{
@@ -408,7 +408,7 @@ static inline float mavlink_msg_hil_controls_get_aux3(const mavlink_message_t* m
/**
* @brief Get field aux4 from hil_controls message
*
* @return Aux 4, -1 .. 1
* @return Aux 4, -1 .. 1
*/
static inline float mavlink_msg_hil_controls_get_aux4(const mavlink_message_t* msg)
{
@@ -418,7 +418,7 @@ static inline float mavlink_msg_hil_controls_get_aux4(const mavlink_message_t* m
/**
* @brief Get field mode from hil_controls message
*
* @return System mode (MAV_MODE)
* @return System mode (MAV_MODE)
*/
static inline uint8_t mavlink_msg_hil_controls_get_mode(const mavlink_message_t* msg)
{
@@ -428,7 +428,7 @@ static inline uint8_t mavlink_msg_hil_controls_get_mode(const mavlink_message_t*
/**
* @brief Get field nav_mode from hil_controls message
*
* @return Navigation mode (MAV_NAV_MODE)
* @return Navigation mode (MAV_NAV_MODE)
*/
static inline uint8_t mavlink_msg_hil_controls_get_nav_mode(const mavlink_message_t* msg)
{