3 #define MAVLINK_MSG_ID_ASL_OBCTRL 207
17 #define MAVLINK_MSG_ID_ASL_OBCTRL_LEN 33
18 #define MAVLINK_MSG_ID_207_LEN 33
20 #define MAVLINK_MSG_ID_ASL_OBCTRL_CRC 234
21 #define MAVLINK_MSG_ID_207_CRC 234
25 #define MAVLINK_MESSAGE_INFO_ASL_OBCTRL { \
28 { { "timestamp", NULL, MAVLINK_TYPE_UINT64_T, 0, 0, offsetof(mavlink_asl_obctrl_t, timestamp) }, \
29 { "uElev", NULL, MAVLINK_TYPE_FLOAT, 0, 8, offsetof(mavlink_asl_obctrl_t, uElev) }, \
30 { "uThrot", NULL, MAVLINK_TYPE_FLOAT, 0, 12, offsetof(mavlink_asl_obctrl_t, uThrot) }, \
31 { "uThrot2", NULL, MAVLINK_TYPE_FLOAT, 0, 16, offsetof(mavlink_asl_obctrl_t, uThrot2) }, \
32 { "uAilL", NULL, MAVLINK_TYPE_FLOAT, 0, 20, offsetof(mavlink_asl_obctrl_t, uAilL) }, \
33 { "uAilR", NULL, MAVLINK_TYPE_FLOAT, 0, 24, offsetof(mavlink_asl_obctrl_t, uAilR) }, \
34 { "uRud", NULL, MAVLINK_TYPE_FLOAT, 0, 28, offsetof(mavlink_asl_obctrl_t, uRud) }, \
35 { "obctrl_status", NULL, MAVLINK_TYPE_UINT8_T, 0, 32, offsetof(mavlink_asl_obctrl_t, obctrl_status) }, \
56 static inline uint16_t mavlink_msg_asl_obctrl_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
57 uint64_t timestamp,
float uElev,
float uThrot,
float uThrot2,
float uAilL,
float uAilR,
float uRud, uint8_t obctrl_status)
59 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
109 static inline uint16_t mavlink_msg_asl_obctrl_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan,
110 mavlink_message_t* msg,
111 uint64_t timestamp,
float uElev,
float uThrot,
float uThrot2,
float uAilL,
float uAilR,
float uRud,uint8_t obctrl_status)
113 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
128 packet.
uElev = uElev;
131 packet.
uAilL = uAilL;
132 packet.
uAilR = uAilR;
140 #if MAVLINK_CRC_EXTRA
155 static inline uint16_t mavlink_msg_asl_obctrl_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
const mavlink_asl_obctrl_t* asl_obctrl)
157 return mavlink_msg_asl_obctrl_pack(system_id, component_id, msg, asl_obctrl->
timestamp, asl_obctrl->
uElev, asl_obctrl->
uThrot, asl_obctrl->
uThrot2, asl_obctrl->
uAilL, asl_obctrl->
uAilR, asl_obctrl->
uRud, asl_obctrl->
obctrl_status);
169 static inline uint16_t mavlink_msg_asl_obctrl_encode_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t* msg,
const mavlink_asl_obctrl_t* asl_obctrl)
171 return mavlink_msg_asl_obctrl_pack_chan(system_id, component_id, chan, msg, asl_obctrl->
timestamp, asl_obctrl->
uElev, asl_obctrl->
uThrot, asl_obctrl->
uThrot2, asl_obctrl->
uAilL, asl_obctrl->
uAilR, asl_obctrl->
uRud, asl_obctrl->
obctrl_status);
187 #ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS
189 static inline void mavlink_msg_asl_obctrl_send(
mavlink_channel_t chan, uint64_t timestamp,
float uElev,
float uThrot,
float uThrot2,
float uAilL,
float uAilR,
float uRud, uint8_t obctrl_status)
191 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
202 #if MAVLINK_CRC_EXTRA
210 packet.
uElev = uElev;
213 packet.
uAilL = uAilL;
214 packet.
uAilR = uAilR;
218 #if MAVLINK_CRC_EXTRA
226 #if MAVLINK_MSG_ID_ASL_OBCTRL_LEN <= MAVLINK_MAX_PAYLOAD_LEN
234 static inline void mavlink_msg_asl_obctrl_send_buf(mavlink_message_t *msgbuf,
mavlink_channel_t chan, uint64_t timestamp,
float uElev,
float uThrot,
float uThrot2,
float uAilL,
float uAilR,
float uRud, uint8_t obctrl_status)
236 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
237 char *buf = (
char *)msgbuf;
247 #if MAVLINK_CRC_EXTRA
255 packet->
uElev = uElev;
258 packet->
uAilL = uAilL;
259 packet->
uAilR = uAilR;
263 #if MAVLINK_CRC_EXTRA
282 static inline uint64_t mavlink_msg_asl_obctrl_get_timestamp(
const mavlink_message_t* msg)
284 return _MAV_RETURN_uint64_t(msg, 0);
292 static inline float mavlink_msg_asl_obctrl_get_uElev(
const mavlink_message_t* msg)
294 return _MAV_RETURN_float(msg, 8);
302 static inline float mavlink_msg_asl_obctrl_get_uThrot(
const mavlink_message_t* msg)
304 return _MAV_RETURN_float(msg, 12);
312 static inline float mavlink_msg_asl_obctrl_get_uThrot2(
const mavlink_message_t* msg)
314 return _MAV_RETURN_float(msg, 16);
322 static inline float mavlink_msg_asl_obctrl_get_uAilL(
const mavlink_message_t* msg)
324 return _MAV_RETURN_float(msg, 20);
332 static inline float mavlink_msg_asl_obctrl_get_uAilR(
const mavlink_message_t* msg)
334 return _MAV_RETURN_float(msg, 24);
342 static inline float mavlink_msg_asl_obctrl_get_uRud(
const mavlink_message_t* msg)
344 return _MAV_RETURN_float(msg, 28);
352 static inline uint8_t mavlink_msg_asl_obctrl_get_obctrl_status(
const mavlink_message_t* msg)
363 static inline void mavlink_msg_asl_obctrl_decode(
const mavlink_message_t* msg,
mavlink_asl_obctrl_t* asl_obctrl)
365 #if MAVLINK_NEED_BYTE_SWAP
366 asl_obctrl->
timestamp = mavlink_msg_asl_obctrl_get_timestamp(msg);
367 asl_obctrl->
uElev = mavlink_msg_asl_obctrl_get_uElev(msg);
368 asl_obctrl->
uThrot = mavlink_msg_asl_obctrl_get_uThrot(msg);
369 asl_obctrl->
uThrot2 = mavlink_msg_asl_obctrl_get_uThrot2(msg);
370 asl_obctrl->
uAilL = mavlink_msg_asl_obctrl_get_uAilL(msg);
371 asl_obctrl->
uAilR = mavlink_msg_asl_obctrl_get_uAilR(msg);
372 asl_obctrl->
uRud = mavlink_msg_asl_obctrl_get_uRud(msg);
373 asl_obctrl->
obctrl_status = mavlink_msg_asl_obctrl_get_obctrl_status(msg);
#define _mav_put_float(buf, wire_offset, b)
Definition: protocol.h:145
struct __mavlink_asl_obctrl_t mavlink_asl_obctrl_t
Definition: mavlink_msg_asl_obctrl.h:5
#define _MAV_RETURN_uint8_t(msg, wire_offset)
Definition: protocol.h:238
#define MAVLINK_MSG_ID_ASL_OBCTRL_CRC
Definition: mavlink_msg_asl_obctrl.h:20
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_uint64_t(buf, wire_offset, b)
Definition: protocol.h:143
#define _MAV_PAYLOAD_NON_CONST(msg)
Definition: mavlink_types.h:172
mavlink_channel_t
Definition: mavlink_types.h:178
#define _MAV_PAYLOAD(msg)
Definition: mavlink_types.h:171
uint8_t obctrl_status
Off-board computer status.
Definition: mavlink_msg_asl_obctrl.h:14
#define MAVLINK_MSG_ID_ASL_OBCTRL_LEN
Definition: mavlink_msg_asl_obctrl.h:17
float uRud
Rudder command [~].
Definition: mavlink_msg_asl_obctrl.h:13
float uAilR
Right aileron command [~].
Definition: mavlink_msg_asl_obctrl.h:12
uint64_t timestamp
Time since system start [us].
Definition: mavlink_msg_asl_obctrl.h:7
float uElev
Elevator command [~].
Definition: mavlink_msg_asl_obctrl.h:8
float uThrot
Throttle command [~].
Definition: mavlink_msg_asl_obctrl.h:9
float uThrot2
Throttle 2 command [~].
Definition: mavlink_msg_asl_obctrl.h:10
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
#define MAVLINK_MSG_ID_ASL_OBCTRL
Definition: mavlink_msg_asl_obctrl.h:3
float uAilL
Left aileron command [~].
Definition: mavlink_msg_asl_obctrl.h:11