3 #define MAVLINK_MSG_ID_OPTICAL_FLOW_RAD 106 21 #define MAVLINK_MSG_ID_OPTICAL_FLOW_RAD_LEN 44 22 #define MAVLINK_MSG_ID_106_LEN 44 24 #define MAVLINK_MSG_ID_OPTICAL_FLOW_RAD_CRC 138 25 #define MAVLINK_MSG_ID_106_CRC 138 29 #define MAVLINK_MESSAGE_INFO_OPTICAL_FLOW_RAD { \ 32 { { "time_usec", NULL, MAVLINK_TYPE_UINT64_T, 0, 0, offsetof(mavlink_optical_flow_rad_t, time_usec) }, \ 33 { "integration_time_us", NULL, MAVLINK_TYPE_UINT32_T, 0, 8, offsetof(mavlink_optical_flow_rad_t, integration_time_us) }, \ 34 { "integrated_x", NULL, MAVLINK_TYPE_FLOAT, 0, 12, offsetof(mavlink_optical_flow_rad_t, integrated_x) }, \ 35 { "integrated_y", NULL, MAVLINK_TYPE_FLOAT, 0, 16, offsetof(mavlink_optical_flow_rad_t, integrated_y) }, \ 36 { "integrated_xgyro", NULL, MAVLINK_TYPE_FLOAT, 0, 20, offsetof(mavlink_optical_flow_rad_t, integrated_xgyro) }, \ 37 { "integrated_ygyro", NULL, MAVLINK_TYPE_FLOAT, 0, 24, offsetof(mavlink_optical_flow_rad_t, integrated_ygyro) }, \ 38 { "integrated_zgyro", NULL, MAVLINK_TYPE_FLOAT, 0, 28, offsetof(mavlink_optical_flow_rad_t, integrated_zgyro) }, \ 39 { "time_delta_distance_us", NULL, MAVLINK_TYPE_UINT32_T, 0, 32, offsetof(mavlink_optical_flow_rad_t, time_delta_distance_us) }, \ 40 { "distance", NULL, MAVLINK_TYPE_FLOAT, 0, 36, offsetof(mavlink_optical_flow_rad_t, distance) }, \ 41 { "temperature", NULL, MAVLINK_TYPE_INT16_T, 0, 40, offsetof(mavlink_optical_flow_rad_t, temperature) }, \ 42 { "sensor_id", NULL, MAVLINK_TYPE_UINT8_T, 0, 42, offsetof(mavlink_optical_flow_rad_t, sensor_id) }, \ 43 { "quality", NULL, MAVLINK_TYPE_UINT8_T, 0, 43, offsetof(mavlink_optical_flow_rad_t, quality) }, \ 69 uint64_t
time_usec, uint8_t
sensor_id, uint32_t
integration_time_us,
float integrated_x,
float integrated_y,
float integrated_xgyro,
float integrated_ygyro,
float integrated_zgyro, int16_t
temperature, uint8_t
quality, uint32_t
time_delta_distance_us,
float distance)
71 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS 106 #if MAVLINK_CRC_EXTRA 134 mavlink_message_t* msg,
135 uint64_t
time_usec,uint8_t
sensor_id,uint32_t
integration_time_us,
float integrated_x,
float integrated_y,
float integrated_xgyro,
float integrated_ygyro,
float integrated_zgyro,int16_t
temperature,uint8_t
quality,uint32_t
time_delta_distance_us,
float distance)
137 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS 172 #if MAVLINK_CRC_EXTRA 189 return mavlink_msg_optical_flow_rad_pack(system_id, component_id, msg, optical_flow_rad->
time_usec, optical_flow_rad->
sensor_id, optical_flow_rad->
integration_time_us, optical_flow_rad->
integrated_x, optical_flow_rad->
integrated_y, optical_flow_rad->
integrated_xgyro, optical_flow_rad->
integrated_ygyro, optical_flow_rad->
integrated_zgyro, optical_flow_rad->
temperature, optical_flow_rad->
quality, optical_flow_rad->
time_delta_distance_us, optical_flow_rad->
distance);
203 return mavlink_msg_optical_flow_rad_pack_chan(system_id, component_id, chan, msg, optical_flow_rad->
time_usec, optical_flow_rad->
sensor_id, optical_flow_rad->
integration_time_us, optical_flow_rad->
integrated_x, optical_flow_rad->
integrated_y, optical_flow_rad->
integrated_xgyro, optical_flow_rad->
integrated_ygyro, optical_flow_rad->
integrated_zgyro, optical_flow_rad->
temperature, optical_flow_rad->
quality, optical_flow_rad->
time_delta_distance_us, optical_flow_rad->
distance);
223 #ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS 225 static inline void mavlink_msg_optical_flow_rad_send(
mavlink_channel_t chan, uint64_t
time_usec, uint8_t
sensor_id, uint32_t
integration_time_us,
float integrated_x,
float integrated_y,
float integrated_xgyro,
float integrated_ygyro,
float integrated_zgyro, int16_t
temperature, uint8_t
quality, uint32_t
time_delta_distance_us,
float distance)
227 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS 242 #if MAVLINK_CRC_EXTRA 262 #if MAVLINK_CRC_EXTRA 270 #if MAVLINK_MSG_ID_OPTICAL_FLOW_RAD_LEN <= MAVLINK_MAX_PAYLOAD_LEN 278 static inline void mavlink_msg_optical_flow_rad_send_buf(mavlink_message_t *msgbuf,
mavlink_channel_t chan, uint64_t
time_usec, uint8_t
sensor_id, uint32_t
integration_time_us,
float integrated_x,
float integrated_y,
float integrated_xgyro,
float integrated_ygyro,
float integrated_zgyro, int16_t
temperature, uint8_t
quality, uint32_t
time_delta_distance_us,
float distance)
280 #if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS 281 char *buf = (
char *)msgbuf;
295 #if MAVLINK_CRC_EXTRA 315 #if MAVLINK_CRC_EXTRA 336 return _MAV_RETURN_uint64_t(msg, 0);
356 return _MAV_RETURN_uint32_t(msg, 8);
366 return _MAV_RETURN_float(msg, 12);
376 return _MAV_RETURN_float(msg, 16);
386 return _MAV_RETURN_float(msg, 20);
396 return _MAV_RETURN_float(msg, 24);
406 return _MAV_RETURN_float(msg, 28);
416 return _MAV_RETURN_int16_t(msg, 40);
436 return _MAV_RETURN_uint32_t(msg, 32);
446 return _MAV_RETURN_float(msg, 36);
457 #if MAVLINK_NEED_BYTE_SWAP #define _mav_put_float(buf, wire_offset, b)
static uint16_t mavlink_msg_optical_flow_rad_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t *msg, const mavlink_optical_flow_rad_t *optical_flow_rad)
Encode a optical_flow_rad struct.
uint32_t integration_time_us
#define MAVLINK_MSG_ID_OPTICAL_FLOW_RAD
static uint16_t mavlink_msg_optical_flow_rad_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t *msg, uint64_t time_usec, uint8_t sensor_id, uint32_t integration_time_us, float integrated_x, float integrated_y, float integrated_xgyro, float integrated_ygyro, float integrated_zgyro, int16_t temperature, uint8_t quality, uint32_t time_delta_distance_us, float distance)
Pack a optical_flow_rad message on a channel.
static void mavlink_msg_optical_flow_rad_decode(const mavlink_message_t *msg, mavlink_optical_flow_rad_t *optical_flow_rad)
Decode a optical_flow_rad message into a struct.
#define MAVLINK_MSG_ID_OPTICAL_FLOW_RAD_LEN
#define _MAV_RETURN_uint8_t(msg, wire_offset)
static float mavlink_msg_optical_flow_rad_get_integrated_ygyro(const mavlink_message_t *msg)
Get field integrated_ygyro from optical_flow_rad message.
static float mavlink_msg_optical_flow_rad_get_distance(const mavlink_message_t *msg)
Get field distance from optical_flow_rad 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.
#define MAVLINK_MSG_ID_OPTICAL_FLOW_RAD_CRC
#define _mav_put_uint8_t(buf, wire_offset, b)
#define _mav_put_uint64_t(buf, wire_offset, b)
#define _MAV_PAYLOAD_NON_CONST(msg)
static float mavlink_msg_optical_flow_rad_get_integrated_y(const mavlink_message_t *msg)
Get field integrated_y from optical_flow_rad message.
static uint32_t mavlink_msg_optical_flow_rad_get_time_delta_distance_us(const mavlink_message_t *msg)
Get field time_delta_distance_us from optical_flow_rad message.
#define _MAV_PAYLOAD(msg)
static uint16_t mavlink_msg_optical_flow_rad_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t *msg, uint64_t time_usec, uint8_t sensor_id, uint32_t integration_time_us, float integrated_x, float integrated_y, float integrated_xgyro, float integrated_ygyro, float integrated_zgyro, int16_t temperature, uint8_t quality, uint32_t time_delta_distance_us, float distance)
Pack a optical_flow_rad message.
uint32_t time_delta_distance_us
static uint32_t mavlink_msg_optical_flow_rad_get_integration_time_us(const mavlink_message_t *msg)
Get field integration_time_us from optical_flow_rad message.
static uint8_t mavlink_msg_optical_flow_rad_get_quality(const mavlink_message_t *msg)
Get field quality from optical_flow_rad message.
static float mavlink_msg_optical_flow_rad_get_integrated_xgyro(const mavlink_message_t *msg)
Get field integrated_xgyro from optical_flow_rad message.
static uint16_t mavlink_msg_optical_flow_rad_encode_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t *msg, const mavlink_optical_flow_rad_t *optical_flow_rad)
Encode a optical_flow_rad struct on a channel.
static uint64_t mavlink_msg_optical_flow_rad_get_time_usec(const mavlink_message_t *msg)
Send a optical_flow_rad message.
static uint8_t mavlink_msg_optical_flow_rad_get_sensor_id(const mavlink_message_t *msg)
Get field sensor_id from optical_flow_rad message.
static float mavlink_msg_optical_flow_rad_get_integrated_zgyro(const mavlink_message_t *msg)
Get field integrated_zgyro from optical_flow_rad message.
static float mavlink_msg_optical_flow_rad_get_integrated_x(const mavlink_message_t *msg)
Get field integrated_x from optical_flow_rad message.
struct __mavlink_optical_flow_rad_t mavlink_optical_flow_rad_t
static int16_t mavlink_msg_optical_flow_rad_get_temperature(const mavlink_message_t *msg)
Get field temperature from optical_flow_rad 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.
#define _mav_put_int16_t(buf, wire_offset, b)
#define _mav_put_uint32_t(buf, wire_offset, b)