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
+10 -10
View File
@@ -5,10 +5,10 @@
MAVPACKED(
typedef struct __mavlink_hil_actuator_controls_t {
uint64_t time_usec; /*< [us] Timestamp (microseconds since UNIX epoch or microseconds since system boot)*/
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.*/
uint64_t flags; /*< Flags as bitfield, reserved for future use.*/
float controls[16]; /*< Control outputs -1 .. 1. Channel assignment depends on the simulated hardware.*/
uint8_t mode; /*< System mode (MAV_MODE), includes arming state.*/
uint8_t mode; /*< System mode. Includes arming state.*/
}) mavlink_hil_actuator_controls_t;
#define MAVLINK_MSG_ID_HIL_ACTUATOR_CONTROLS_LEN 81
@@ -50,9 +50,9 @@ typedef struct __mavlink_hil_actuator_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 [us] Timestamp (microseconds since UNIX epoch or microseconds since system boot)
* @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 controls Control outputs -1 .. 1. Channel assignment depends on the simulated hardware.
* @param mode System mode (MAV_MODE), includes arming state.
* @param mode System mode. Includes arming state.
* @param flags Flags as bitfield, reserved for future use.
* @return length of the message in bytes (excluding serial stream start sign)
*/
@@ -85,9 +85,9 @@ static inline uint16_t mavlink_msg_hil_actuator_controls_pack(uint8_t system_id,
* @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 since UNIX epoch or microseconds since system boot)
* @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 controls Control outputs -1 .. 1. Channel assignment depends on the simulated hardware.
* @param mode System mode (MAV_MODE), includes arming state.
* @param mode System mode. Includes arming state.
* @param flags Flags as bitfield, reserved for future use.
* @return length of the message in bytes (excluding serial stream start sign)
*/
@@ -146,9 +146,9 @@ static inline uint16_t mavlink_msg_hil_actuator_controls_encode_chan(uint8_t sys
* @brief Send a hil_actuator_controls message
* @param chan MAVLink channel to send the message
*
* @param time_usec [us] Timestamp (microseconds since UNIX epoch or microseconds since system boot)
* @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 controls Control outputs -1 .. 1. Channel assignment depends on the simulated hardware.
* @param mode System mode (MAV_MODE), includes arming state.
* @param mode System mode. Includes arming state.
* @param flags Flags as bitfield, reserved for future use.
*/
#ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS
@@ -222,7 +222,7 @@ static inline void mavlink_msg_hil_actuator_controls_send_buf(mavlink_message_t
/**
* @brief Get field time_usec from hil_actuator_controls message
*
* @return [us] Timestamp (microseconds since UNIX epoch or microseconds 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_hil_actuator_controls_get_time_usec(const mavlink_message_t* msg)
{
@@ -242,7 +242,7 @@ static inline uint16_t mavlink_msg_hil_actuator_controls_get_controls(const mavl
/**
* @brief Get field mode from hil_actuator_controls message
*
* @return System mode (MAV_MODE), includes arming state.
* @return System mode. Includes arming state.
*/
static inline uint8_t mavlink_msg_hil_actuator_controls_get_mode(const mavlink_message_t* msg)
{