3 #define MAVLINK_MSG_ID_SERVO_OUTPUT_RAW 36 19 #define MAVLINK_MSG_ID_SERVO_OUTPUT_RAW_LEN 21 20 #define MAVLINK_MSG_ID_36_LEN 21 22 #define MAVLINK_MSG_ID_SERVO_OUTPUT_RAW_CRC 222 23 #define MAVLINK_MSG_ID_36_CRC 222 27 #define MAVLINK_MESSAGE_INFO_SERVO_OUTPUT_RAW { \ 30 { { "time_usec", NULL, MAVLINK_TYPE_UINT32_T, 0, 0, offsetof(mavlink_servo_output_raw_t, time_usec) }, \ 31 { "servo1_raw", NULL, MAVLINK_TYPE_UINT16_T, 0, 4, offsetof(mavlink_servo_output_raw_t, servo1_raw) }, \ 32 { "servo2_raw", NULL, MAVLINK_TYPE_UINT16_T, 0, 6, offsetof(mavlink_servo_output_raw_t, servo2_raw) }, \ 33 { "servo3_raw", NULL, MAVLINK_TYPE_UINT16_T, 0, 8, offsetof(mavlink_servo_output_raw_t, servo3_raw) }, \ 34 { "servo4_raw", NULL, MAVLINK_TYPE_UINT16_T, 0, 10, offsetof(mavlink_servo_output_raw_t, servo4_raw) }, \ 35 { "servo5_raw", NULL, MAVLINK_TYPE_UINT16_T, 0, 12, offsetof(mavlink_servo_output_raw_t, servo5_raw) }, \ 36 { "servo6_raw", NULL, MAVLINK_TYPE_UINT16_T, 0, 14, offsetof(mavlink_servo_output_raw_t, servo6_raw) }, \ 37 { "servo7_raw", NULL, MAVLINK_TYPE_UINT16_T, 0, 16, offsetof(mavlink_servo_output_raw_t, servo7_raw) }, \ 38 { "servo8_raw", NULL, MAVLINK_TYPE_UINT16_T, 0, 18, offsetof(mavlink_servo_output_raw_t, servo8_raw) }, \ 39 { "port", NULL, MAVLINK_TYPE_UINT8_T, 0, 20, offsetof(mavlink_servo_output_raw_t, port) }, \ 65 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS 122 mavlink_message_t* msg,
125 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS 156 #if MAVLINK_CRC_EXTRA 173 return mavlink_msg_servo_output_raw_pack(system_id, component_id, msg, servo_output_raw->
time_usec, servo_output_raw->
port, servo_output_raw->
servo1_raw, servo_output_raw->
servo2_raw, servo_output_raw->
servo3_raw, servo_output_raw->
servo4_raw, servo_output_raw->
servo5_raw, servo_output_raw->
servo6_raw, servo_output_raw->
servo7_raw, servo_output_raw->
servo8_raw);
187 return mavlink_msg_servo_output_raw_pack_chan(system_id, component_id, chan, msg, servo_output_raw->
time_usec, servo_output_raw->
port, servo_output_raw->
servo1_raw, servo_output_raw->
servo2_raw, servo_output_raw->
servo3_raw, servo_output_raw->
servo4_raw, servo_output_raw->
servo5_raw, servo_output_raw->
servo6_raw, servo_output_raw->
servo7_raw, servo_output_raw->
servo8_raw);
205 #ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS 207 static inline void mavlink_msg_servo_output_raw_send(
mavlink_channel_t chan, uint32_t
time_usec, uint8_t
port, uint16_t
servo1_raw, uint16_t
servo2_raw, uint16_t
servo3_raw, uint16_t
servo4_raw, uint16_t
servo5_raw, uint16_t
servo6_raw, uint16_t
servo7_raw, uint16_t
servo8_raw)
209 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS 222 #if MAVLINK_CRC_EXTRA 240 #if MAVLINK_CRC_EXTRA 248 #if MAVLINK_MSG_ID_SERVO_OUTPUT_RAW_LEN <= MAVLINK_MAX_PAYLOAD_LEN 256 static inline void mavlink_msg_servo_output_raw_send_buf(mavlink_message_t *msgbuf,
mavlink_channel_t chan, uint32_t
time_usec, uint8_t
port, uint16_t
servo1_raw, uint16_t
servo2_raw, uint16_t
servo3_raw, uint16_t
servo4_raw, uint16_t
servo5_raw, uint16_t
servo6_raw, uint16_t
servo7_raw, uint16_t
servo8_raw)
258 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS 259 char *buf = (
char *)msgbuf;
271 #if MAVLINK_CRC_EXTRA 289 #if MAVLINK_CRC_EXTRA 310 return _MAV_RETURN_uint32_t(msg, 0);
330 return _MAV_RETURN_uint16_t(msg, 4);
340 return _MAV_RETURN_uint16_t(msg, 6);
350 return _MAV_RETURN_uint16_t(msg, 8);
360 return _MAV_RETURN_uint16_t(msg, 10);
370 return _MAV_RETURN_uint16_t(msg, 12);
380 return _MAV_RETURN_uint16_t(msg, 14);
390 return _MAV_RETURN_uint16_t(msg, 16);
400 return _MAV_RETURN_uint16_t(msg, 18);
411 #if MAVLINK_NEED_BYTE_SWAP
static uint16_t mavlink_msg_servo_output_raw_get_servo1_raw(const mavlink_message_t *msg)
Get field servo1_raw from servo_output_raw message.
static uint16_t mavlink_msg_servo_output_raw_get_servo5_raw(const mavlink_message_t *msg)
Get field servo5_raw from servo_output_raw message.
static uint16_t mavlink_msg_servo_output_raw_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t *msg, const mavlink_servo_output_raw_t *servo_output_raw)
Encode a servo_output_raw struct.
static uint16_t mavlink_msg_servo_output_raw_get_servo7_raw(const mavlink_message_t *msg)
Get field servo7_raw from servo_output_raw message.
#define _MAV_RETURN_uint8_t(msg, wire_offset)
static uint16_t mavlink_msg_servo_output_raw_get_servo3_raw(const mavlink_message_t *msg)
Get field servo3_raw from servo_output_raw message.
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.
static uint16_t mavlink_msg_servo_output_raw_encode_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t *msg, const mavlink_servo_output_raw_t *servo_output_raw)
Encode a servo_output_raw struct on a channel.
#define _mav_put_uint8_t(buf, wire_offset, b)
#define _MAV_PAYLOAD_NON_CONST(msg)
#define MAVLINK_MSG_ID_SERVO_OUTPUT_RAW_CRC
static void mavlink_msg_servo_output_raw_decode(const mavlink_message_t *msg, mavlink_servo_output_raw_t *servo_output_raw)
Decode a servo_output_raw message into a struct.
static uint16_t mavlink_msg_servo_output_raw_get_servo6_raw(const mavlink_message_t *msg)
Get field servo6_raw from servo_output_raw message.
#define _MAV_PAYLOAD(msg)
#define MAVLINK_MSG_ID_SERVO_OUTPUT_RAW
static uint16_t mavlink_msg_servo_output_raw_get_servo4_raw(const mavlink_message_t *msg)
Get field servo4_raw from servo_output_raw message.
struct __mavlink_servo_output_raw_t mavlink_servo_output_raw_t
static uint16_t mavlink_msg_servo_output_raw_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t *msg, uint32_t time_usec, uint8_t port, uint16_t servo1_raw, uint16_t servo2_raw, uint16_t servo3_raw, uint16_t servo4_raw, uint16_t servo5_raw, uint16_t servo6_raw, uint16_t servo7_raw, uint16_t servo8_raw)
Pack a servo_output_raw message.
#define MAVLINK_MSG_ID_SERVO_OUTPUT_RAW_LEN
static uint16_t mavlink_msg_servo_output_raw_get_servo8_raw(const mavlink_message_t *msg)
Get field servo8_raw from servo_output_raw message.
#define _mav_put_uint16_t(buf, wire_offset, b)
static uint32_t mavlink_msg_servo_output_raw_get_time_usec(const mavlink_message_t *msg)
Send a servo_output_raw message.
static uint16_t mavlink_msg_servo_output_raw_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t *msg, uint32_t time_usec, uint8_t port, uint16_t servo1_raw, uint16_t servo2_raw, uint16_t servo3_raw, uint16_t servo4_raw, uint16_t servo5_raw, uint16_t servo6_raw, uint16_t servo7_raw, uint16_t servo8_raw)
Pack a servo_output_raw message on a channel.
static uint8_t mavlink_msg_servo_output_raw_get_port(const mavlink_message_t *msg)
Get field port from servo_output_raw message.
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.
static uint16_t mavlink_msg_servo_output_raw_get_servo2_raw(const mavlink_message_t *msg)
Get field servo2_raw from servo_output_raw message.
#define _mav_put_uint32_t(buf, wire_offset, b)