update protocol

This commit is contained in:
Matt
2018-08-07 10:12:17 +08:00
parent 6a1a7939a4
commit 730db31376
202 changed files with 9361 additions and 6933 deletions
+20 -20
View File
@@ -5,11 +5,11 @@
MAVPACKED(
typedef struct __mavlink_att_pos_mocap_t {
uint64_t time_usec; /*< [us] Timestamp (micros since boot or Unix epoch)*/
uint64_t time_usec; /*< [us] Timestamp (UNIX Epoch time or time since system boot). The receiving end can infer timestamp format (since 1.1.1970 or since system boot) by checking for the magnitude the number.*/
float q[4]; /*< Attitude quaternion (w, x, y, z order, zero-rotation is 1, 0, 0, 0)*/
float x; /*< [m] X position in meters (NED)*/
float y; /*< [m] Y position in meters (NED)*/
float z; /*< [m] Z position in meters (NED)*/
float x; /*< [m] X position (NED)*/
float y; /*< [m] Y position (NED)*/
float z; /*< [m] Z position (NED)*/
float covariance[21]; /*< Pose covariance matrix upper right triangular (first six entries are the first ROW, next five entries are the second ROW, etc.)*/
}) mavlink_att_pos_mocap_t;
@@ -57,11 +57,11 @@ typedef struct __mavlink_att_pos_mocap_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 [us] Timestamp (micros since boot or Unix epoch)
* @param time_usec [us] Timestamp (UNIX Epoch time or time since system boot). The receiving end can infer timestamp format (since 1.1.1970 or since system boot) by checking for the magnitude the number.
* @param q Attitude quaternion (w, x, y, z order, zero-rotation is 1, 0, 0, 0)
* @param x [m] X position in meters (NED)
* @param y [m] Y position in meters (NED)
* @param z [m] Z position in meters (NED)
* @param x [m] X position (NED)
* @param y [m] Y position (NED)
* @param z [m] Z position (NED)
* @param covariance Pose covariance matrix upper right triangular (first six entries are the first ROW, next five entries are the second ROW, etc.)
* @return length of the message in bytes (excluding serial stream start sign)
*/
@@ -98,11 +98,11 @@ static inline uint16_t mavlink_msg_att_pos_mocap_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 [us] Timestamp (micros since boot or Unix epoch)
* @param time_usec [us] Timestamp (UNIX Epoch time or time since system boot). The receiving end can infer timestamp format (since 1.1.1970 or since system boot) by checking for the magnitude the number.
* @param q Attitude quaternion (w, x, y, z order, zero-rotation is 1, 0, 0, 0)
* @param x [m] X position in meters (NED)
* @param y [m] Y position in meters (NED)
* @param z [m] Z position in meters (NED)
* @param x [m] X position (NED)
* @param y [m] Y position (NED)
* @param z [m] Z position (NED)
* @param covariance Pose covariance matrix upper right triangular (first six entries are the first ROW, next five entries are the second ROW, etc.)
* @return length of the message in bytes (excluding serial stream start sign)
*/
@@ -165,11 +165,11 @@ static inline uint16_t mavlink_msg_att_pos_mocap_encode_chan(uint8_t system_id,
* @brief Send a att_pos_mocap message
* @param chan MAVLink channel to send the message
*
* @param time_usec [us] Timestamp (micros since boot or Unix epoch)
* @param time_usec [us] Timestamp (UNIX Epoch time or time since system boot). The receiving end can infer timestamp format (since 1.1.1970 or since system boot) by checking for the magnitude the number.
* @param q Attitude quaternion (w, x, y, z order, zero-rotation is 1, 0, 0, 0)
* @param x [m] X position in meters (NED)
* @param y [m] Y position in meters (NED)
* @param z [m] Z position in meters (NED)
* @param x [m] X position (NED)
* @param y [m] Y position (NED)
* @param z [m] Z position (NED)
* @param covariance Pose covariance matrix upper right triangular (first six entries are the first ROW, next five entries are the second ROW, etc.)
*/
#ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS
@@ -251,7 +251,7 @@ static inline void mavlink_msg_att_pos_mocap_send_buf(mavlink_message_t *msgbuf,
/**
* @brief Get field time_usec from att_pos_mocap message
*
* @return [us] Timestamp (micros since boot or Unix epoch)
* @return [us] Timestamp (UNIX Epoch time or time since system boot). The receiving end can infer timestamp format (since 1.1.1970 or since system boot) by checking for the magnitude the number.
*/
static inline uint64_t mavlink_msg_att_pos_mocap_get_time_usec(const mavlink_message_t* msg)
{
@@ -271,7 +271,7 @@ static inline uint16_t mavlink_msg_att_pos_mocap_get_q(const mavlink_message_t*
/**
* @brief Get field x from att_pos_mocap message
*
* @return [m] X position in meters (NED)
* @return [m] X position (NED)
*/
static inline float mavlink_msg_att_pos_mocap_get_x(const mavlink_message_t* msg)
{
@@ -281,7 +281,7 @@ static inline float mavlink_msg_att_pos_mocap_get_x(const mavlink_message_t* msg
/**
* @brief Get field y from att_pos_mocap message
*
* @return [m] Y position in meters (NED)
* @return [m] Y position (NED)
*/
static inline float mavlink_msg_att_pos_mocap_get_y(const mavlink_message_t* msg)
{
@@ -291,7 +291,7 @@ static inline float mavlink_msg_att_pos_mocap_get_y(const mavlink_message_t* msg
/**
* @brief Get field z from att_pos_mocap message
*
* @return [m] Z position in meters (NED)
* @return [m] Z position (NED)
*/
static inline float mavlink_msg_att_pos_mocap_get_z(const mavlink_message_t* msg)
{