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
+70 -70
View File
@@ -5,21 +5,21 @@
MAVPACKED(
typedef struct __mavlink_highres_imu_t {
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*/
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 xacc; /*< [m/s/s] X acceleration*/
float yacc; /*< [m/s/s] Y acceleration*/
float zacc; /*< [m/s/s] Z acceleration*/
float xgyro; /*< [rad/s] Angular speed around X axis*/
float ygyro; /*< [rad/s] Angular speed around Y axis*/
float zgyro; /*< [rad/s] Angular speed around Z axis*/
float xmag; /*< [gauss] X Magnetic field*/
float ymag; /*< [gauss] Y Magnetic field*/
float zmag; /*< [gauss] Z Magnetic field*/
float abs_pressure; /*< [mbar] Absolute pressure*/
float diff_pressure; /*< [mbar] Differential pressure*/
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*/
float temperature; /*< [degC] Temperature*/
uint16_t fields_updated; /*< Bitmap 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 [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 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 xacc [m/s/s] X acceleration
* @param yacc [m/s/s] Y acceleration
* @param zacc [m/s/s] Z acceleration
* @param xgyro [rad/s] Angular speed around X axis
* @param ygyro [rad/s] Angular speed around Y axis
* @param zgyro [rad/s] Angular speed around Z axis
* @param xmag [gauss] X Magnetic field
* @param ymag [gauss] Y Magnetic field
* @param zmag [gauss] Z Magnetic field
* @param abs_pressure [mbar] Absolute pressure
* @param diff_pressure [mbar] Differential pressure
* @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
* @param temperature [degC] Temperature
* @param fields_updated Bitmap 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 [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 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 xacc [m/s/s] X acceleration
* @param yacc [m/s/s] Y acceleration
* @param zacc [m/s/s] Z acceleration
* @param xgyro [rad/s] Angular speed around X axis
* @param ygyro [rad/s] Angular speed around Y axis
* @param zgyro [rad/s] Angular speed around Z axis
* @param xmag [gauss] X Magnetic field
* @param ymag [gauss] Y Magnetic field
* @param zmag [gauss] Z Magnetic field
* @param abs_pressure [mbar] Absolute pressure
* @param diff_pressure [mbar] Differential pressure
* @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
* @param temperature [degC] Temperature
* @param fields_updated Bitmap 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 [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 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 xacc [m/s/s] X acceleration
* @param yacc [m/s/s] Y acceleration
* @param zacc [m/s/s] Z acceleration
* @param xgyro [rad/s] Angular speed around X axis
* @param ygyro [rad/s] Angular speed around Y axis
* @param zgyro [rad/s] Angular speed around Z axis
* @param xmag [gauss] X Magnetic field
* @param ymag [gauss] Y Magnetic field
* @param zmag [gauss] Z Magnetic field
* @param abs_pressure [mbar] Absolute pressure
* @param diff_pressure [mbar] Differential pressure
* @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
* @param temperature [degC] Temperature
* @param fields_updated Bitmap 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 [us] Timestamp (microseconds, synced to UNIX time or since system boot)
* @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_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 [m/s/s] X acceleration (m/s^2)
* @return [m/s/s] X acceleration
*/
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 [m/s/s] Y acceleration (m/s^2)
* @return [m/s/s] Y acceleration
*/
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 [m/s/s] Z acceleration (m/s^2)
* @return [m/s/s] Z acceleration
*/
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 [rad/s] Angular speed around X axis (rad / sec)
* @return [rad/s] Angular speed around X axis
*/
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 [rad/s] Angular speed around Y axis (rad / sec)
* @return [rad/s] Angular speed around Y axis
*/
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 [rad/s] Angular speed around Z axis (rad / sec)
* @return [rad/s] Angular speed around Z axis
*/
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 [gauss] X Magnetic field (Gauss)
* @return [gauss] X Magnetic field
*/
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 [gauss] Y Magnetic field (Gauss)
* @return [gauss] Y Magnetic field
*/
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 [gauss] Z Magnetic field (Gauss)
* @return [gauss] Z Magnetic field
*/
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 [mbar] Absolute pressure in millibar
* @return [mbar] Absolute pressure
*/
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 [mbar] Differential pressure in millibar
* @return [mbar] Differential pressure
*/
static inline float mavlink_msg_highres_imu_get_diff_pressure(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 [degC] Temperature in degrees celsius
* @return [degC] Temperature
*/
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 Bitmap 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)
{