update protocol
This commit is contained in:
@@ -5,11 +5,11 @@
|
||||
|
||||
MAVPACKED(
|
||||
typedef struct __mavlink_set_attitude_target_t {
|
||||
uint32_t time_boot_ms; /*< [ms] Timestamp in milliseconds since system boot*/
|
||||
uint32_t time_boot_ms; /*< [ms] Timestamp (time since system boot).*/
|
||||
float q[4]; /*< Attitude quaternion (w, x, y, z order, zero-rotation is 1, 0, 0, 0)*/
|
||||
float body_roll_rate; /*< [rad/s] Body roll rate in radians per second*/
|
||||
float body_pitch_rate; /*< [rad/s] Body pitch rate in radians per second*/
|
||||
float body_yaw_rate; /*< [rad/s] Body yaw rate in radians per second*/
|
||||
float body_roll_rate; /*< [rad/s] Body roll rate*/
|
||||
float body_pitch_rate; /*< [rad/s] Body pitch rate*/
|
||||
float body_yaw_rate; /*< [rad/s] Body yaw rate*/
|
||||
float thrust; /*< Collective thrust, normalized to 0 .. 1 (-1 .. 1 for vehicles capable of reverse trust)*/
|
||||
uint8_t target_system; /*< System ID*/
|
||||
uint8_t target_component; /*< Component ID*/
|
||||
@@ -65,14 +65,14 @@ typedef struct __mavlink_set_attitude_target_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_boot_ms [ms] Timestamp in milliseconds since system boot
|
||||
* @param time_boot_ms [ms] Timestamp (time since system boot).
|
||||
* @param target_system System ID
|
||||
* @param target_component Component ID
|
||||
* @param type_mask Mappings: If any of these bits are set, the corresponding input should be ignored: bit 1: body roll rate, bit 2: body pitch rate, bit 3: body yaw rate. bit 4-bit 6: reserved, bit 7: throttle, bit 8: attitude
|
||||
* @param q Attitude quaternion (w, x, y, z order, zero-rotation is 1, 0, 0, 0)
|
||||
* @param body_roll_rate [rad/s] Body roll rate in radians per second
|
||||
* @param body_pitch_rate [rad/s] Body pitch rate in radians per second
|
||||
* @param body_yaw_rate [rad/s] Body yaw rate in radians per second
|
||||
* @param body_roll_rate [rad/s] Body roll rate
|
||||
* @param body_pitch_rate [rad/s] Body pitch rate
|
||||
* @param body_yaw_rate [rad/s] Body yaw rate
|
||||
* @param thrust Collective thrust, normalized to 0 .. 1 (-1 .. 1 for vehicles capable of reverse trust)
|
||||
* @return length of the message in bytes (excluding serial stream start sign)
|
||||
*/
|
||||
@@ -115,14 +115,14 @@ static inline uint16_t mavlink_msg_set_attitude_target_pack(uint8_t system_id, u
|
||||
* @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_boot_ms [ms] Timestamp in milliseconds since system boot
|
||||
* @param time_boot_ms [ms] Timestamp (time since system boot).
|
||||
* @param target_system System ID
|
||||
* @param target_component Component ID
|
||||
* @param type_mask Mappings: If any of these bits are set, the corresponding input should be ignored: bit 1: body roll rate, bit 2: body pitch rate, bit 3: body yaw rate. bit 4-bit 6: reserved, bit 7: throttle, bit 8: attitude
|
||||
* @param q Attitude quaternion (w, x, y, z order, zero-rotation is 1, 0, 0, 0)
|
||||
* @param body_roll_rate [rad/s] Body roll rate in radians per second
|
||||
* @param body_pitch_rate [rad/s] Body pitch rate in radians per second
|
||||
* @param body_yaw_rate [rad/s] Body yaw rate in radians per second
|
||||
* @param body_roll_rate [rad/s] Body roll rate
|
||||
* @param body_pitch_rate [rad/s] Body pitch rate
|
||||
* @param body_yaw_rate [rad/s] Body yaw rate
|
||||
* @param thrust Collective thrust, normalized to 0 .. 1 (-1 .. 1 for vehicles capable of reverse trust)
|
||||
* @return length of the message in bytes (excluding serial stream start sign)
|
||||
*/
|
||||
@@ -191,14 +191,14 @@ static inline uint16_t mavlink_msg_set_attitude_target_encode_chan(uint8_t syste
|
||||
* @brief Send a set_attitude_target message
|
||||
* @param chan MAVLink channel to send the message
|
||||
*
|
||||
* @param time_boot_ms [ms] Timestamp in milliseconds since system boot
|
||||
* @param time_boot_ms [ms] Timestamp (time since system boot).
|
||||
* @param target_system System ID
|
||||
* @param target_component Component ID
|
||||
* @param type_mask Mappings: If any of these bits are set, the corresponding input should be ignored: bit 1: body roll rate, bit 2: body pitch rate, bit 3: body yaw rate. bit 4-bit 6: reserved, bit 7: throttle, bit 8: attitude
|
||||
* @param q Attitude quaternion (w, x, y, z order, zero-rotation is 1, 0, 0, 0)
|
||||
* @param body_roll_rate [rad/s] Body roll rate in radians per second
|
||||
* @param body_pitch_rate [rad/s] Body pitch rate in radians per second
|
||||
* @param body_yaw_rate [rad/s] Body yaw rate in radians per second
|
||||
* @param body_roll_rate [rad/s] Body roll rate
|
||||
* @param body_pitch_rate [rad/s] Body pitch rate
|
||||
* @param body_yaw_rate [rad/s] Body yaw rate
|
||||
* @param thrust Collective thrust, normalized to 0 .. 1 (-1 .. 1 for vehicles capable of reverse trust)
|
||||
*/
|
||||
#ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS
|
||||
@@ -292,7 +292,7 @@ static inline void mavlink_msg_set_attitude_target_send_buf(mavlink_message_t *m
|
||||
/**
|
||||
* @brief Get field time_boot_ms from set_attitude_target message
|
||||
*
|
||||
* @return [ms] Timestamp in milliseconds since system boot
|
||||
* @return [ms] Timestamp (time since system boot).
|
||||
*/
|
||||
static inline uint32_t mavlink_msg_set_attitude_target_get_time_boot_ms(const mavlink_message_t* msg)
|
||||
{
|
||||
@@ -342,7 +342,7 @@ static inline uint16_t mavlink_msg_set_attitude_target_get_q(const mavlink_messa
|
||||
/**
|
||||
* @brief Get field body_roll_rate from set_attitude_target message
|
||||
*
|
||||
* @return [rad/s] Body roll rate in radians per second
|
||||
* @return [rad/s] Body roll rate
|
||||
*/
|
||||
static inline float mavlink_msg_set_attitude_target_get_body_roll_rate(const mavlink_message_t* msg)
|
||||
{
|
||||
@@ -352,7 +352,7 @@ static inline float mavlink_msg_set_attitude_target_get_body_roll_rate(const mav
|
||||
/**
|
||||
* @brief Get field body_pitch_rate from set_attitude_target message
|
||||
*
|
||||
* @return [rad/s] Body pitch rate in radians per second
|
||||
* @return [rad/s] Body pitch rate
|
||||
*/
|
||||
static inline float mavlink_msg_set_attitude_target_get_body_pitch_rate(const mavlink_message_t* msg)
|
||||
{
|
||||
@@ -362,7 +362,7 @@ static inline float mavlink_msg_set_attitude_target_get_body_pitch_rate(const ma
|
||||
/**
|
||||
* @brief Get field body_yaw_rate from set_attitude_target message
|
||||
*
|
||||
* @return [rad/s] Body yaw rate in radians per second
|
||||
* @return [rad/s] Body yaw rate
|
||||
*/
|
||||
static inline float mavlink_msg_set_attitude_target_get_body_yaw_rate(const mavlink_message_t* msg)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user