3 #define MAVLINK_MSG_ID_SLUGS_NAVIGATION 176
19 #define MAVLINK_MSG_ID_SLUGS_NAVIGATION_LEN 32
20 #define MAVLINK_MSG_ID_176_LEN 32
22 #define MAVLINK_MSG_ID_SLUGS_NAVIGATION_CRC 228
23 #define MAVLINK_MSG_ID_176_CRC 228
27 #define MAVLINK_MESSAGE_INFO_SLUGS_NAVIGATION { \
30 { { "u_m", NULL, MAVLINK_TYPE_FLOAT, 0, 0, offsetof(mavlink_slugs_navigation_t, u_m) }, \
31 { "phi_c", NULL, MAVLINK_TYPE_FLOAT, 0, 4, offsetof(mavlink_slugs_navigation_t, phi_c) }, \
32 { "theta_c", NULL, MAVLINK_TYPE_FLOAT, 0, 8, offsetof(mavlink_slugs_navigation_t, theta_c) }, \
33 { "psiDot_c", NULL, MAVLINK_TYPE_FLOAT, 0, 12, offsetof(mavlink_slugs_navigation_t, psiDot_c) }, \
34 { "ay_body", NULL, MAVLINK_TYPE_FLOAT, 0, 16, offsetof(mavlink_slugs_navigation_t, ay_body) }, \
35 { "totalDist", NULL, MAVLINK_TYPE_FLOAT, 0, 20, offsetof(mavlink_slugs_navigation_t, totalDist) }, \
36 { "dist2Go", NULL, MAVLINK_TYPE_FLOAT, 0, 24, offsetof(mavlink_slugs_navigation_t, dist2Go) }, \
37 { "h_c", NULL, MAVLINK_TYPE_UINT16_T, 0, 28, offsetof(mavlink_slugs_navigation_t, h_c) }, \
38 { "fromWP", NULL, MAVLINK_TYPE_UINT8_T, 0, 30, offsetof(mavlink_slugs_navigation_t, fromWP) }, \
39 { "toWP", NULL, MAVLINK_TYPE_UINT8_T, 0, 31, offsetof(mavlink_slugs_navigation_t, toWP) }, \
62 static inline uint16_t mavlink_msg_slugs_navigation_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
63 float u_m,
float phi_c,
float theta_c,
float psiDot_c,
float ay_body,
float totalDist,
float dist2Go, uint8_t fromWP, uint8_t toWP, uint16_t h_c)
65 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
121 static inline uint16_t mavlink_msg_slugs_navigation_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan,
122 mavlink_message_t* msg,
123 float u_m,
float phi_c,
float theta_c,
float psiDot_c,
float ay_body,
float totalDist,
float dist2Go,uint8_t fromWP,uint8_t toWP,uint16_t h_c)
125 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
142 packet.
phi_c = phi_c;
156 #if MAVLINK_CRC_EXTRA
171 static inline uint16_t mavlink_msg_slugs_navigation_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
const mavlink_slugs_navigation_t* slugs_navigation)
173 return mavlink_msg_slugs_navigation_pack(system_id, component_id, msg, slugs_navigation->
u_m, slugs_navigation->
phi_c, slugs_navigation->
theta_c, slugs_navigation->
psiDot_c, slugs_navigation->
ay_body, slugs_navigation->
totalDist, slugs_navigation->
dist2Go, slugs_navigation->
fromWP, slugs_navigation->
toWP, slugs_navigation->
h_c);
185 static inline uint16_t mavlink_msg_slugs_navigation_encode_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t* msg,
const mavlink_slugs_navigation_t* slugs_navigation)
187 return mavlink_msg_slugs_navigation_pack_chan(system_id, component_id, chan, msg, slugs_navigation->
u_m, slugs_navigation->
phi_c, slugs_navigation->
theta_c, slugs_navigation->
psiDot_c, slugs_navigation->
ay_body, slugs_navigation->
totalDist, slugs_navigation->
dist2Go, slugs_navigation->
fromWP, slugs_navigation->
toWP, slugs_navigation->
h_c);
205 #ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS
207 static inline void mavlink_msg_slugs_navigation_send(
mavlink_channel_t chan,
float u_m,
float phi_c,
float theta_c,
float psiDot_c,
float ay_body,
float totalDist,
float dist2Go, uint8_t fromWP, uint8_t toWP, uint16_t h_c)
209 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
222 #if MAVLINK_CRC_EXTRA
230 packet.
phi_c = phi_c;
240 #if MAVLINK_CRC_EXTRA
248 #if MAVLINK_MSG_ID_SLUGS_NAVIGATION_LEN <= MAVLINK_MAX_PAYLOAD_LEN
256 static inline void mavlink_msg_slugs_navigation_send_buf(mavlink_message_t *msgbuf,
mavlink_channel_t chan,
float u_m,
float phi_c,
float theta_c,
float psiDot_c,
float ay_body,
float totalDist,
float dist2Go, uint8_t fromWP, uint8_t toWP, uint16_t h_c)
258 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
259 char *buf = (
char *)msgbuf;
271 #if MAVLINK_CRC_EXTRA
279 packet->
phi_c = phi_c;
289 #if MAVLINK_CRC_EXTRA
308 static inline float mavlink_msg_slugs_navigation_get_u_m(
const mavlink_message_t* msg)
310 return _MAV_RETURN_float(msg, 0);
318 static inline float mavlink_msg_slugs_navigation_get_phi_c(
const mavlink_message_t* msg)
320 return _MAV_RETURN_float(msg, 4);
328 static inline float mavlink_msg_slugs_navigation_get_theta_c(
const mavlink_message_t* msg)
330 return _MAV_RETURN_float(msg, 8);
338 static inline float mavlink_msg_slugs_navigation_get_psiDot_c(
const mavlink_message_t* msg)
340 return _MAV_RETURN_float(msg, 12);
348 static inline float mavlink_msg_slugs_navigation_get_ay_body(
const mavlink_message_t* msg)
350 return _MAV_RETURN_float(msg, 16);
358 static inline float mavlink_msg_slugs_navigation_get_totalDist(
const mavlink_message_t* msg)
360 return _MAV_RETURN_float(msg, 20);
368 static inline float mavlink_msg_slugs_navigation_get_dist2Go(
const mavlink_message_t* msg)
370 return _MAV_RETURN_float(msg, 24);
378 static inline uint8_t mavlink_msg_slugs_navigation_get_fromWP(
const mavlink_message_t* msg)
388 static inline uint8_t mavlink_msg_slugs_navigation_get_toWP(
const mavlink_message_t* msg)
398 static inline uint16_t mavlink_msg_slugs_navigation_get_h_c(
const mavlink_message_t* msg)
400 return _MAV_RETURN_uint16_t(msg, 28);
409 static inline void mavlink_msg_slugs_navigation_decode(
const mavlink_message_t* msg,
mavlink_slugs_navigation_t* slugs_navigation)
411 #if MAVLINK_NEED_BYTE_SWAP
412 slugs_navigation->
u_m = mavlink_msg_slugs_navigation_get_u_m(msg);
413 slugs_navigation->
phi_c = mavlink_msg_slugs_navigation_get_phi_c(msg);
414 slugs_navigation->
theta_c = mavlink_msg_slugs_navigation_get_theta_c(msg);
415 slugs_navigation->
psiDot_c = mavlink_msg_slugs_navigation_get_psiDot_c(msg);
416 slugs_navigation->
ay_body = mavlink_msg_slugs_navigation_get_ay_body(msg);
417 slugs_navigation->
totalDist = mavlink_msg_slugs_navigation_get_totalDist(msg);
418 slugs_navigation->
dist2Go = mavlink_msg_slugs_navigation_get_dist2Go(msg);
419 slugs_navigation->
h_c = mavlink_msg_slugs_navigation_get_h_c(msg);
420 slugs_navigation->
fromWP = mavlink_msg_slugs_navigation_get_fromWP(msg);
421 slugs_navigation->
toWP = mavlink_msg_slugs_navigation_get_toWP(msg);
#define _mav_put_float(buf, wire_offset, b)
Definition: protocol.h:145
Definition: mavlink_msg_slugs_navigation.h:5
#define MAVLINK_MSG_ID_SLUGS_NAVIGATION_LEN
Definition: mavlink_msg_slugs_navigation.h:19
float ay_body
Y component of the body acceleration.
Definition: mavlink_msg_slugs_navigation.h:11
struct __mavlink_slugs_navigation_t mavlink_slugs_navigation_t
float phi_c
Commanded Roll.
Definition: mavlink_msg_slugs_navigation.h:8
float psiDot_c
Commanded Turn rate.
Definition: mavlink_msg_slugs_navigation.h:10
uint16_t h_c
Commanded altitude in 0.1 m.
Definition: mavlink_msg_slugs_navigation.h:14
#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 _mav_put_uint8_t(buf, wire_offset, b)
Definition: protocol.h:134
float dist2Go
Remaining distance to Run on this leg of Navigation.
Definition: mavlink_msg_slugs_navigation.h:13
#define _MAV_PAYLOAD_NON_CONST(msg)
Definition: mavlink_types.h:172
float u_m
Measured Airspeed prior to the nav filter in m/s.
Definition: mavlink_msg_slugs_navigation.h:7
#define MAVLINK_MSG_ID_SLUGS_NAVIGATION_CRC
Definition: mavlink_msg_slugs_navigation.h:22
mavlink_channel_t
Definition: mavlink_types.h:178
#define _MAV_PAYLOAD(msg)
Definition: mavlink_types.h:171
float totalDist
Total Distance to Run on this leg of Navigation.
Definition: mavlink_msg_slugs_navigation.h:12
#define MAVLINK_MSG_ID_SLUGS_NAVIGATION
Definition: mavlink_msg_slugs_navigation.h:3
uint8_t toWP
Destination WP.
Definition: mavlink_msg_slugs_navigation.h:16
#define _mav_put_uint16_t(buf, wire_offset, b)
Definition: protocol.h:139
uint8_t fromWP
Origin WP.
Definition: mavlink_msg_slugs_navigation.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 theta_c
Commanded Pitch.
Definition: mavlink_msg_slugs_navigation.h:9