update
This commit is contained in:
@@ -15,17 +15,17 @@ typedef struct __mavlink_gimbal_report_t {
|
||||
float joint_roll; /*< [rad] Joint ROLL.*/
|
||||
float joint_el; /*< [rad] Joint EL.*/
|
||||
float joint_az; /*< [rad] Joint AZ.*/
|
||||
uint8_t target_system; /*< System ID.*/
|
||||
uint16_t target_system; /*< System ID.*/
|
||||
uint8_t target_component; /*< Component ID.*/
|
||||
} mavlink_gimbal_report_t;
|
||||
|
||||
#define MAVLINK_MSG_ID_GIMBAL_REPORT_LEN 42
|
||||
#define MAVLINK_MSG_ID_GIMBAL_REPORT_MIN_LEN 42
|
||||
#define MAVLINK_MSG_ID_200_LEN 42
|
||||
#define MAVLINK_MSG_ID_200_MIN_LEN 42
|
||||
#define MAVLINK_MSG_ID_GIMBAL_REPORT_LEN 43
|
||||
#define MAVLINK_MSG_ID_GIMBAL_REPORT_MIN_LEN 43
|
||||
#define MAVLINK_MSG_ID_200_LEN 43
|
||||
#define MAVLINK_MSG_ID_200_MIN_LEN 43
|
||||
|
||||
#define MAVLINK_MSG_ID_GIMBAL_REPORT_CRC 134
|
||||
#define MAVLINK_MSG_ID_200_CRC 134
|
||||
#define MAVLINK_MSG_ID_GIMBAL_REPORT_CRC 13
|
||||
#define MAVLINK_MSG_ID_200_CRC 13
|
||||
|
||||
|
||||
|
||||
@@ -34,8 +34,8 @@ typedef struct __mavlink_gimbal_report_t {
|
||||
200, \
|
||||
"GIMBAL_REPORT", \
|
||||
12, \
|
||||
{ { "target_system", NULL, MAVLINK_TYPE_UINT8_T, 0, 40, offsetof(mavlink_gimbal_report_t, target_system) }, \
|
||||
{ "target_component", NULL, MAVLINK_TYPE_UINT8_T, 0, 41, offsetof(mavlink_gimbal_report_t, target_component) }, \
|
||||
{ { "target_system", NULL, MAVLINK_TYPE_UINT16_T, 0, 40, offsetof(mavlink_gimbal_report_t, target_system) }, \
|
||||
{ "target_component", NULL, MAVLINK_TYPE_UINT8_T, 0, 42, offsetof(mavlink_gimbal_report_t, target_component) }, \
|
||||
{ "delta_time", NULL, MAVLINK_TYPE_FLOAT, 0, 0, offsetof(mavlink_gimbal_report_t, delta_time) }, \
|
||||
{ "delta_angle_x", NULL, MAVLINK_TYPE_FLOAT, 0, 4, offsetof(mavlink_gimbal_report_t, delta_angle_x) }, \
|
||||
{ "delta_angle_y", NULL, MAVLINK_TYPE_FLOAT, 0, 8, offsetof(mavlink_gimbal_report_t, delta_angle_y) }, \
|
||||
@@ -52,8 +52,8 @@ typedef struct __mavlink_gimbal_report_t {
|
||||
#define MAVLINK_MESSAGE_INFO_GIMBAL_REPORT { \
|
||||
"GIMBAL_REPORT", \
|
||||
12, \
|
||||
{ { "target_system", NULL, MAVLINK_TYPE_UINT8_T, 0, 40, offsetof(mavlink_gimbal_report_t, target_system) }, \
|
||||
{ "target_component", NULL, MAVLINK_TYPE_UINT8_T, 0, 41, offsetof(mavlink_gimbal_report_t, target_component) }, \
|
||||
{ { "target_system", NULL, MAVLINK_TYPE_UINT16_T, 0, 40, offsetof(mavlink_gimbal_report_t, target_system) }, \
|
||||
{ "target_component", NULL, MAVLINK_TYPE_UINT8_T, 0, 42, offsetof(mavlink_gimbal_report_t, target_component) }, \
|
||||
{ "delta_time", NULL, MAVLINK_TYPE_FLOAT, 0, 0, offsetof(mavlink_gimbal_report_t, delta_time) }, \
|
||||
{ "delta_angle_x", NULL, MAVLINK_TYPE_FLOAT, 0, 4, offsetof(mavlink_gimbal_report_t, delta_angle_x) }, \
|
||||
{ "delta_angle_y", NULL, MAVLINK_TYPE_FLOAT, 0, 8, offsetof(mavlink_gimbal_report_t, delta_angle_y) }, \
|
||||
@@ -89,7 +89,7 @@ typedef struct __mavlink_gimbal_report_t {
|
||||
* @return length of the message in bytes (excluding serial stream start sign)
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_gimbal_report_pack(uint16_t system_id, uint8_t component_id, mavlink_message_t* msg,
|
||||
uint8_t target_system, uint8_t target_component, float delta_time, float delta_angle_x, float delta_angle_y, float delta_angle_z, float delta_velocity_x, float delta_velocity_y, float delta_velocity_z, float joint_roll, float joint_el, float joint_az)
|
||||
uint16_t target_system, uint8_t target_component, float delta_time, float delta_angle_x, float delta_angle_y, float delta_angle_z, float delta_velocity_x, float delta_velocity_y, float delta_velocity_z, float joint_roll, float joint_el, float joint_az)
|
||||
{
|
||||
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
|
||||
char buf[MAVLINK_MSG_ID_GIMBAL_REPORT_LEN];
|
||||
@@ -103,8 +103,8 @@ static inline uint16_t mavlink_msg_gimbal_report_pack(uint16_t system_id, uint8_
|
||||
_mav_put_float(buf, 28, joint_roll);
|
||||
_mav_put_float(buf, 32, joint_el);
|
||||
_mav_put_float(buf, 36, joint_az);
|
||||
_mav_put_uint8_t(buf, 40, target_system);
|
||||
_mav_put_uint8_t(buf, 41, target_component);
|
||||
_mav_put_uint16_t(buf, 40, target_system);
|
||||
_mav_put_uint8_t(buf, 42, target_component);
|
||||
|
||||
memcpy(_MAV_PAYLOAD_NON_CONST(msg), buf, MAVLINK_MSG_ID_GIMBAL_REPORT_LEN);
|
||||
#else
|
||||
@@ -151,7 +151,7 @@ static inline uint16_t mavlink_msg_gimbal_report_pack(uint16_t system_id, uint8_
|
||||
*/
|
||||
static inline uint16_t mavlink_msg_gimbal_report_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,float delta_time,float delta_angle_x,float delta_angle_y,float delta_angle_z,float delta_velocity_x,float delta_velocity_y,float delta_velocity_z,float joint_roll,float joint_el,float joint_az)
|
||||
uint16_t target_system,uint8_t target_component,float delta_time,float delta_angle_x,float delta_angle_y,float delta_angle_z,float delta_velocity_x,float delta_velocity_y,float delta_velocity_z,float joint_roll,float joint_el,float joint_az)
|
||||
{
|
||||
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
|
||||
char buf[MAVLINK_MSG_ID_GIMBAL_REPORT_LEN];
|
||||
@@ -165,8 +165,8 @@ static inline uint16_t mavlink_msg_gimbal_report_pack_chan(uint16_t system_id, u
|
||||
_mav_put_float(buf, 28, joint_roll);
|
||||
_mav_put_float(buf, 32, joint_el);
|
||||
_mav_put_float(buf, 36, joint_az);
|
||||
_mav_put_uint8_t(buf, 40, target_system);
|
||||
_mav_put_uint8_t(buf, 41, target_component);
|
||||
_mav_put_uint16_t(buf, 40, target_system);
|
||||
_mav_put_uint8_t(buf, 42, target_component);
|
||||
|
||||
memcpy(_MAV_PAYLOAD_NON_CONST(msg), buf, MAVLINK_MSG_ID_GIMBAL_REPORT_LEN);
|
||||
#else
|
||||
@@ -237,7 +237,7 @@ static inline uint16_t mavlink_msg_gimbal_report_encode_chan(uint16_t system_id,
|
||||
*/
|
||||
#ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS
|
||||
|
||||
static inline void mavlink_msg_gimbal_report_send(mavlink_channel_t chan, uint8_t target_system, uint8_t target_component, float delta_time, float delta_angle_x, float delta_angle_y, float delta_angle_z, float delta_velocity_x, float delta_velocity_y, float delta_velocity_z, float joint_roll, float joint_el, float joint_az)
|
||||
static inline void mavlink_msg_gimbal_report_send(mavlink_channel_t chan, uint16_t target_system, uint8_t target_component, float delta_time, float delta_angle_x, float delta_angle_y, float delta_angle_z, float delta_velocity_x, float delta_velocity_y, float delta_velocity_z, float joint_roll, float joint_el, float joint_az)
|
||||
{
|
||||
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
|
||||
char buf[MAVLINK_MSG_ID_GIMBAL_REPORT_LEN];
|
||||
@@ -251,8 +251,8 @@ static inline void mavlink_msg_gimbal_report_send(mavlink_channel_t chan, uint8_
|
||||
_mav_put_float(buf, 28, joint_roll);
|
||||
_mav_put_float(buf, 32, joint_el);
|
||||
_mav_put_float(buf, 36, joint_az);
|
||||
_mav_put_uint8_t(buf, 40, target_system);
|
||||
_mav_put_uint8_t(buf, 41, target_component);
|
||||
_mav_put_uint16_t(buf, 40, target_system);
|
||||
_mav_put_uint8_t(buf, 42, target_component);
|
||||
|
||||
_mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_GIMBAL_REPORT, buf, MAVLINK_MSG_ID_GIMBAL_REPORT_MIN_LEN, MAVLINK_MSG_ID_GIMBAL_REPORT_LEN, MAVLINK_MSG_ID_GIMBAL_REPORT_CRC);
|
||||
#else
|
||||
@@ -296,7 +296,7 @@ static inline void mavlink_msg_gimbal_report_send_struct(mavlink_channel_t chan,
|
||||
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_report_send_buf(mavlink_message_t *msgbuf, mavlink_channel_t chan, uint8_t target_system, uint8_t target_component, float delta_time, float delta_angle_x, float delta_angle_y, float delta_angle_z, float delta_velocity_x, float delta_velocity_y, float delta_velocity_z, float joint_roll, float joint_el, float joint_az)
|
||||
static inline void mavlink_msg_gimbal_report_send_buf(mavlink_message_t *msgbuf, mavlink_channel_t chan, uint16_t target_system, uint8_t target_component, float delta_time, float delta_angle_x, float delta_angle_y, float delta_angle_z, float delta_velocity_x, float delta_velocity_y, float delta_velocity_z, float joint_roll, float joint_el, float joint_az)
|
||||
{
|
||||
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
|
||||
char *buf = (char *)msgbuf;
|
||||
@@ -310,8 +310,8 @@ static inline void mavlink_msg_gimbal_report_send_buf(mavlink_message_t *msgbuf,
|
||||
_mav_put_float(buf, 28, joint_roll);
|
||||
_mav_put_float(buf, 32, joint_el);
|
||||
_mav_put_float(buf, 36, joint_az);
|
||||
_mav_put_uint8_t(buf, 40, target_system);
|
||||
_mav_put_uint8_t(buf, 41, target_component);
|
||||
_mav_put_uint16_t(buf, 40, target_system);
|
||||
_mav_put_uint8_t(buf, 42, target_component);
|
||||
|
||||
_mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_GIMBAL_REPORT, buf, MAVLINK_MSG_ID_GIMBAL_REPORT_MIN_LEN, MAVLINK_MSG_ID_GIMBAL_REPORT_LEN, MAVLINK_MSG_ID_GIMBAL_REPORT_CRC);
|
||||
#else
|
||||
@@ -344,9 +344,9 @@ static inline void mavlink_msg_gimbal_report_send_buf(mavlink_message_t *msgbuf,
|
||||
*
|
||||
* @return System ID.
|
||||
*/
|
||||
static inline uint8_t mavlink_msg_gimbal_report_get_target_system(const mavlink_message_t* msg)
|
||||
static inline uint16_t mavlink_msg_gimbal_report_get_target_system(const mavlink_message_t* msg)
|
||||
{
|
||||
return _MAV_RETURN_uint8_t(msg, 40);
|
||||
return _MAV_RETURN_uint16_t(msg, 40);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -356,7 +356,7 @@ static inline uint8_t mavlink_msg_gimbal_report_get_target_system(const mavlink_
|
||||
*/
|
||||
static inline uint8_t mavlink_msg_gimbal_report_get_target_component(const mavlink_message_t* msg)
|
||||
{
|
||||
return _MAV_RETURN_uint8_t(msg, 41);
|
||||
return _MAV_RETURN_uint8_t(msg, 42);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user