3 #define MAVLINK_MSG_ID_HIL_OPTICAL_FLOW 114 21 #define MAVLINK_MSG_ID_HIL_OPTICAL_FLOW_LEN 44 22 #define MAVLINK_MSG_ID_114_LEN 44 24 #define MAVLINK_MSG_ID_HIL_OPTICAL_FLOW_CRC 237 25 #define MAVLINK_MSG_ID_114_CRC 237 29 #define MAVLINK_MESSAGE_INFO_HIL_OPTICAL_FLOW { \ 32 { { "time_usec", NULL, MAVLINK_TYPE_UINT64_T, 0, 0, offsetof(mavlink_hil_optical_flow_t, time_usec) }, \ 33 { "integration_time_us", NULL, MAVLINK_TYPE_UINT32_T, 0, 8, offsetof(mavlink_hil_optical_flow_t, integration_time_us) }, \ 34 { "integrated_x", NULL, MAVLINK_TYPE_FLOAT, 0, 12, offsetof(mavlink_hil_optical_flow_t, integrated_x) }, \ 35 { "integrated_y", NULL, MAVLINK_TYPE_FLOAT, 0, 16, offsetof(mavlink_hil_optical_flow_t, integrated_y) }, \ 36 { "integrated_xgyro", NULL, MAVLINK_TYPE_FLOAT, 0, 20, offsetof(mavlink_hil_optical_flow_t, integrated_xgyro) }, \ 37 { "integrated_ygyro", NULL, MAVLINK_TYPE_FLOAT, 0, 24, offsetof(mavlink_hil_optical_flow_t, integrated_ygyro) }, \ 38 { "integrated_zgyro", NULL, MAVLINK_TYPE_FLOAT, 0, 28, offsetof(mavlink_hil_optical_flow_t, integrated_zgyro) }, \ 39 { "time_delta_distance_us", NULL, MAVLINK_TYPE_UINT32_T, 0, 32, offsetof(mavlink_hil_optical_flow_t, time_delta_distance_us) }, \ 40 { "distance", NULL, MAVLINK_TYPE_FLOAT, 0, 36, offsetof(mavlink_hil_optical_flow_t, distance) }, \ 41 { "temperature", NULL, MAVLINK_TYPE_INT16_T, 0, 40, offsetof(mavlink_hil_optical_flow_t, temperature) }, \ 42 { "sensor_id", NULL, MAVLINK_TYPE_UINT8_T, 0, 42, offsetof(mavlink_hil_optical_flow_t, sensor_id) }, \ 43 { "quality", NULL, MAVLINK_TYPE_UINT8_T, 0, 43, offsetof(mavlink_hil_optical_flow_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_hil_optical_flow_pack(system_id, component_id, msg, hil_optical_flow->
time_usec, hil_optical_flow->
sensor_id, hil_optical_flow->
integration_time_us, hil_optical_flow->
integrated_x, hil_optical_flow->
integrated_y, hil_optical_flow->
integrated_xgyro, hil_optical_flow->
integrated_ygyro, hil_optical_flow->
integrated_zgyro, hil_optical_flow->
temperature, hil_optical_flow->
quality, hil_optical_flow->
time_delta_distance_us, hil_optical_flow->
distance);
203 return mavlink_msg_hil_optical_flow_pack_chan(system_id, component_id, chan, msg, hil_optical_flow->
time_usec, hil_optical_flow->
sensor_id, hil_optical_flow->
integration_time_us, hil_optical_flow->
integrated_x, hil_optical_flow->
integrated_y, hil_optical_flow->
integrated_xgyro, hil_optical_flow->
integrated_ygyro, hil_optical_flow->
integrated_zgyro, hil_optical_flow->
temperature, hil_optical_flow->
quality, hil_optical_flow->
time_delta_distance_us, hil_optical_flow->
distance);
223 #ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS 225 static inline void mavlink_msg_hil_optical_flow_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_HIL_OPTICAL_FLOW_LEN <= MAVLINK_MAX_PAYLOAD_LEN 278 static inline void mavlink_msg_hil_optical_flow_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_hil_optical_flow_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t *msg, const mavlink_hil_optical_flow_t *hil_optical_flow)
Encode a hil_optical_flow struct.
static int16_t mavlink_msg_hil_optical_flow_get_temperature(const mavlink_message_t *msg)
Get field temperature from hil_optical_flow message.
#define _MAV_RETURN_uint8_t(msg, wire_offset)
static uint32_t mavlink_msg_hil_optical_flow_get_integration_time_us(const mavlink_message_t *msg)
Get field integration_time_us from hil_optical_flow message.
#define MAVLINK_MSG_ID_HIL_OPTICAL_FLOW
static float mavlink_msg_hil_optical_flow_get_integrated_zgyro(const mavlink_message_t *msg)
Get field integrated_zgyro from hil_optical_flow 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_hil_optical_flow_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 hil_optical_flow message on a channel.
#define _mav_put_uint8_t(buf, wire_offset, b)
#define _mav_put_uint64_t(buf, wire_offset, b)
#define _MAV_PAYLOAD_NON_CONST(msg)
uint32_t time_delta_distance_us
#define MAVLINK_MSG_ID_HIL_OPTICAL_FLOW_CRC
#define _MAV_PAYLOAD(msg)
static float mavlink_msg_hil_optical_flow_get_integrated_y(const mavlink_message_t *msg)
Get field integrated_y from hil_optical_flow message.
static uint16_t mavlink_msg_hil_optical_flow_encode_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t *msg, const mavlink_hil_optical_flow_t *hil_optical_flow)
Encode a hil_optical_flow struct on a channel.
static float mavlink_msg_hil_optical_flow_get_distance(const mavlink_message_t *msg)
Get field distance from hil_optical_flow message.
#define MAVLINK_MSG_ID_HIL_OPTICAL_FLOW_LEN
struct __mavlink_hil_optical_flow_t mavlink_hil_optical_flow_t
static uint8_t mavlink_msg_hil_optical_flow_get_quality(const mavlink_message_t *msg)
Get field quality from hil_optical_flow message.
static float mavlink_msg_hil_optical_flow_get_integrated_ygyro(const mavlink_message_t *msg)
Get field integrated_ygyro from hil_optical_flow message.
static uint16_t mavlink_msg_hil_optical_flow_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 hil_optical_flow message.
static void mavlink_msg_hil_optical_flow_decode(const mavlink_message_t *msg, mavlink_hil_optical_flow_t *hil_optical_flow)
Decode a hil_optical_flow message into a struct.
static uint64_t mavlink_msg_hil_optical_flow_get_time_usec(const mavlink_message_t *msg)
Send a hil_optical_flow message.
static float mavlink_msg_hil_optical_flow_get_integrated_x(const mavlink_message_t *msg)
Get field integrated_x from hil_optical_flow message.
static uint8_t mavlink_msg_hil_optical_flow_get_sensor_id(const mavlink_message_t *msg)
Get field sensor_id from hil_optical_flow 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.
uint32_t integration_time_us
#define _mav_put_int16_t(buf, wire_offset, b)
static float mavlink_msg_hil_optical_flow_get_integrated_xgyro(const mavlink_message_t *msg)
Get field integrated_xgyro from hil_optical_flow message.
static uint32_t mavlink_msg_hil_optical_flow_get_time_delta_distance_us(const mavlink_message_t *msg)
Get field time_delta_distance_us from hil_optical_flow message.
#define _mav_put_uint32_t(buf, wire_offset, b)