3 #define MAVLINK_MSG_ID_TEST_TYPES 0 31 #define MAVLINK_MSG_ID_TEST_TYPES_LEN 179 32 #define MAVLINK_MSG_ID_0_LEN 179 34 #define MAVLINK_MSG_ID_TEST_TYPES_CRC 103 35 #define MAVLINK_MSG_ID_0_CRC 103 37 #define MAVLINK_MSG_TEST_TYPES_FIELD_U64_ARRAY_LEN 3 38 #define MAVLINK_MSG_TEST_TYPES_FIELD_S64_ARRAY_LEN 3 39 #define MAVLINK_MSG_TEST_TYPES_FIELD_D_ARRAY_LEN 3 40 #define MAVLINK_MSG_TEST_TYPES_FIELD_U32_ARRAY_LEN 3 41 #define MAVLINK_MSG_TEST_TYPES_FIELD_S32_ARRAY_LEN 3 42 #define MAVLINK_MSG_TEST_TYPES_FIELD_F_ARRAY_LEN 3 43 #define MAVLINK_MSG_TEST_TYPES_FIELD_U16_ARRAY_LEN 3 44 #define MAVLINK_MSG_TEST_TYPES_FIELD_S16_ARRAY_LEN 3 45 #define MAVLINK_MSG_TEST_TYPES_FIELD_S_LEN 10 46 #define MAVLINK_MSG_TEST_TYPES_FIELD_U8_ARRAY_LEN 3 47 #define MAVLINK_MSG_TEST_TYPES_FIELD_S8_ARRAY_LEN 3 49 #define MAVLINK_MESSAGE_INFO_TEST_TYPES { \ 52 { { "u64", NULL, MAVLINK_TYPE_UINT64_T, 0, 0, offsetof(mavlink_test_types_t, u64) }, \ 53 { "s64", NULL, MAVLINK_TYPE_INT64_T, 0, 8, offsetof(mavlink_test_types_t, s64) }, \ 54 { "d", NULL, MAVLINK_TYPE_DOUBLE, 0, 16, offsetof(mavlink_test_types_t, d) }, \ 55 { "u64_array", NULL, MAVLINK_TYPE_UINT64_T, 3, 24, offsetof(mavlink_test_types_t, u64_array) }, \ 56 { "s64_array", NULL, MAVLINK_TYPE_INT64_T, 3, 48, offsetof(mavlink_test_types_t, s64_array) }, \ 57 { "d_array", NULL, MAVLINK_TYPE_DOUBLE, 3, 72, offsetof(mavlink_test_types_t, d_array) }, \ 58 { "u32", "0x%08x", MAVLINK_TYPE_UINT32_T, 0, 96, offsetof(mavlink_test_types_t, u32) }, \ 59 { "s32", NULL, MAVLINK_TYPE_INT32_T, 0, 100, offsetof(mavlink_test_types_t, s32) }, \ 60 { "f", NULL, MAVLINK_TYPE_FLOAT, 0, 104, offsetof(mavlink_test_types_t, f) }, \ 61 { "u32_array", NULL, MAVLINK_TYPE_UINT32_T, 3, 108, offsetof(mavlink_test_types_t, u32_array) }, \ 62 { "s32_array", NULL, MAVLINK_TYPE_INT32_T, 3, 120, offsetof(mavlink_test_types_t, s32_array) }, \ 63 { "f_array", NULL, MAVLINK_TYPE_FLOAT, 3, 132, offsetof(mavlink_test_types_t, f_array) }, \ 64 { "u16", NULL, MAVLINK_TYPE_UINT16_T, 0, 144, offsetof(mavlink_test_types_t, u16) }, \ 65 { "s16", NULL, MAVLINK_TYPE_INT16_T, 0, 146, offsetof(mavlink_test_types_t, s16) }, \ 66 { "u16_array", NULL, MAVLINK_TYPE_UINT16_T, 3, 148, offsetof(mavlink_test_types_t, u16_array) }, \ 67 { "s16_array", NULL, MAVLINK_TYPE_INT16_T, 3, 154, offsetof(mavlink_test_types_t, s16_array) }, \ 68 { "c", NULL, MAVLINK_TYPE_CHAR, 0, 160, offsetof(mavlink_test_types_t, c) }, \ 69 { "s", NULL, MAVLINK_TYPE_CHAR, 10, 161, offsetof(mavlink_test_types_t, s) }, \ 70 { "u8", NULL, MAVLINK_TYPE_UINT8_T, 0, 171, offsetof(mavlink_test_types_t, u8) }, \ 71 { "s8", NULL, MAVLINK_TYPE_INT8_T, 0, 172, offsetof(mavlink_test_types_t, s8) }, \ 72 { "u8_array", NULL, MAVLINK_TYPE_UINT8_T, 3, 173, offsetof(mavlink_test_types_t, u8_array) }, \ 73 { "s8_array", NULL, MAVLINK_TYPE_INT8_T, 3, 176, offsetof(mavlink_test_types_t, s8_array) }, \ 109 char c,
const char *
s, uint8_t
u8, uint16_t
u16, uint32_t
u32, uint64_t
u64, int8_t
s8, int16_t
s16, int32_t
s32, int64_t
s64,
float f,
double d,
const uint8_t *
u8_array,
const uint16_t *
u16_array,
const uint32_t *
u32_array,
const uint64_t *
u64_array,
const int8_t *
s8_array,
const int16_t *
s16_array,
const int32_t *
s32_array,
const int64_t *
s64_array,
const float *
f_array,
const double *
d_array)
111 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS 124 _mav_put_uint64_t_array(buf, 24, u64_array, 3);
125 _mav_put_int64_t_array(buf, 48, s64_array, 3);
126 _mav_put_double_array(buf, 72, d_array, 3);
127 _mav_put_uint32_t_array(buf, 108, u32_array, 3);
128 _mav_put_int32_t_array(buf, 120, s32_array, 3);
129 _mav_put_float_array(buf, 132, f_array, 3);
130 _mav_put_uint16_t_array(buf, 148, u16_array, 3);
131 _mav_put_int16_t_array(buf, 154, s16_array, 3);
164 #if MAVLINK_CRC_EXTRA 203 char c,
const char *
s,uint8_t
u8,uint16_t
u16,uint32_t
u32,uint64_t
u64,int8_t
s8,int16_t
s16,int32_t
s32,int64_t
s64,
float f,
double d,
const uint8_t *
u8_array,
const uint16_t *
u16_array,
const uint32_t *
u32_array,
const uint64_t *
u64_array,
const int8_t *
s8_array,
const int16_t *
s16_array,
const int32_t *
s32_array,
const int64_t *
s64_array,
const float *
f_array,
const double *
d_array)
205 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS 218 _mav_put_uint64_t_array(buf, 24, u64_array, 3);
219 _mav_put_int64_t_array(buf, 48, s64_array, 3);
220 _mav_put_double_array(buf, 72, d_array, 3);
221 _mav_put_uint32_t_array(buf, 108, u32_array, 3);
222 _mav_put_int32_t_array(buf, 120, s32_array, 3);
223 _mav_put_float_array(buf, 132, f_array, 3);
224 _mav_put_uint16_t_array(buf, 148, u16_array, 3);
225 _mav_put_int16_t_array(buf, 154, s16_array, 3);
258 #if MAVLINK_CRC_EXTRA 275 return mavlink_msg_test_types_pack(system_id, component_id, msg, test_types->
c, test_types->
s, test_types->
u8, test_types->
u16, test_types->
u32, test_types->
u64, test_types->
s8, test_types->
s16, test_types->
s32, test_types->
s64, test_types->
f, test_types->
d, test_types->
u8_array, test_types->
u16_array, test_types->
u32_array, test_types->
u64_array, test_types->
s8_array, test_types->
s16_array, test_types->
s32_array, test_types->
s64_array, test_types->
f_array, test_types->
d_array);
305 #ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS 307 static inline void mavlink_msg_test_types_send(
mavlink_channel_t chan,
char c,
const char *
s, uint8_t
u8, uint16_t
u16, uint32_t
u32, uint64_t
u64, int8_t
s8, int16_t
s16, int32_t
s32, int64_t
s64,
float f,
double d,
const uint8_t *
u8_array,
const uint16_t *
u16_array,
const uint32_t *
u32_array,
const uint64_t *
u64_array,
const int8_t *
s8_array,
const int16_t *
s16_array,
const int32_t *
s32_array,
const int64_t *
s64_array,
const float *
f_array,
const double *
d_array)
309 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS 322 _mav_put_uint64_t_array(buf, 24,
u64_array, 3);
323 _mav_put_int64_t_array(buf, 48,
s64_array, 3);
324 _mav_put_double_array(buf, 72, d_array, 3);
325 _mav_put_uint32_t_array(buf, 108,
u32_array, 3);
326 _mav_put_int32_t_array(buf, 120,
s32_array, 3);
327 _mav_put_float_array(buf, 132,
f_array, 3);
328 _mav_put_uint16_t_array(buf, 148,
u16_array, 3);
329 _mav_put_int16_t_array(buf, 154,
s16_array, 3);
333 #if MAVLINK_CRC_EXTRA 362 #if MAVLINK_CRC_EXTRA 412 return _MAV_RETURN_uint16_t(msg, 144);
422 return _MAV_RETURN_uint32_t(msg, 96);
432 return _MAV_RETURN_uint64_t(msg, 0);
452 return _MAV_RETURN_int16_t(msg, 146);
462 return _MAV_RETURN_int32_t(msg, 100);
472 return _MAV_RETURN_int64_t(msg, 8);
482 return _MAV_RETURN_float(msg, 104);
492 return _MAV_RETURN_double(msg, 16);
512 return _MAV_RETURN_uint16_t_array(msg, u16_array, 3, 148);
522 return _MAV_RETURN_uint32_t_array(msg, u32_array, 3, 108);
532 return _MAV_RETURN_uint64_t_array(msg, u64_array, 3, 24);
552 return _MAV_RETURN_int16_t_array(msg, s16_array, 3, 154);
562 return _MAV_RETURN_int32_t_array(msg, s32_array, 3, 120);
572 return _MAV_RETURN_int64_t_array(msg, s64_array, 3, 48);
582 return _MAV_RETURN_float_array(msg, f_array, 3, 132);
592 return _MAV_RETURN_double_array(msg, d_array, 3, 72);
603 #if MAVLINK_NEED_BYTE_SWAP #define _mav_put_uint32_t(buf, wire_offset, b)
static uint16_t _MAV_RETURN_int8_t_array(const mavlink_message_t *msg, int8_t *value, uint8_t array_length, uint8_t wire_offset)
static uint16_t mavlink_msg_test_types_get_d_array(const mavlink_message_t *msg, double *d_array)
Get field d_array from test_types message.
static uint16_t _MAV_RETURN_char_array(const mavlink_message_t *msg, char *value, uint8_t array_length, uint8_t wire_offset)
#define _MAV_RETURN_uint8_t(msg, wire_offset)
int8_t s8_array[3]
int8_t_array
static uint16_t _MAV_RETURN_uint8_t_array(const mavlink_message_t *msg, uint8_t *value, uint8_t array_length, uint8_t wire_offset)
uint8_t msgid
ID of message in payload.
static int64_t mavlink_msg_test_types_get_s64(const mavlink_message_t *msg)
Get field s64 from test_types message.
static uint16_t mavlink_msg_test_types_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t *msg, char c, const char *s, uint8_t u8, uint16_t u16, uint32_t u32, uint64_t u64, int8_t s8, int16_t s16, int32_t s32, int64_t s64, float f, double d, const uint8_t *u8_array, const uint16_t *u16_array, const uint32_t *u32_array, const uint64_t *u64_array, const int8_t *s8_array, const int16_t *s16_array, const int32_t *s32_array, const int64_t *s64_array, const float *f_array, const double *d_array)
Pack a test_types message on a channel.
uint8_t u8_array[3]
uint8_t_array
static uint16_t mavlink_msg_test_types_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t *msg, const mavlink_test_types_t *test_types)
Encode a test_types struct into a message.
static uint16_t mavlink_msg_test_types_get_s(const mavlink_message_t *msg, char *s)
Get field s from test_types message.
static uint16_t mavlink_msg_test_types_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t *msg, char c, const char *s, uint8_t u8, uint16_t u16, uint32_t u32, uint64_t u64, int8_t s8, int16_t s16, int32_t s32, int64_t s64, float f, double d, const uint8_t *u8_array, const uint16_t *u16_array, const uint32_t *u32_array, const uint64_t *u64_array, const int8_t *s8_array, const int16_t *s16_array, const int32_t *s32_array, const int64_t *s64_array, const float *f_array, const double *d_array)
Pack a test_types message.
static int8_t mavlink_msg_test_types_get_s8(const mavlink_message_t *msg)
Get field s8 from test_types message.
static int32_t mavlink_msg_test_types_get_s32(const mavlink_message_t *msg)
Get field s32 from test_types message.
static uint16_t mavlink_msg_test_types_get_u8_array(const mavlink_message_t *msg, uint8_t *u8_array)
Get field u8_array from test_types message.
static uint16_t mavlink_msg_test_types_get_f_array(const mavlink_message_t *msg, float *f_array)
Get field f_array from test_types message.
static uint64_t mavlink_msg_test_types_get_u64(const mavlink_message_t *msg)
Get field u64 from test_types message.
int64_t s64_array[3]
int64_t_array
static uint16_t mavlink_msg_test_types_get_u16_array(const mavlink_message_t *msg, uint16_t *u16_array)
Get field u16_array from test_types message.
#define _mav_put_int32_t(buf, wire_offset, b)
uint16_t u16_array[3]
uint16_t_array
static uint16_t mavlink_msg_test_types_get_u64_array(const mavlink_message_t *msg, uint64_t *u64_array)
Get field u64_array from test_types message.
#define _mav_put_int8_t(buf, wire_offset, b)
static float mavlink_msg_test_types_get_f(const mavlink_message_t *msg)
Get field f from test_types message.
#define _MAV_RETURN_int8_t(msg, wire_offset)
#define MAVLINK_MSG_ID_TEST_TYPES_LEN
#define _MAV_RETURN_char(msg, wire_offset)
static uint8_t mavlink_msg_test_types_get_u8(const mavlink_message_t *msg)
Get field u8 from test_types message.
static uint16_t mavlink_msg_test_types_get_s16_array(const mavlink_message_t *msg, int16_t *s16_array)
Get field s16_array from test_types message.
#define _MAV_PAYLOAD_NON_CONST(msg)
static void _mav_put_char_array(char *buf, uint8_t wire_offset, const char *b, uint8_t array_length)
int16_t s16_array[3]
int16_t_array
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.
uint64_t u64_array[3]
uint64_t_array
static uint16_t mavlink_msg_test_types_get_s32_array(const mavlink_message_t *msg, int32_t *s32_array)
Get field s32_array from test_types message.
static void mav_array_memcpy(void *dest, const void *src, size_t n)
static uint16_t mavlink_msg_test_types_get_s8_array(const mavlink_message_t *msg, int8_t *s8_array)
Get field s8_array from test_types message.
#define _mav_put_double(buf, wire_offset, b)
static char mavlink_msg_test_types_get_c(const mavlink_message_t *msg)
Send a test_types message.
MAVLINK_HELPER void _mav_finalize_message_chan_send(mavlink_channel_t chan, uint8_t msgid, const char *packet, uint8_t length)
#define _MAV_PAYLOAD(msg)
static void _mav_put_int8_t_array(char *buf, uint8_t wire_offset, const int8_t *b, uint8_t array_length)
#define MAVLINK_MSG_ID_TEST_TYPES_CRC
static uint16_t mavlink_msg_test_types_get_s64_array(const mavlink_message_t *msg, int64_t *s64_array)
Get field s64_array from test_types 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.
double d_array[3]
double_array
static double mavlink_msg_test_types_get_d(const mavlink_message_t *msg)
Get field d from test_types message.
#define MAVLINK_MSG_ID_TEST_TYPES
#define _mav_put_uint16_t(buf, wire_offset, b)
int32_t s32_array[3]
int32_t_array
#define _mav_put_int64_t(buf, wire_offset, b)
#define _mav_put_float(buf, wire_offset, b)
#define _mav_put_char(buf, wire_offset, b)
#define _mav_put_int16_t(buf, wire_offset, b)
static void _mav_put_uint8_t_array(char *buf, uint8_t wire_offset, const uint8_t *b, uint8_t array_length)
static uint16_t mavlink_msg_test_types_get_u32_array(const mavlink_message_t *msg, uint32_t *u32_array)
Get field u32_array from test_types message.
float f_array[3]
float_array
#define _mav_put_uint64_t(buf, wire_offset, b)
static int16_t mavlink_msg_test_types_get_s16(const mavlink_message_t *msg)
Get field s16 from test_types message.
#define _mav_put_uint8_t(buf, wire_offset, b)
static uint32_t mavlink_msg_test_types_get_u32(const mavlink_message_t *msg)
Get field u32 from test_types message.
struct __mavlink_test_types_t mavlink_test_types_t
uint32_t u32_array[3]
uint32_t_array
static void mavlink_msg_test_types_decode(const mavlink_message_t *msg, mavlink_test_types_t *test_types)
Decode a test_types message into a struct.
static uint16_t mavlink_msg_test_types_get_u16(const mavlink_message_t *msg)
Get field u16 from test_types message.