This commit is contained in:
matt
2020-09-20 14:09:03 +08:00
parent b2baf4bffc
commit 991dc1353a
96 changed files with 4166 additions and 4166 deletions
@@ -10,18 +10,18 @@ typedef struct __mavlink_gimbal_manager_set_attitude_t {
float angular_velocity_x; /*< [rad/s] X component of angular velocity, positive is banking to the right, NaN to be ignored.*/
float angular_velocity_y; /*< [rad/s] Y component of angular velocity, positive is tilting up, NaN to be ignored.*/
float angular_velocity_z; /*< [rad/s] Z component of angular velocity, positive is panning to the right, NaN to be ignored.*/
uint8_t target_system; /*< System ID*/
uint16_t target_system; /*< System ID*/
uint8_t target_component; /*< Component ID*/
uint8_t gimbal_device_id; /*< Component ID of gimbal device to address (or 1-6 for non-MAVLink gimbal), 0 for all gimbal device components. (Send command multiple times for more than one but not all gimbals.)*/
} mavlink_gimbal_manager_set_attitude_t;
#define MAVLINK_MSG_ID_GIMBAL_MANAGER_SET_ATTITUDE_LEN 35
#define MAVLINK_MSG_ID_GIMBAL_MANAGER_SET_ATTITUDE_MIN_LEN 35
#define MAVLINK_MSG_ID_282_LEN 35
#define MAVLINK_MSG_ID_282_MIN_LEN 35
#define MAVLINK_MSG_ID_GIMBAL_MANAGER_SET_ATTITUDE_LEN 36
#define MAVLINK_MSG_ID_GIMBAL_MANAGER_SET_ATTITUDE_MIN_LEN 36
#define MAVLINK_MSG_ID_282_LEN 36
#define MAVLINK_MSG_ID_282_MIN_LEN 36
#define MAVLINK_MSG_ID_GIMBAL_MANAGER_SET_ATTITUDE_CRC 123
#define MAVLINK_MSG_ID_282_CRC 123
#define MAVLINK_MSG_ID_GIMBAL_MANAGER_SET_ATTITUDE_CRC 36
#define MAVLINK_MSG_ID_282_CRC 36
#define MAVLINK_MSG_GIMBAL_MANAGER_SET_ATTITUDE_FIELD_Q_LEN 4
@@ -30,10 +30,10 @@ typedef struct __mavlink_gimbal_manager_set_attitude_t {
282, \
"GIMBAL_MANAGER_SET_ATTITUDE", \
8, \
{ { "target_system", NULL, MAVLINK_TYPE_UINT8_T, 0, 32, offsetof(mavlink_gimbal_manager_set_attitude_t, target_system) }, \
{ "target_component", NULL, MAVLINK_TYPE_UINT8_T, 0, 33, offsetof(mavlink_gimbal_manager_set_attitude_t, target_component) }, \
{ { "target_system", NULL, MAVLINK_TYPE_UINT16_T, 0, 32, offsetof(mavlink_gimbal_manager_set_attitude_t, target_system) }, \
{ "target_component", NULL, MAVLINK_TYPE_UINT8_T, 0, 34, offsetof(mavlink_gimbal_manager_set_attitude_t, target_component) }, \
{ "flags", NULL, MAVLINK_TYPE_UINT32_T, 0, 0, offsetof(mavlink_gimbal_manager_set_attitude_t, flags) }, \
{ "gimbal_device_id", NULL, MAVLINK_TYPE_UINT8_T, 0, 34, offsetof(mavlink_gimbal_manager_set_attitude_t, gimbal_device_id) }, \
{ "gimbal_device_id", NULL, MAVLINK_TYPE_UINT8_T, 0, 35, offsetof(mavlink_gimbal_manager_set_attitude_t, gimbal_device_id) }, \
{ "q", NULL, MAVLINK_TYPE_FLOAT, 4, 4, offsetof(mavlink_gimbal_manager_set_attitude_t, q) }, \
{ "angular_velocity_x", NULL, MAVLINK_TYPE_FLOAT, 0, 20, offsetof(mavlink_gimbal_manager_set_attitude_t, angular_velocity_x) }, \
{ "angular_velocity_y", NULL, MAVLINK_TYPE_FLOAT, 0, 24, offsetof(mavlink_gimbal_manager_set_attitude_t, angular_velocity_y) }, \
@@ -44,10 +44,10 @@ typedef struct __mavlink_gimbal_manager_set_attitude_t {
#define MAVLINK_MESSAGE_INFO_GIMBAL_MANAGER_SET_ATTITUDE { \
"GIMBAL_MANAGER_SET_ATTITUDE", \
8, \
{ { "target_system", NULL, MAVLINK_TYPE_UINT8_T, 0, 32, offsetof(mavlink_gimbal_manager_set_attitude_t, target_system) }, \
{ "target_component", NULL, MAVLINK_TYPE_UINT8_T, 0, 33, offsetof(mavlink_gimbal_manager_set_attitude_t, target_component) }, \
{ { "target_system", NULL, MAVLINK_TYPE_UINT16_T, 0, 32, offsetof(mavlink_gimbal_manager_set_attitude_t, target_system) }, \
{ "target_component", NULL, MAVLINK_TYPE_UINT8_T, 0, 34, offsetof(mavlink_gimbal_manager_set_attitude_t, target_component) }, \
{ "flags", NULL, MAVLINK_TYPE_UINT32_T, 0, 0, offsetof(mavlink_gimbal_manager_set_attitude_t, flags) }, \
{ "gimbal_device_id", NULL, MAVLINK_TYPE_UINT8_T, 0, 34, offsetof(mavlink_gimbal_manager_set_attitude_t, gimbal_device_id) }, \
{ "gimbal_device_id", NULL, MAVLINK_TYPE_UINT8_T, 0, 35, offsetof(mavlink_gimbal_manager_set_attitude_t, gimbal_device_id) }, \
{ "q", NULL, MAVLINK_TYPE_FLOAT, 4, 4, offsetof(mavlink_gimbal_manager_set_attitude_t, q) }, \
{ "angular_velocity_x", NULL, MAVLINK_TYPE_FLOAT, 0, 20, offsetof(mavlink_gimbal_manager_set_attitude_t, angular_velocity_x) }, \
{ "angular_velocity_y", NULL, MAVLINK_TYPE_FLOAT, 0, 24, offsetof(mavlink_gimbal_manager_set_attitude_t, angular_velocity_y) }, \
@@ -73,7 +73,7 @@ typedef struct __mavlink_gimbal_manager_set_attitude_t {
* @return length of the message in bytes (excluding serial stream start sign)
*/
static inline uint16_t mavlink_msg_gimbal_manager_set_attitude_pack(uint16_t system_id, uint8_t component_id, mavlink_message_t* msg,
uint8_t target_system, uint8_t target_component, uint32_t flags, uint8_t gimbal_device_id, const float *q, float angular_velocity_x, float angular_velocity_y, float angular_velocity_z)
uint16_t target_system, uint8_t target_component, uint32_t flags, uint8_t gimbal_device_id, const float *q, float angular_velocity_x, float angular_velocity_y, float angular_velocity_z)
{
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
char buf[MAVLINK_MSG_ID_GIMBAL_MANAGER_SET_ATTITUDE_LEN];
@@ -81,9 +81,9 @@ static inline uint16_t mavlink_msg_gimbal_manager_set_attitude_pack(uint16_t sys
_mav_put_float(buf, 20, angular_velocity_x);
_mav_put_float(buf, 24, angular_velocity_y);
_mav_put_float(buf, 28, angular_velocity_z);
_mav_put_uint8_t(buf, 32, target_system);
_mav_put_uint8_t(buf, 33, target_component);
_mav_put_uint8_t(buf, 34, gimbal_device_id);
_mav_put_uint16_t(buf, 32, target_system);
_mav_put_uint8_t(buf, 34, target_component);
_mav_put_uint8_t(buf, 35, gimbal_device_id);
_mav_put_float_array(buf, 4, q, 4);
memcpy(_MAV_PAYLOAD_NON_CONST(msg), buf, MAVLINK_MSG_ID_GIMBAL_MANAGER_SET_ATTITUDE_LEN);
#else
@@ -121,7 +121,7 @@ static inline uint16_t mavlink_msg_gimbal_manager_set_attitude_pack(uint16_t sys
*/
static inline uint16_t mavlink_msg_gimbal_manager_set_attitude_pack_chan(uint16_t system_id, uint8_t component_id, uint8_t chan,
mavlink_message_t* msg,
uint8_t target_system,uint8_t target_component,uint32_t flags,uint8_t gimbal_device_id,const float *q,float angular_velocity_x,float angular_velocity_y,float angular_velocity_z)
uint16_t target_system,uint8_t target_component,uint32_t flags,uint8_t gimbal_device_id,const float *q,float angular_velocity_x,float angular_velocity_y,float angular_velocity_z)
{
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
char buf[MAVLINK_MSG_ID_GIMBAL_MANAGER_SET_ATTITUDE_LEN];
@@ -129,9 +129,9 @@ static inline uint16_t mavlink_msg_gimbal_manager_set_attitude_pack_chan(uint16_
_mav_put_float(buf, 20, angular_velocity_x);
_mav_put_float(buf, 24, angular_velocity_y);
_mav_put_float(buf, 28, angular_velocity_z);
_mav_put_uint8_t(buf, 32, target_system);
_mav_put_uint8_t(buf, 33, target_component);
_mav_put_uint8_t(buf, 34, gimbal_device_id);
_mav_put_uint16_t(buf, 32, target_system);
_mav_put_uint8_t(buf, 34, target_component);
_mav_put_uint8_t(buf, 35, gimbal_device_id);
_mav_put_float_array(buf, 4, q, 4);
memcpy(_MAV_PAYLOAD_NON_CONST(msg), buf, MAVLINK_MSG_ID_GIMBAL_MANAGER_SET_ATTITUDE_LEN);
#else
@@ -193,7 +193,7 @@ static inline uint16_t mavlink_msg_gimbal_manager_set_attitude_encode_chan(uint1
*/
#ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS
static inline void mavlink_msg_gimbal_manager_set_attitude_send(mavlink_channel_t chan, uint8_t target_system, uint8_t target_component, uint32_t flags, uint8_t gimbal_device_id, const float *q, float angular_velocity_x, float angular_velocity_y, float angular_velocity_z)
static inline void mavlink_msg_gimbal_manager_set_attitude_send(mavlink_channel_t chan, uint16_t target_system, uint8_t target_component, uint32_t flags, uint8_t gimbal_device_id, const float *q, float angular_velocity_x, float angular_velocity_y, float angular_velocity_z)
{
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
char buf[MAVLINK_MSG_ID_GIMBAL_MANAGER_SET_ATTITUDE_LEN];
@@ -201,9 +201,9 @@ static inline void mavlink_msg_gimbal_manager_set_attitude_send(mavlink_channel_
_mav_put_float(buf, 20, angular_velocity_x);
_mav_put_float(buf, 24, angular_velocity_y);
_mav_put_float(buf, 28, angular_velocity_z);
_mav_put_uint8_t(buf, 32, target_system);
_mav_put_uint8_t(buf, 33, target_component);
_mav_put_uint8_t(buf, 34, gimbal_device_id);
_mav_put_uint16_t(buf, 32, target_system);
_mav_put_uint8_t(buf, 34, target_component);
_mav_put_uint8_t(buf, 35, gimbal_device_id);
_mav_put_float_array(buf, 4, q, 4);
_mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_GIMBAL_MANAGER_SET_ATTITUDE, buf, MAVLINK_MSG_ID_GIMBAL_MANAGER_SET_ATTITUDE_MIN_LEN, MAVLINK_MSG_ID_GIMBAL_MANAGER_SET_ATTITUDE_LEN, MAVLINK_MSG_ID_GIMBAL_MANAGER_SET_ATTITUDE_CRC);
#else
@@ -242,7 +242,7 @@ static inline void mavlink_msg_gimbal_manager_set_attitude_send_struct(mavlink_c
is usually the receive buffer for the channel, and allows a reply to an
incoming message with minimum stack space usage.
*/
static inline void mavlink_msg_gimbal_manager_set_attitude_send_buf(mavlink_message_t *msgbuf, mavlink_channel_t chan, uint8_t target_system, uint8_t target_component, uint32_t flags, uint8_t gimbal_device_id, const float *q, float angular_velocity_x, float angular_velocity_y, float angular_velocity_z)
static inline void mavlink_msg_gimbal_manager_set_attitude_send_buf(mavlink_message_t *msgbuf, mavlink_channel_t chan, uint16_t target_system, uint8_t target_component, uint32_t flags, uint8_t gimbal_device_id, const float *q, float angular_velocity_x, float angular_velocity_y, float angular_velocity_z)
{
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
char *buf = (char *)msgbuf;
@@ -250,9 +250,9 @@ static inline void mavlink_msg_gimbal_manager_set_attitude_send_buf(mavlink_mess
_mav_put_float(buf, 20, angular_velocity_x);
_mav_put_float(buf, 24, angular_velocity_y);
_mav_put_float(buf, 28, angular_velocity_z);
_mav_put_uint8_t(buf, 32, target_system);
_mav_put_uint8_t(buf, 33, target_component);
_mav_put_uint8_t(buf, 34, gimbal_device_id);
_mav_put_uint16_t(buf, 32, target_system);
_mav_put_uint8_t(buf, 34, target_component);
_mav_put_uint8_t(buf, 35, gimbal_device_id);
_mav_put_float_array(buf, 4, q, 4);
_mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_GIMBAL_MANAGER_SET_ATTITUDE, buf, MAVLINK_MSG_ID_GIMBAL_MANAGER_SET_ATTITUDE_MIN_LEN, MAVLINK_MSG_ID_GIMBAL_MANAGER_SET_ATTITUDE_LEN, MAVLINK_MSG_ID_GIMBAL_MANAGER_SET_ATTITUDE_CRC);
#else
@@ -280,9 +280,9 @@ static inline void mavlink_msg_gimbal_manager_set_attitude_send_buf(mavlink_mess
*
* @return System ID
*/
static inline uint8_t mavlink_msg_gimbal_manager_set_attitude_get_target_system(const mavlink_message_t* msg)
static inline uint16_t mavlink_msg_gimbal_manager_set_attitude_get_target_system(const mavlink_message_t* msg)
{
return _MAV_RETURN_uint8_t(msg, 32);
return _MAV_RETURN_uint16_t(msg, 32);
}
/**
@@ -292,7 +292,7 @@ static inline uint8_t mavlink_msg_gimbal_manager_set_attitude_get_target_system(
*/
static inline uint8_t mavlink_msg_gimbal_manager_set_attitude_get_target_component(const mavlink_message_t* msg)
{
return _MAV_RETURN_uint8_t(msg, 33);
return _MAV_RETURN_uint8_t(msg, 34);
}
/**
@@ -312,7 +312,7 @@ static inline uint32_t mavlink_msg_gimbal_manager_set_attitude_get_flags(const m
*/
static inline uint8_t mavlink_msg_gimbal_manager_set_attitude_get_gimbal_device_id(const mavlink_message_t* msg)
{
return _MAV_RETURN_uint8_t(msg, 34);
return _MAV_RETURN_uint8_t(msg, 35);
}
/**