3 #define MAVLINK_MSG_ID_GIMBAL_REPORT 200
21 #define MAVLINK_MSG_ID_GIMBAL_REPORT_LEN 42
22 #define MAVLINK_MSG_ID_200_LEN 42
24 #define MAVLINK_MSG_ID_GIMBAL_REPORT_CRC 134
25 #define MAVLINK_MSG_ID_200_CRC 134
29 #define MAVLINK_MESSAGE_INFO_GIMBAL_REPORT { \
32 { { "delta_time", NULL, MAVLINK_TYPE_FLOAT, 0, 0, offsetof(mavlink_gimbal_report_t, delta_time) }, \
33 { "delta_angle_x", NULL, MAVLINK_TYPE_FLOAT, 0, 4, offsetof(mavlink_gimbal_report_t, delta_angle_x) }, \
34 { "delta_angle_y", NULL, MAVLINK_TYPE_FLOAT, 0, 8, offsetof(mavlink_gimbal_report_t, delta_angle_y) }, \
35 { "delta_angle_z", NULL, MAVLINK_TYPE_FLOAT, 0, 12, offsetof(mavlink_gimbal_report_t, delta_angle_z) }, \
36 { "delta_velocity_x", NULL, MAVLINK_TYPE_FLOAT, 0, 16, offsetof(mavlink_gimbal_report_t, delta_velocity_x) }, \
37 { "delta_velocity_y", NULL, MAVLINK_TYPE_FLOAT, 0, 20, offsetof(mavlink_gimbal_report_t, delta_velocity_y) }, \
38 { "delta_velocity_z", NULL, MAVLINK_TYPE_FLOAT, 0, 24, offsetof(mavlink_gimbal_report_t, delta_velocity_z) }, \
39 { "joint_roll", NULL, MAVLINK_TYPE_FLOAT, 0, 28, offsetof(mavlink_gimbal_report_t, joint_roll) }, \
40 { "joint_el", NULL, MAVLINK_TYPE_FLOAT, 0, 32, offsetof(mavlink_gimbal_report_t, joint_el) }, \
41 { "joint_az", NULL, MAVLINK_TYPE_FLOAT, 0, 36, offsetof(mavlink_gimbal_report_t, joint_az) }, \
42 { "target_system", NULL, MAVLINK_TYPE_UINT8_T, 0, 40, offsetof(mavlink_gimbal_report_t, target_system) }, \
43 { "target_component", NULL, MAVLINK_TYPE_UINT8_T, 0, 41, offsetof(mavlink_gimbal_report_t, target_component) }, \
68 static inline uint16_t mavlink_msg_gimbal_report_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
69 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)
71 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
106 #if MAVLINK_CRC_EXTRA
133 static inline uint16_t mavlink_msg_gimbal_report_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan,
134 mavlink_message_t* msg,
135 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)
137 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
172 #if MAVLINK_CRC_EXTRA
187 static inline uint16_t mavlink_msg_gimbal_report_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
const mavlink_gimbal_report_t* gimbal_report)
189 return mavlink_msg_gimbal_report_pack(system_id, component_id, msg, gimbal_report->
target_system, gimbal_report->
target_component, gimbal_report->
delta_time, gimbal_report->
delta_angle_x, gimbal_report->
delta_angle_y, gimbal_report->
delta_angle_z, gimbal_report->
delta_velocity_x, gimbal_report->
delta_velocity_y, gimbal_report->
delta_velocity_z, gimbal_report->
joint_roll, gimbal_report->
joint_el, gimbal_report->
joint_az);
201 static inline uint16_t mavlink_msg_gimbal_report_encode_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t* msg,
const mavlink_gimbal_report_t* gimbal_report)
203 return mavlink_msg_gimbal_report_pack_chan(system_id, component_id, chan, msg, gimbal_report->
target_system, gimbal_report->
target_component, gimbal_report->
delta_time, gimbal_report->
delta_angle_x, gimbal_report->
delta_angle_y, gimbal_report->
delta_angle_z, gimbal_report->
delta_velocity_x, gimbal_report->
delta_velocity_y, gimbal_report->
delta_velocity_z, gimbal_report->
joint_roll, gimbal_report->
joint_el, gimbal_report->
joint_az);
223 #ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS
225 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)
227 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
242 #if MAVLINK_CRC_EXTRA
262 #if MAVLINK_CRC_EXTRA
270 #if MAVLINK_MSG_ID_GIMBAL_REPORT_LEN <= MAVLINK_MAX_PAYLOAD_LEN
278 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)
280 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
281 char *buf = (
char *)msgbuf;
295 #if MAVLINK_CRC_EXTRA
315 #if MAVLINK_CRC_EXTRA
334 static inline uint8_t mavlink_msg_gimbal_report_get_target_system(
const mavlink_message_t* msg)
344 static inline uint8_t mavlink_msg_gimbal_report_get_target_component(
const mavlink_message_t* msg)
354 static inline float mavlink_msg_gimbal_report_get_delta_time(
const mavlink_message_t* msg)
356 return _MAV_RETURN_float(msg, 0);
364 static inline float mavlink_msg_gimbal_report_get_delta_angle_x(
const mavlink_message_t* msg)
366 return _MAV_RETURN_float(msg, 4);
374 static inline float mavlink_msg_gimbal_report_get_delta_angle_y(
const mavlink_message_t* msg)
376 return _MAV_RETURN_float(msg, 8);
384 static inline float mavlink_msg_gimbal_report_get_delta_angle_z(
const mavlink_message_t* msg)
386 return _MAV_RETURN_float(msg, 12);
394 static inline float mavlink_msg_gimbal_report_get_delta_velocity_x(
const mavlink_message_t* msg)
396 return _MAV_RETURN_float(msg, 16);
404 static inline float mavlink_msg_gimbal_report_get_delta_velocity_y(
const mavlink_message_t* msg)
406 return _MAV_RETURN_float(msg, 20);
414 static inline float mavlink_msg_gimbal_report_get_delta_velocity_z(
const mavlink_message_t* msg)
416 return _MAV_RETURN_float(msg, 24);
424 static inline float mavlink_msg_gimbal_report_get_joint_roll(
const mavlink_message_t* msg)
426 return _MAV_RETURN_float(msg, 28);
434 static inline float mavlink_msg_gimbal_report_get_joint_el(
const mavlink_message_t* msg)
436 return _MAV_RETURN_float(msg, 32);
444 static inline float mavlink_msg_gimbal_report_get_joint_az(
const mavlink_message_t* msg)
446 return _MAV_RETURN_float(msg, 36);
455 static inline void mavlink_msg_gimbal_report_decode(
const mavlink_message_t* msg,
mavlink_gimbal_report_t* gimbal_report)
457 #if MAVLINK_NEED_BYTE_SWAP
458 gimbal_report->
delta_time = mavlink_msg_gimbal_report_get_delta_time(msg);
459 gimbal_report->
delta_angle_x = mavlink_msg_gimbal_report_get_delta_angle_x(msg);
460 gimbal_report->
delta_angle_y = mavlink_msg_gimbal_report_get_delta_angle_y(msg);
461 gimbal_report->
delta_angle_z = mavlink_msg_gimbal_report_get_delta_angle_z(msg);
462 gimbal_report->
delta_velocity_x = mavlink_msg_gimbal_report_get_delta_velocity_x(msg);
463 gimbal_report->
delta_velocity_y = mavlink_msg_gimbal_report_get_delta_velocity_y(msg);
464 gimbal_report->
delta_velocity_z = mavlink_msg_gimbal_report_get_delta_velocity_z(msg);
465 gimbal_report->
joint_roll = mavlink_msg_gimbal_report_get_joint_roll(msg);
466 gimbal_report->
joint_el = mavlink_msg_gimbal_report_get_joint_el(msg);
467 gimbal_report->
joint_az = mavlink_msg_gimbal_report_get_joint_az(msg);
468 gimbal_report->
target_system = mavlink_msg_gimbal_report_get_target_system(msg);
469 gimbal_report->
target_component = mavlink_msg_gimbal_report_get_target_component(msg);
uint8_t target_system
System ID.
Definition: mavlink_msg_gimbal_report.h:17
#define _mav_put_float(buf, wire_offset, b)
Definition: protocol.h:145
float joint_az
Joint AZ (radians)
Definition: mavlink_msg_gimbal_report.h:16
float delta_time
Time since last update (seconds)
Definition: mavlink_msg_gimbal_report.h:7
float delta_velocity_y
Delta velocity Y (m/s)
Definition: mavlink_msg_gimbal_report.h:12
#define _MAV_RETURN_uint8_t(msg, wire_offset)
Definition: protocol.h:238
float delta_velocity_x
Delta velocity X (m/s)
Definition: mavlink_msg_gimbal_report.h:11
MAVLINK_HELPER uint16_t mavlink_finalize_message(mavlink_message_t *msg, uint8_t system_id, uint8_t component_id, uint8_t length)
Finalize a MAVLink message with MAVLINK_COMM_0 as default channel.
Definition: mavlink_helpers.h:105
uint8_t target_component
Component ID.
Definition: mavlink_msg_gimbal_report.h:18
#define _mav_put_uint8_t(buf, wire_offset, b)
Definition: protocol.h:134
#define MAVLINK_MSG_ID_GIMBAL_REPORT
Definition: mavlink_msg_gimbal_report.h:3
#define _MAV_PAYLOAD_NON_CONST(msg)
Definition: mavlink_types.h:172
float delta_angle_z
Delta angle X (radians)
Definition: mavlink_msg_gimbal_report.h:10
mavlink_channel_t
Definition: mavlink_types.h:178
#define _MAV_PAYLOAD(msg)
Definition: mavlink_types.h:171
float joint_el
Joint EL (radians)
Definition: mavlink_msg_gimbal_report.h:15
float delta_angle_x
Delta angle X (radians)
Definition: mavlink_msg_gimbal_report.h:8
Definition: mavlink_msg_gimbal_report.h:5
float delta_velocity_z
Delta velocity Z (m/s)
Definition: mavlink_msg_gimbal_report.h:13
float joint_roll
Joint ROLL (radians)
Definition: mavlink_msg_gimbal_report.h:14
#define MAVLINK_MSG_ID_GIMBAL_REPORT_CRC
Definition: mavlink_msg_gimbal_report.h:24
float delta_angle_y
Delta angle Y (radians)
Definition: mavlink_msg_gimbal_report.h:9
#define MAVLINK_MSG_ID_GIMBAL_REPORT_LEN
Definition: mavlink_msg_gimbal_report.h:21
struct __mavlink_gimbal_report_t mavlink_gimbal_report_t
MAVLINK_HELPER uint16_t mavlink_finalize_message_chan(mavlink_message_t *msg, uint8_t system_id, uint8_t component_id, uint8_t chan, uint8_t length)
Finalize a MAVLink message with channel assignment.
Definition: mavlink_helpers.h:71