3 #define MAVLINK_MSG_ID_DEBUG_VECT 250
14 #define MAVLINK_MSG_ID_DEBUG_VECT_LEN 30
15 #define MAVLINK_MSG_ID_250_LEN 30
17 #define MAVLINK_MSG_ID_DEBUG_VECT_CRC 49
18 #define MAVLINK_MSG_ID_250_CRC 49
20 #define MAVLINK_MSG_DEBUG_VECT_FIELD_NAME_LEN 10
22 #define MAVLINK_MESSAGE_INFO_DEBUG_VECT { \
25 { { "time_usec", NULL, MAVLINK_TYPE_UINT64_T, 0, 0, offsetof(mavlink_debug_vect_t, time_usec) }, \
26 { "x", NULL, MAVLINK_TYPE_FLOAT, 0, 8, offsetof(mavlink_debug_vect_t, x) }, \
27 { "y", NULL, MAVLINK_TYPE_FLOAT, 0, 12, offsetof(mavlink_debug_vect_t, y) }, \
28 { "z", NULL, MAVLINK_TYPE_FLOAT, 0, 16, offsetof(mavlink_debug_vect_t, z) }, \
29 { "name", NULL, MAVLINK_TYPE_CHAR, 10, 20, offsetof(mavlink_debug_vect_t, name) }, \
47 static inline uint16_t mavlink_msg_debug_vect_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
48 const char *name, uint64_t time_usec,
float x,
float y,
float z)
50 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
56 _mav_put_char_array(buf, 20, name, 10);
64 mav_array_memcpy(packet.
name, name,
sizeof(
char)*10);
89 static inline uint16_t mavlink_msg_debug_vect_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan,
90 mavlink_message_t* msg,
91 const char *name,uint64_t time_usec,
float x,
float y,
float z)
93 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
99 _mav_put_char_array(buf, 20, name, 10);
107 mav_array_memcpy(packet.
name, name,
sizeof(
char)*10);
112 #if MAVLINK_CRC_EXTRA
127 static inline uint16_t mavlink_msg_debug_vect_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
const mavlink_debug_vect_t* debug_vect)
129 return mavlink_msg_debug_vect_pack(system_id, component_id, msg, debug_vect->
name, debug_vect->
time_usec, debug_vect->
x, debug_vect->
y, debug_vect->
z);
141 static inline uint16_t mavlink_msg_debug_vect_encode_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t* msg,
const mavlink_debug_vect_t* debug_vect)
143 return mavlink_msg_debug_vect_pack_chan(system_id, component_id, chan, msg, debug_vect->
name, debug_vect->
time_usec, debug_vect->
x, debug_vect->
y, debug_vect->
z);
156 #ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS
158 static inline void mavlink_msg_debug_vect_send(
mavlink_channel_t chan,
const char *name, uint64_t time_usec,
float x,
float y,
float z)
160 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
166 _mav_put_char_array(buf, 20, name, 10);
167 #if MAVLINK_CRC_EXTRA
178 mav_array_memcpy(packet.
name, name,
sizeof(
char)*10);
179 #if MAVLINK_CRC_EXTRA
187 #if MAVLINK_MSG_ID_DEBUG_VECT_LEN <= MAVLINK_MAX_PAYLOAD_LEN
195 static inline void mavlink_msg_debug_vect_send_buf(mavlink_message_t *msgbuf,
mavlink_channel_t chan,
const char *name, uint64_t time_usec,
float x,
float y,
float z)
197 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
198 char *buf = (
char *)msgbuf;
203 _mav_put_char_array(buf, 20, name, 10);
204 #if MAVLINK_CRC_EXTRA
215 mav_array_memcpy(packet->
name, name,
sizeof(
char)*10);
216 #if MAVLINK_CRC_EXTRA
235 static inline uint16_t mavlink_msg_debug_vect_get_name(
const mavlink_message_t* msg,
char *name)
237 return _MAV_RETURN_char_array(msg, name, 10, 20);
245 static inline uint64_t mavlink_msg_debug_vect_get_time_usec(
const mavlink_message_t* msg)
247 return _MAV_RETURN_uint64_t(msg, 0);
255 static inline float mavlink_msg_debug_vect_get_x(
const mavlink_message_t* msg)
257 return _MAV_RETURN_float(msg, 8);
265 static inline float mavlink_msg_debug_vect_get_y(
const mavlink_message_t* msg)
267 return _MAV_RETURN_float(msg, 12);
275 static inline float mavlink_msg_debug_vect_get_z(
const mavlink_message_t* msg)
277 return _MAV_RETURN_float(msg, 16);
286 static inline void mavlink_msg_debug_vect_decode(
const mavlink_message_t* msg,
mavlink_debug_vect_t* debug_vect)
288 #if MAVLINK_NEED_BYTE_SWAP
289 debug_vect->
time_usec = mavlink_msg_debug_vect_get_time_usec(msg);
290 debug_vect->
x = mavlink_msg_debug_vect_get_x(msg);
291 debug_vect->
y = mavlink_msg_debug_vect_get_y(msg);
292 debug_vect->
z = mavlink_msg_debug_vect_get_z(msg);
293 mavlink_msg_debug_vect_get_name(msg, debug_vect->
name);
#define _mav_put_float(buf, wire_offset, b)
Definition: protocol.h:145
#define MAVLINK_MSG_ID_DEBUG_VECT
Definition: mavlink_msg_debug_vect.h:3
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_uint64_t(buf, wire_offset, b)
Definition: protocol.h:143
#define _MAV_PAYLOAD_NON_CONST(msg)
Definition: mavlink_types.h:172
float y
y
Definition: mavlink_msg_debug_vect.h:9
mavlink_channel_t
Definition: mavlink_types.h:178
char name[10]
Name.
Definition: mavlink_msg_debug_vect.h:11
#define _MAV_PAYLOAD(msg)
Definition: mavlink_types.h:171
uint8_t z
set the acc deadband for z-Axis, this ignores small accelerations
Definition: accelerometer.h:52
struct __mavlink_debug_vect_t mavlink_debug_vect_t
Definition: mavlink_msg_debug_vect.h:5
uint64_t time_usec
Timestamp.
Definition: mavlink_msg_debug_vect.h:7
#define MAVLINK_MSG_ID_DEBUG_VECT_LEN
Definition: mavlink_msg_debug_vect.h:14
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 x
x
Definition: mavlink_msg_debug_vect.h:8
float z
z
Definition: mavlink_msg_debug_vect.h:10
#define MAVLINK_MSG_ID_DEBUG_VECT_CRC
Definition: mavlink_msg_debug_vect.h:17