3 #define MAVLINK_MSG_ID_GLOBAL_POSITION_SETPOINT_INT 155
14 #define MAVLINK_MSG_ID_GLOBAL_POSITION_SETPOINT_INT_LEN 15
15 #define MAVLINK_MSG_ID_155_LEN 15
17 #define MAVLINK_MSG_ID_GLOBAL_POSITION_SETPOINT_INT_CRC 141
18 #define MAVLINK_MSG_ID_155_CRC 141
22 #define MAVLINK_MESSAGE_INFO_GLOBAL_POSITION_SETPOINT_INT { \
23 "GLOBAL_POSITION_SETPOINT_INT", \
25 { { "latitude", NULL, MAVLINK_TYPE_INT32_T, 0, 0, offsetof(mavlink_global_position_setpoint_int_t, latitude) }, \
26 { "longitude", NULL, MAVLINK_TYPE_INT32_T, 0, 4, offsetof(mavlink_global_position_setpoint_int_t, longitude) }, \
27 { "altitude", NULL, MAVLINK_TYPE_INT32_T, 0, 8, offsetof(mavlink_global_position_setpoint_int_t, altitude) }, \
28 { "yaw", NULL, MAVLINK_TYPE_INT16_T, 0, 12, offsetof(mavlink_global_position_setpoint_int_t, yaw) }, \
29 { "coordinate_frame", NULL, MAVLINK_TYPE_UINT8_T, 0, 14, offsetof(mavlink_global_position_setpoint_int_t, coordinate_frame) }, \
47 static inline uint16_t mavlink_msg_global_position_setpoint_int_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
48 uint8_t coordinate_frame, int32_t latitude, int32_t longitude, int32_t altitude, int16_t yaw)
50 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
51 char buf[MAVLINK_MSG_ID_GLOBAL_POSITION_SETPOINT_INT_LEN];
52 _mav_put_int32_t(buf, 0, latitude);
53 _mav_put_int32_t(buf, 4, longitude);
54 _mav_put_int32_t(buf, 8, altitude);
55 _mav_put_int16_t(buf, 12, yaw);
56 _mav_put_uint8_t(buf, 14, coordinate_frame);
58 memcpy(_MAV_PAYLOAD_NON_CONST(msg), buf, MAVLINK_MSG_ID_GLOBAL_POSITION_SETPOINT_INT_LEN);
67 memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_GLOBAL_POSITION_SETPOINT_INT_LEN);
70 msg->msgid = MAVLINK_MSG_ID_GLOBAL_POSITION_SETPOINT_INT;
72 return mavlink_finalize_message(msg, system_id, component_id, MAVLINK_MSG_ID_GLOBAL_POSITION_SETPOINT_INT_LEN, MAVLINK_MSG_ID_GLOBAL_POSITION_SETPOINT_INT_CRC);
74 return mavlink_finalize_message(msg, system_id, component_id, MAVLINK_MSG_ID_GLOBAL_POSITION_SETPOINT_INT_LEN);
91 static inline uint16_t mavlink_msg_global_position_setpoint_int_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan,
92 mavlink_message_t* msg,
93 uint8_t coordinate_frame,int32_t latitude,int32_t longitude,int32_t altitude,int16_t yaw)
95 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
96 char buf[MAVLINK_MSG_ID_GLOBAL_POSITION_SETPOINT_INT_LEN];
97 _mav_put_int32_t(buf, 0, latitude);
98 _mav_put_int32_t(buf, 4, longitude);
99 _mav_put_int32_t(buf, 8, altitude);
100 _mav_put_int16_t(buf, 12, yaw);
101 _mav_put_uint8_t(buf, 14, coordinate_frame);
103 memcpy(_MAV_PAYLOAD_NON_CONST(msg), buf, MAVLINK_MSG_ID_GLOBAL_POSITION_SETPOINT_INT_LEN);
112 memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_GLOBAL_POSITION_SETPOINT_INT_LEN);
115 msg->msgid = MAVLINK_MSG_ID_GLOBAL_POSITION_SETPOINT_INT;
116 #if MAVLINK_CRC_EXTRA
117 return mavlink_finalize_message_chan(msg, system_id, component_id, chan, MAVLINK_MSG_ID_GLOBAL_POSITION_SETPOINT_INT_LEN, MAVLINK_MSG_ID_GLOBAL_POSITION_SETPOINT_INT_CRC);
119 return mavlink_finalize_message_chan(msg, system_id, component_id, chan, MAVLINK_MSG_ID_GLOBAL_POSITION_SETPOINT_INT_LEN);
131 static inline uint16_t mavlink_msg_global_position_setpoint_int_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
const mavlink_global_position_setpoint_int_t* global_position_setpoint_int)
133 return mavlink_msg_global_position_setpoint_int_pack(system_id, component_id, msg, global_position_setpoint_int->
coordinate_frame, global_position_setpoint_int->
latitude, global_position_setpoint_int->
longitude, global_position_setpoint_int->
altitude, global_position_setpoint_int->
yaw);
145 static inline uint16_t mavlink_msg_global_position_setpoint_int_encode_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t* msg,
const mavlink_global_position_setpoint_int_t* global_position_setpoint_int)
147 return mavlink_msg_global_position_setpoint_int_pack_chan(system_id, component_id, chan, msg, global_position_setpoint_int->
coordinate_frame, global_position_setpoint_int->
latitude, global_position_setpoint_int->
longitude, global_position_setpoint_int->
altitude, global_position_setpoint_int->
yaw);
160 #ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS
162 static inline void mavlink_msg_global_position_setpoint_int_send(mavlink_channel_t chan, uint8_t coordinate_frame, int32_t latitude, int32_t longitude, int32_t altitude, int16_t yaw)
164 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
165 char buf[MAVLINK_MSG_ID_GLOBAL_POSITION_SETPOINT_INT_LEN];
166 _mav_put_int32_t(buf, 0, latitude);
167 _mav_put_int32_t(buf, 4, longitude);
168 _mav_put_int32_t(buf, 8, altitude);
169 _mav_put_int16_t(buf, 12, yaw);
170 _mav_put_uint8_t(buf, 14, coordinate_frame);
172 #if MAVLINK_CRC_EXTRA
173 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_GLOBAL_POSITION_SETPOINT_INT, buf, MAVLINK_MSG_ID_GLOBAL_POSITION_SETPOINT_INT_LEN, MAVLINK_MSG_ID_GLOBAL_POSITION_SETPOINT_INT_CRC);
175 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_GLOBAL_POSITION_SETPOINT_INT, buf, MAVLINK_MSG_ID_GLOBAL_POSITION_SETPOINT_INT_LEN);
185 #if MAVLINK_CRC_EXTRA
186 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_GLOBAL_POSITION_SETPOINT_INT, (
const char *)&packet, MAVLINK_MSG_ID_GLOBAL_POSITION_SETPOINT_INT_LEN, MAVLINK_MSG_ID_GLOBAL_POSITION_SETPOINT_INT_CRC);
188 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_GLOBAL_POSITION_SETPOINT_INT, (
const char *)&packet, MAVLINK_MSG_ID_GLOBAL_POSITION_SETPOINT_INT_LEN);
193 #if MAVLINK_MSG_ID_GLOBAL_POSITION_SETPOINT_INT_LEN <= MAVLINK_MAX_PAYLOAD_LEN
201 static inline void mavlink_msg_global_position_setpoint_int_send_buf(mavlink_message_t *msgbuf, mavlink_channel_t chan, uint8_t coordinate_frame, int32_t latitude, int32_t longitude, int32_t altitude, int16_t yaw)
203 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
204 char *buf = (
char *)msgbuf;
205 _mav_put_int32_t(buf, 0, latitude);
206 _mav_put_int32_t(buf, 4, longitude);
207 _mav_put_int32_t(buf, 8, altitude);
208 _mav_put_int16_t(buf, 12, yaw);
209 _mav_put_uint8_t(buf, 14, coordinate_frame);
211 #if MAVLINK_CRC_EXTRA
212 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_GLOBAL_POSITION_SETPOINT_INT, buf, MAVLINK_MSG_ID_GLOBAL_POSITION_SETPOINT_INT_LEN, MAVLINK_MSG_ID_GLOBAL_POSITION_SETPOINT_INT_CRC);
214 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_GLOBAL_POSITION_SETPOINT_INT, buf, MAVLINK_MSG_ID_GLOBAL_POSITION_SETPOINT_INT_LEN);
224 #if MAVLINK_CRC_EXTRA
225 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_GLOBAL_POSITION_SETPOINT_INT, (
const char *)packet, MAVLINK_MSG_ID_GLOBAL_POSITION_SETPOINT_INT_LEN, MAVLINK_MSG_ID_GLOBAL_POSITION_SETPOINT_INT_CRC);
227 _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_GLOBAL_POSITION_SETPOINT_INT, (
const char *)packet, MAVLINK_MSG_ID_GLOBAL_POSITION_SETPOINT_INT_LEN);
243 static inline uint8_t mavlink_msg_global_position_setpoint_int_get_coordinate_frame(
const mavlink_message_t* msg)
245 return _MAV_RETURN_uint8_t(msg, 14);
253 static inline int32_t mavlink_msg_global_position_setpoint_int_get_latitude(
const mavlink_message_t* msg)
255 return _MAV_RETURN_int32_t(msg, 0);
263 static inline int32_t mavlink_msg_global_position_setpoint_int_get_longitude(
const mavlink_message_t* msg)
265 return _MAV_RETURN_int32_t(msg, 4);
273 static inline int32_t mavlink_msg_global_position_setpoint_int_get_altitude(
const mavlink_message_t* msg)
275 return _MAV_RETURN_int32_t(msg, 8);
283 static inline int16_t mavlink_msg_global_position_setpoint_int_get_yaw(
const mavlink_message_t* msg)
285 return _MAV_RETURN_int16_t(msg, 12);
296 #if MAVLINK_NEED_BYTE_SWAP
297 global_position_setpoint_int->
latitude = mavlink_msg_global_position_setpoint_int_get_latitude(msg);
298 global_position_setpoint_int->
longitude = mavlink_msg_global_position_setpoint_int_get_longitude(msg);
299 global_position_setpoint_int->
altitude = mavlink_msg_global_position_setpoint_int_get_altitude(msg);
300 global_position_setpoint_int->
yaw = mavlink_msg_global_position_setpoint_int_get_yaw(msg);
301 global_position_setpoint_int->
coordinate_frame = mavlink_msg_global_position_setpoint_int_get_coordinate_frame(msg);
303 memcpy(global_position_setpoint_int, _MAV_PAYLOAD(msg), MAVLINK_MSG_ID_GLOBAL_POSITION_SETPOINT_INT_LEN);
int32_t longitude
WGS84 Longitude position in degrees * 1E7.
Definition: mavlink_msg_global_position_setpoint_int.h:8
int16_t yaw
Desired yaw angle in degrees * 100.
Definition: mavlink_msg_global_position_setpoint_int.h:10
Definition: mavlink_msg_global_position_setpoint_int.h:5
uint8_t coordinate_frame
Coordinate frame - valid values are only MAV_FRAME_GLOBAL or MAV_FRAME_GLOBAL_RELATIVE_ALT.
Definition: mavlink_msg_global_position_setpoint_int.h:11
int32_t latitude
WGS84 Latitude position in degrees * 1E7.
Definition: mavlink_msg_global_position_setpoint_int.h:7
int32_t altitude
WGS84 Altitude in meters * 1000 (positive for up)
Definition: mavlink_msg_global_position_setpoint_int.h:9