update protocol
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
|
||||
MAVPACKED(
|
||||
typedef struct __mavlink_hil_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.*/
|
||||
float roll_ailerons; /*< Control output -1 .. 1*/
|
||||
float pitch_elevator; /*< Control output -1 .. 1*/
|
||||
float yaw_rudder; /*< Control output -1 .. 1*/
|
||||
@@ -14,7 +14,7 @@ typedef struct __mavlink_hil_controls_t {
|
||||
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 mode; /*< System mode.*/
|
||||
uint8_t nav_mode; /*< Navigation mode (MAV_NAV_MODE)*/
|
||||
}) mavlink_hil_controls_t;
|
||||
|
||||
@@ -71,7 +71,7 @@ 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 [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 roll_ailerons Control output -1 .. 1
|
||||
* @param pitch_elevator Control output -1 .. 1
|
||||
* @param yaw_rudder Control output -1 .. 1
|
||||
@@ -80,7 +80,7 @@ typedef struct __mavlink_hil_controls_t {
|
||||
* @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 mode System mode.
|
||||
* @param nav_mode Navigation mode (MAV_NAV_MODE)
|
||||
* @return length of the message in bytes (excluding serial stream start sign)
|
||||
*/
|
||||
@@ -129,7 +129,7 @@ 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 [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 roll_ailerons Control output -1 .. 1
|
||||
* @param pitch_elevator Control output -1 .. 1
|
||||
* @param yaw_rudder Control output -1 .. 1
|
||||
@@ -138,7 +138,7 @@ static inline uint16_t mavlink_msg_hil_controls_pack(uint8_t system_id, uint8_t
|
||||
* @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 mode System mode.
|
||||
* @param nav_mode Navigation mode (MAV_NAV_MODE)
|
||||
* @return length of the message in bytes (excluding serial stream start sign)
|
||||
*/
|
||||
@@ -213,7 +213,7 @@ 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 [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 roll_ailerons Control output -1 .. 1
|
||||
* @param pitch_elevator Control output -1 .. 1
|
||||
* @param yaw_rudder Control output -1 .. 1
|
||||
@@ -222,7 +222,7 @@ static inline uint16_t mavlink_msg_hil_controls_encode_chan(uint8_t system_id, u
|
||||
* @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 mode System 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 [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_controls_get_time_usec(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.
|
||||
*/
|
||||
static inline uint8_t mavlink_msg_hil_controls_get_mode(const mavlink_message_t* msg)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user