3 #define MAVLINK_MSG_ID_RALLY_POINT 175
19 #define MAVLINK_MSG_ID_RALLY_POINT_LEN 19
20 #define MAVLINK_MSG_ID_175_LEN 19
22 #define MAVLINK_MSG_ID_RALLY_POINT_CRC 138
23 #define MAVLINK_MSG_ID_175_CRC 138
27 #define MAVLINK_MESSAGE_INFO_RALLY_POINT { \
30 { { "lat", NULL, MAVLINK_TYPE_INT32_T, 0, 0, offsetof(mavlink_rally_point_t, lat) }, \
31 { "lng", NULL, MAVLINK_TYPE_INT32_T, 0, 4, offsetof(mavlink_rally_point_t, lng) }, \
32 { "alt", NULL, MAVLINK_TYPE_INT16_T, 0, 8, offsetof(mavlink_rally_point_t, alt) }, \
33 { "break_alt", NULL, MAVLINK_TYPE_INT16_T, 0, 10, offsetof(mavlink_rally_point_t, break_alt) }, \
34 { "land_dir", NULL, MAVLINK_TYPE_UINT16_T, 0, 12, offsetof(mavlink_rally_point_t, land_dir) }, \
35 { "target_system", NULL, MAVLINK_TYPE_UINT8_T, 0, 14, offsetof(mavlink_rally_point_t, target_system) }, \
36 { "target_component", NULL, MAVLINK_TYPE_UINT8_T, 0, 15, offsetof(mavlink_rally_point_t, target_component) }, \
37 { "idx", NULL, MAVLINK_TYPE_UINT8_T, 0, 16, offsetof(mavlink_rally_point_t, idx) }, \
38 { "count", NULL, MAVLINK_TYPE_UINT8_T, 0, 17, offsetof(mavlink_rally_point_t, count) }, \
39 { "flags", NULL, MAVLINK_TYPE_UINT8_T, 0, 18, offsetof(mavlink_rally_point_t, flags) }, \
62 static inline uint16_t mavlink_msg_rally_point_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
63 uint8_t target_system, uint8_t target_component, uint8_t idx, uint8_t count, int32_t lat, int32_t lng, int16_t alt, int16_t break_alt, uint16_t land_dir, uint8_t
flags)
65 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
121 static inline uint16_t mavlink_msg_rally_point_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan,
122 mavlink_message_t* msg,
123 uint8_t target_system,uint8_t target_component,uint8_t idx,uint8_t count,int32_t lat,int32_t lng,int16_t alt,int16_t break_alt,uint16_t land_dir,uint8_t
flags)
125 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
149 packet.
count = count;
156 #if MAVLINK_CRC_EXTRA
171 static inline uint16_t mavlink_msg_rally_point_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
const mavlink_rally_point_t* rally_point)
173 return mavlink_msg_rally_point_pack(system_id, component_id, msg, rally_point->
target_system, rally_point->
target_component, rally_point->
idx, rally_point->
count, rally_point->
lat, rally_point->
lng, rally_point->
alt, rally_point->
break_alt, rally_point->
land_dir, rally_point->
flags);
185 static inline uint16_t mavlink_msg_rally_point_encode_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t* msg,
const mavlink_rally_point_t* rally_point)
187 return mavlink_msg_rally_point_pack_chan(system_id, component_id, chan, msg, rally_point->
target_system, rally_point->
target_component, rally_point->
idx, rally_point->
count, rally_point->
lat, rally_point->
lng, rally_point->
alt, rally_point->
break_alt, rally_point->
land_dir, rally_point->
flags);
205 #ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS
207 static inline void mavlink_msg_rally_point_send(
mavlink_channel_t chan, uint8_t target_system, uint8_t target_component, uint8_t idx, uint8_t count, int32_t lat, int32_t lng, int16_t alt, int16_t break_alt, uint16_t land_dir, uint8_t flags)
209 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
222 #if MAVLINK_CRC_EXTRA
237 packet.
count = count;
240 #if MAVLINK_CRC_EXTRA
248 #if MAVLINK_MSG_ID_RALLY_POINT_LEN <= MAVLINK_MAX_PAYLOAD_LEN
256 static inline void mavlink_msg_rally_point_send_buf(mavlink_message_t *msgbuf,
mavlink_channel_t chan, uint8_t target_system, uint8_t target_component, uint8_t idx, uint8_t count, int32_t lat, int32_t lng, int16_t alt, int16_t break_alt, uint16_t land_dir, uint8_t flags)
258 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
259 char *buf = (
char *)msgbuf;
271 #if MAVLINK_CRC_EXTRA
286 packet->
count = count;
289 #if MAVLINK_CRC_EXTRA
308 static inline uint8_t mavlink_msg_rally_point_get_target_system(
const mavlink_message_t* msg)
318 static inline uint8_t mavlink_msg_rally_point_get_target_component(
const mavlink_message_t* msg)
328 static inline uint8_t mavlink_msg_rally_point_get_idx(
const mavlink_message_t* msg)
338 static inline uint8_t mavlink_msg_rally_point_get_count(
const mavlink_message_t* msg)
348 static inline int32_t mavlink_msg_rally_point_get_lat(
const mavlink_message_t* msg)
350 return _MAV_RETURN_int32_t(msg, 0);
358 static inline int32_t mavlink_msg_rally_point_get_lng(
const mavlink_message_t* msg)
360 return _MAV_RETURN_int32_t(msg, 4);
368 static inline int16_t mavlink_msg_rally_point_get_alt(
const mavlink_message_t* msg)
370 return _MAV_RETURN_int16_t(msg, 8);
378 static inline int16_t mavlink_msg_rally_point_get_break_alt(
const mavlink_message_t* msg)
380 return _MAV_RETURN_int16_t(msg, 10);
388 static inline uint16_t mavlink_msg_rally_point_get_land_dir(
const mavlink_message_t* msg)
390 return _MAV_RETURN_uint16_t(msg, 12);
398 static inline uint8_t mavlink_msg_rally_point_get_flags(
const mavlink_message_t* msg)
409 static inline void mavlink_msg_rally_point_decode(
const mavlink_message_t* msg,
mavlink_rally_point_t* rally_point)
411 #if MAVLINK_NEED_BYTE_SWAP
412 rally_point->
lat = mavlink_msg_rally_point_get_lat(msg);
413 rally_point->
lng = mavlink_msg_rally_point_get_lng(msg);
414 rally_point->
alt = mavlink_msg_rally_point_get_alt(msg);
415 rally_point->
break_alt = mavlink_msg_rally_point_get_break_alt(msg);
416 rally_point->
land_dir = mavlink_msg_rally_point_get_land_dir(msg);
417 rally_point->
target_system = mavlink_msg_rally_point_get_target_system(msg);
418 rally_point->
target_component = mavlink_msg_rally_point_get_target_component(msg);
419 rally_point->
idx = mavlink_msg_rally_point_get_idx(msg);
420 rally_point->
count = mavlink_msg_rally_point_get_count(msg);
421 rally_point->
flags = mavlink_msg_rally_point_get_flags(msg);
#define _MAV_RETURN_uint8_t(msg, wire_offset)
Definition: protocol.h:238
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 MAVLINK_MSG_ID_RALLY_POINT
Definition: mavlink_msg_rally_point.h:3
#define _mav_put_uint8_t(buf, wire_offset, b)
Definition: protocol.h:134
int32_t lat
Latitude of point in degrees * 1E7.
Definition: mavlink_msg_rally_point.h:7
#define _mav_put_int32_t(buf, wire_offset, b)
Definition: protocol.h:142
#define _MAV_PAYLOAD_NON_CONST(msg)
Definition: mavlink_types.h:172
uint8_t count
total number of points (for sanity checking)
Definition: mavlink_msg_rally_point.h:15
mavlink_channel_t
Definition: mavlink_types.h:178
uint8_t flags
See RALLY_FLAGS enum for definition of the bitmask.
Definition: mavlink_msg_rally_point.h:16
int16_t break_alt
Break altitude in meters relative to home.
Definition: mavlink_msg_rally_point.h:10
#define _MAV_PAYLOAD(msg)
Definition: mavlink_types.h:171
uint16_t flags
Definition: ledstrip.h:11
uint8_t target_system
System ID.
Definition: mavlink_msg_rally_point.h:12
struct __mavlink_rally_point_t mavlink_rally_point_t
uint8_t idx
point index (first point is 0)
Definition: mavlink_msg_rally_point.h:14
uint16_t land_dir
Heading to aim for when landing. In centi-degrees.
Definition: mavlink_msg_rally_point.h:11
#define MAVLINK_MSG_ID_RALLY_POINT_LEN
Definition: mavlink_msg_rally_point.h:19
int16_t alt
Transit / loiter altitude in meters relative to home.
Definition: mavlink_msg_rally_point.h:9
Definition: mavlink_msg_rally_point.h:5
#define _mav_put_uint16_t(buf, wire_offset, b)
Definition: protocol.h:139
int32_t lng
Longitude of point in degrees * 1E7.
Definition: mavlink_msg_rally_point.h:8
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
uint8_t target_component
Component ID.
Definition: mavlink_msg_rally_point.h:13
#define _mav_put_int16_t(buf, wire_offset, b)
Definition: protocol.h:140
#define MAVLINK_MSG_ID_RALLY_POINT_CRC
Definition: mavlink_msg_rally_point.h:22