3 #define MAVLINK_MSG_ID_SET_POSITION_TARGET_GLOBAL_INT 86
25 #define MAVLINK_MSG_ID_SET_POSITION_TARGET_GLOBAL_INT_LEN 53
26 #define MAVLINK_MSG_ID_86_LEN 53
28 #define MAVLINK_MSG_ID_SET_POSITION_TARGET_GLOBAL_INT_CRC 5
29 #define MAVLINK_MSG_ID_86_CRC 5
33 #define MAVLINK_MESSAGE_INFO_SET_POSITION_TARGET_GLOBAL_INT { \
34 "SET_POSITION_TARGET_GLOBAL_INT", \
36 { { "time_boot_ms", NULL, MAVLINK_TYPE_UINT32_T, 0, 0, offsetof(mavlink_set_position_target_global_int_t, time_boot_ms) }, \
37 { "lat_int", NULL, MAVLINK_TYPE_INT32_T, 0, 4, offsetof(mavlink_set_position_target_global_int_t, lat_int) }, \
38 { "lon_int", NULL, MAVLINK_TYPE_INT32_T, 0, 8, offsetof(mavlink_set_position_target_global_int_t, lon_int) }, \
39 { "alt", NULL, MAVLINK_TYPE_FLOAT, 0, 12, offsetof(mavlink_set_position_target_global_int_t, alt) }, \
40 { "vx", NULL, MAVLINK_TYPE_FLOAT, 0, 16, offsetof(mavlink_set_position_target_global_int_t, vx) }, \
41 { "vy", NULL, MAVLINK_TYPE_FLOAT, 0, 20, offsetof(mavlink_set_position_target_global_int_t, vy) }, \
42 { "vz", NULL, MAVLINK_TYPE_FLOAT, 0, 24, offsetof(mavlink_set_position_target_global_int_t, vz) }, \
43 { "afx", NULL, MAVLINK_TYPE_FLOAT, 0, 28, offsetof(mavlink_set_position_target_global_int_t, afx) }, \
44 { "afy", NULL, MAVLINK_TYPE_FLOAT, 0, 32, offsetof(mavlink_set_position_target_global_int_t, afy) }, \
45 { "afz", NULL, MAVLINK_TYPE_FLOAT, 0, 36, offsetof(mavlink_set_position_target_global_int_t, afz) }, \
46 { "yaw", NULL, MAVLINK_TYPE_FLOAT, 0, 40, offsetof(mavlink_set_position_target_global_int_t, yaw) }, \
47 { "yaw_rate", NULL, MAVLINK_TYPE_FLOAT, 0, 44, offsetof(mavlink_set_position_target_global_int_t, yaw_rate) }, \
48 { "type_mask", NULL, MAVLINK_TYPE_UINT16_T, 0, 48, offsetof(mavlink_set_position_target_global_int_t, type_mask) }, \
49 { "target_system", NULL, MAVLINK_TYPE_UINT8_T, 0, 50, offsetof(mavlink_set_position_target_global_int_t, target_system) }, \
50 { "target_component", NULL, MAVLINK_TYPE_UINT8_T, 0, 51, offsetof(mavlink_set_position_target_global_int_t, target_component) }, \
51 { "coordinate_frame", NULL, MAVLINK_TYPE_UINT8_T, 0, 52, offsetof(mavlink_set_position_target_global_int_t, coordinate_frame) }, \
80 static inline uint16_t mavlink_msg_set_position_target_global_int_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
81 uint32_t time_boot_ms, uint8_t target_system, uint8_t target_component, uint8_t coordinate_frame, uint16_t type_mask, int32_t lat_int, int32_t lon_int,
float alt,
float vx,
float vy,
float vz,
float afx,
float afy,
float afz,
float yaw,
float yaw_rate)
83 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
126 #if MAVLINK_CRC_EXTRA
157 static inline uint16_t mavlink_msg_set_position_target_global_int_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan,
158 mavlink_message_t* msg,
159 uint32_t time_boot_ms,uint8_t target_system,uint8_t target_component,uint8_t coordinate_frame,uint16_t type_mask,int32_t lat_int,int32_t lon_int,
float alt,
float vx,
float vy,
float vz,
float afx,
float afy,
float afz,
float yaw,
float yaw_rate)
161 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
204 #if MAVLINK_CRC_EXTRA
219 static inline uint16_t mavlink_msg_set_position_target_global_int_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
const mavlink_set_position_target_global_int_t* set_position_target_global_int)
221 return mavlink_msg_set_position_target_global_int_pack(system_id, component_id, msg, set_position_target_global_int->
time_boot_ms, set_position_target_global_int->
target_system, set_position_target_global_int->
target_component, set_position_target_global_int->
coordinate_frame, set_position_target_global_int->
type_mask, set_position_target_global_int->
lat_int, set_position_target_global_int->
lon_int, set_position_target_global_int->
alt, set_position_target_global_int->
vx, set_position_target_global_int->
vy, set_position_target_global_int->
vz, set_position_target_global_int->
afx, set_position_target_global_int->
afy, set_position_target_global_int->
afz, set_position_target_global_int->
yaw, set_position_target_global_int->
yaw_rate);
233 static inline uint16_t mavlink_msg_set_position_target_global_int_encode_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t* msg,
const mavlink_set_position_target_global_int_t* set_position_target_global_int)
235 return mavlink_msg_set_position_target_global_int_pack_chan(system_id, component_id, chan, msg, set_position_target_global_int->
time_boot_ms, set_position_target_global_int->
target_system, set_position_target_global_int->
target_component, set_position_target_global_int->
coordinate_frame, set_position_target_global_int->
type_mask, set_position_target_global_int->
lat_int, set_position_target_global_int->
lon_int, set_position_target_global_int->
alt, set_position_target_global_int->
vx, set_position_target_global_int->
vy, set_position_target_global_int->
vz, set_position_target_global_int->
afx, set_position_target_global_int->
afy, set_position_target_global_int->
afz, set_position_target_global_int->
yaw, set_position_target_global_int->
yaw_rate);
259 #ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS
261 static inline void mavlink_msg_set_position_target_global_int_send(
mavlink_channel_t chan, uint32_t time_boot_ms, uint8_t target_system, uint8_t target_component, uint8_t coordinate_frame, uint16_t type_mask, int32_t lat_int, int32_t lon_int,
float alt,
float vx,
float vy,
float vz,
float afx,
float afy,
float afz,
float yaw,
float yaw_rate)
263 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
282 #if MAVLINK_CRC_EXTRA
306 #if MAVLINK_CRC_EXTRA
314 #if MAVLINK_MSG_ID_SET_POSITION_TARGET_GLOBAL_INT_LEN <= MAVLINK_MAX_PAYLOAD_LEN
322 static inline void mavlink_msg_set_position_target_global_int_send_buf(mavlink_message_t *msgbuf,
mavlink_channel_t chan, uint32_t time_boot_ms, uint8_t target_system, uint8_t target_component, uint8_t coordinate_frame, uint16_t type_mask, int32_t lat_int, int32_t lon_int,
float alt,
float vx,
float vy,
float vz,
float afx,
float afy,
float afz,
float yaw,
float yaw_rate)
324 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
325 char *buf = (
char *)msgbuf;
343 #if MAVLINK_CRC_EXTRA
367 #if MAVLINK_CRC_EXTRA
386 static inline uint32_t mavlink_msg_set_position_target_global_int_get_time_boot_ms(
const mavlink_message_t* msg)
388 return _MAV_RETURN_uint32_t(msg, 0);
396 static inline uint8_t mavlink_msg_set_position_target_global_int_get_target_system(
const mavlink_message_t* msg)
406 static inline uint8_t mavlink_msg_set_position_target_global_int_get_target_component(
const mavlink_message_t* msg)
416 static inline uint8_t mavlink_msg_set_position_target_global_int_get_coordinate_frame(
const mavlink_message_t* msg)
426 static inline uint16_t mavlink_msg_set_position_target_global_int_get_type_mask(
const mavlink_message_t* msg)
428 return _MAV_RETURN_uint16_t(msg, 48);
436 static inline int32_t mavlink_msg_set_position_target_global_int_get_lat_int(
const mavlink_message_t* msg)
438 return _MAV_RETURN_int32_t(msg, 4);
446 static inline int32_t mavlink_msg_set_position_target_global_int_get_lon_int(
const mavlink_message_t* msg)
448 return _MAV_RETURN_int32_t(msg, 8);
456 static inline float mavlink_msg_set_position_target_global_int_get_alt(
const mavlink_message_t* msg)
458 return _MAV_RETURN_float(msg, 12);
466 static inline float mavlink_msg_set_position_target_global_int_get_vx(
const mavlink_message_t* msg)
468 return _MAV_RETURN_float(msg, 16);
476 static inline float mavlink_msg_set_position_target_global_int_get_vy(
const mavlink_message_t* msg)
478 return _MAV_RETURN_float(msg, 20);
486 static inline float mavlink_msg_set_position_target_global_int_get_vz(
const mavlink_message_t* msg)
488 return _MAV_RETURN_float(msg, 24);
496 static inline float mavlink_msg_set_position_target_global_int_get_afx(
const mavlink_message_t* msg)
498 return _MAV_RETURN_float(msg, 28);
506 static inline float mavlink_msg_set_position_target_global_int_get_afy(
const mavlink_message_t* msg)
508 return _MAV_RETURN_float(msg, 32);
516 static inline float mavlink_msg_set_position_target_global_int_get_afz(
const mavlink_message_t* msg)
518 return _MAV_RETURN_float(msg, 36);
526 static inline float mavlink_msg_set_position_target_global_int_get_yaw(
const mavlink_message_t* msg)
528 return _MAV_RETURN_float(msg, 40);
536 static inline float mavlink_msg_set_position_target_global_int_get_yaw_rate(
const mavlink_message_t* msg)
538 return _MAV_RETURN_float(msg, 44);
549 #if MAVLINK_NEED_BYTE_SWAP
550 set_position_target_global_int->
time_boot_ms = mavlink_msg_set_position_target_global_int_get_time_boot_ms(msg);
551 set_position_target_global_int->
lat_int = mavlink_msg_set_position_target_global_int_get_lat_int(msg);
552 set_position_target_global_int->
lon_int = mavlink_msg_set_position_target_global_int_get_lon_int(msg);
553 set_position_target_global_int->
alt = mavlink_msg_set_position_target_global_int_get_alt(msg);
554 set_position_target_global_int->
vx = mavlink_msg_set_position_target_global_int_get_vx(msg);
555 set_position_target_global_int->
vy = mavlink_msg_set_position_target_global_int_get_vy(msg);
556 set_position_target_global_int->
vz = mavlink_msg_set_position_target_global_int_get_vz(msg);
557 set_position_target_global_int->
afx = mavlink_msg_set_position_target_global_int_get_afx(msg);
558 set_position_target_global_int->
afy = mavlink_msg_set_position_target_global_int_get_afy(msg);
559 set_position_target_global_int->
afz = mavlink_msg_set_position_target_global_int_get_afz(msg);
560 set_position_target_global_int->
yaw = mavlink_msg_set_position_target_global_int_get_yaw(msg);
561 set_position_target_global_int->
yaw_rate = mavlink_msg_set_position_target_global_int_get_yaw_rate(msg);
562 set_position_target_global_int->
type_mask = mavlink_msg_set_position_target_global_int_get_type_mask(msg);
563 set_position_target_global_int->
target_system = mavlink_msg_set_position_target_global_int_get_target_system(msg);
564 set_position_target_global_int->
target_component = mavlink_msg_set_position_target_global_int_get_target_component(msg);
565 set_position_target_global_int->
coordinate_frame = mavlink_msg_set_position_target_global_int_get_coordinate_frame(msg);
#define _mav_put_float(buf, wire_offset, b)
Definition: protocol.h:145
float vz
Z velocity in NED frame in meter / s.
Definition: mavlink_msg_set_position_target_global_int.h:13
struct __mavlink_set_position_target_global_int_t mavlink_set_position_target_global_int_t
uint8_t target_component
Component ID.
Definition: mavlink_msg_set_position_target_global_int.h:21
#define _MAV_RETURN_uint8_t(msg, wire_offset)
Definition: protocol.h:238
uint16_t type_mask
Bitmask to indicate which dimensions should be ignored by the vehicle: a value of 0b0000000000000000 ...
Definition: mavlink_msg_set_position_target_global_int.h:19
int32_t lon_int
Y Position in WGS84 frame in 1e7 * meters.
Definition: mavlink_msg_set_position_target_global_int.h:9
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
#define _mav_put_uint8_t(buf, wire_offset, b)
Definition: protocol.h:134
#define _mav_put_int32_t(buf, wire_offset, b)
Definition: protocol.h:142
#define _MAV_PAYLOAD_NON_CONST(msg)
Definition: mavlink_types.h:172
float yaw
yaw setpoint in rad
Definition: mavlink_msg_set_position_target_global_int.h:17
#define MAVLINK_MSG_ID_SET_POSITION_TARGET_GLOBAL_INT
Definition: mavlink_msg_set_position_target_global_int.h:3
mavlink_channel_t
Definition: mavlink_types.h:178
float afz
Z acceleration or force (if bit 10 of type_mask is set) in NED frame in meter / s^2 or N...
Definition: mavlink_msg_set_position_target_global_int.h:16
float afx
X acceleration or force (if bit 10 of type_mask is set) in NED frame in meter / s^2 or N...
Definition: mavlink_msg_set_position_target_global_int.h:14
#define _MAV_PAYLOAD(msg)
Definition: mavlink_types.h:171
float alt
Altitude in meters in AMSL altitude, not WGS84 if absolute or relative, above terrain if GLOBAL_TERRA...
Definition: mavlink_msg_set_position_target_global_int.h:10
float vx
X velocity in NED frame in meter / s.
Definition: mavlink_msg_set_position_target_global_int.h:11
Definition: mavlink_msg_set_position_target_global_int.h:5
#define MAVLINK_MSG_ID_SET_POSITION_TARGET_GLOBAL_INT_LEN
Definition: mavlink_msg_set_position_target_global_int.h:25
uint8_t coordinate_frame
Valid options are: MAV_FRAME_GLOBAL_INT = 5, MAV_FRAME_GLOBAL_RELATIVE_ALT_INT = 6, MAV_FRAME_GLOBAL_TERRAIN_ALT_INT = 11.
Definition: mavlink_msg_set_position_target_global_int.h:22
float vy
Y velocity in NED frame in meter / s.
Definition: mavlink_msg_set_position_target_global_int.h:12
uint8_t target_system
System ID.
Definition: mavlink_msg_set_position_target_global_int.h:20
#define MAVLINK_MSG_ID_SET_POSITION_TARGET_GLOBAL_INT_CRC
Definition: mavlink_msg_set_position_target_global_int.h:28
int16_t yaw
Definition: sensors.h:31
uint32_t time_boot_ms
Timestamp in milliseconds since system boot. The rationale for the timestamp in the setpoint is to al...
Definition: mavlink_msg_set_position_target_global_int.h:7
int32_t lat_int
X Position in WGS84 frame in 1e7 * meters.
Definition: mavlink_msg_set_position_target_global_int.h:8
#define _mav_put_uint16_t(buf, wire_offset, b)
Definition: protocol.h:139
float afy
Y acceleration or force (if bit 10 of type_mask is set) in NED frame in meter / s^2 or N...
Definition: mavlink_msg_set_position_target_global_int.h:15
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
float yaw_rate
yaw rate setpoint in rad/s
Definition: mavlink_msg_set_position_target_global_int.h:18
#define _mav_put_uint32_t(buf, wire_offset, b)
Definition: protocol.h:141