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) }, \
62 static inline uint16_t mavlink_msg_servo_output_raw_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
63 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)
65 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
121 static inline uint16_t mavlink_msg_servo_output_raw_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan,
122 mavlink_message_t* msg,
123 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)
125 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
156 #if MAVLINK_CRC_EXTRA
171 static inline 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)
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);
185 static inline 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)
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
308 static inline uint32_t mavlink_msg_servo_output_raw_get_time_usec(
const mavlink_message_t* msg)
310 return _MAV_RETURN_uint32_t(msg, 0);
318 static inline uint8_t mavlink_msg_servo_output_raw_get_port(
const mavlink_message_t* msg)
328 static inline uint16_t mavlink_msg_servo_output_raw_get_servo1_raw(
const mavlink_message_t* msg)
330 return _MAV_RETURN_uint16_t(msg, 4);
338 static inline uint16_t mavlink_msg_servo_output_raw_get_servo2_raw(
const mavlink_message_t* msg)
340 return _MAV_RETURN_uint16_t(msg, 6);
348 static inline uint16_t mavlink_msg_servo_output_raw_get_servo3_raw(
const mavlink_message_t* msg)
350 return _MAV_RETURN_uint16_t(msg, 8);
358 static inline uint16_t mavlink_msg_servo_output_raw_get_servo4_raw(
const mavlink_message_t* msg)
360 return _MAV_RETURN_uint16_t(msg, 10);
368 static inline uint16_t mavlink_msg_servo_output_raw_get_servo5_raw(
const mavlink_message_t* msg)
370 return _MAV_RETURN_uint16_t(msg, 12);
378 static inline uint16_t mavlink_msg_servo_output_raw_get_servo6_raw(
const mavlink_message_t* msg)
380 return _MAV_RETURN_uint16_t(msg, 14);
388 static inline uint16_t mavlink_msg_servo_output_raw_get_servo7_raw(
const mavlink_message_t* msg)
390 return _MAV_RETURN_uint16_t(msg, 16);
398 static inline uint16_t mavlink_msg_servo_output_raw_get_servo8_raw(
const mavlink_message_t* msg)
400 return _MAV_RETURN_uint16_t(msg, 18);
409 static inline void mavlink_msg_servo_output_raw_decode(
const mavlink_message_t* msg,
mavlink_servo_output_raw_t* servo_output_raw)
411 #if MAVLINK_NEED_BYTE_SWAP
412 servo_output_raw->
time_usec = mavlink_msg_servo_output_raw_get_time_usec(msg);
413 servo_output_raw->
servo1_raw = mavlink_msg_servo_output_raw_get_servo1_raw(msg);
414 servo_output_raw->
servo2_raw = mavlink_msg_servo_output_raw_get_servo2_raw(msg);
415 servo_output_raw->
servo3_raw = mavlink_msg_servo_output_raw_get_servo3_raw(msg);
416 servo_output_raw->
servo4_raw = mavlink_msg_servo_output_raw_get_servo4_raw(msg);
417 servo_output_raw->
servo5_raw = mavlink_msg_servo_output_raw_get_servo5_raw(msg);
418 servo_output_raw->
servo6_raw = mavlink_msg_servo_output_raw_get_servo6_raw(msg);
419 servo_output_raw->
servo7_raw = mavlink_msg_servo_output_raw_get_servo7_raw(msg);
420 servo_output_raw->
servo8_raw = mavlink_msg_servo_output_raw_get_servo8_raw(msg);
421 servo_output_raw->
port = mavlink_msg_servo_output_raw_get_port(msg);
uint16_t servo7_raw
Servo output 7 value, in microseconds.
Definition: mavlink_msg_servo_output_raw.h:14
uint16_t servo6_raw
Servo output 6 value, in microseconds.
Definition: mavlink_msg_servo_output_raw.h:13
#define _MAV_RETURN_uint8_t(msg, wire_offset)
Definition: protocol.h:238
uint16_t servo8_raw
Servo output 8 value, in microseconds.
Definition: mavlink_msg_servo_output_raw.h:15
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
uint32_t time_usec
Timestamp (microseconds since system boot)
Definition: mavlink_msg_servo_output_raw.h:7
#define _MAV_PAYLOAD_NON_CONST(msg)
Definition: mavlink_types.h:172
#define MAVLINK_MSG_ID_SERVO_OUTPUT_RAW_CRC
Definition: mavlink_msg_servo_output_raw.h:22
Definition: mavlink_msg_servo_output_raw.h:5
uint16_t servo4_raw
Servo output 4 value, in microseconds.
Definition: mavlink_msg_servo_output_raw.h:11
mavlink_channel_t
Definition: mavlink_types.h:178
#define _MAV_PAYLOAD(msg)
Definition: mavlink_types.h:171
#define MAVLINK_MSG_ID_SERVO_OUTPUT_RAW
Definition: mavlink_msg_servo_output_raw.h:3
struct __mavlink_servo_output_raw_t mavlink_servo_output_raw_t
uint8_t port
Servo output port (set of 8 outputs = 1 port). Most MAVs will just use one, but this allows to encode...
Definition: mavlink_msg_servo_output_raw.h:16
uint16_t servo5_raw
Servo output 5 value, in microseconds.
Definition: mavlink_msg_servo_output_raw.h:12
uint16_t servo3_raw
Servo output 3 value, in microseconds.
Definition: mavlink_msg_servo_output_raw.h:10
#define MAVLINK_MSG_ID_SERVO_OUTPUT_RAW_LEN
Definition: mavlink_msg_servo_output_raw.h:19
uint16_t servo2_raw
Servo output 2 value, in microseconds.
Definition: mavlink_msg_servo_output_raw.h:9
uint16_t servo1_raw
Servo output 1 value, in microseconds.
Definition: mavlink_msg_servo_output_raw.h:8
#define _mav_put_uint16_t(buf, wire_offset, b)
Definition: protocol.h:139
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 _mav_put_uint32_t(buf, wire_offset, b)
Definition: protocol.h:141