Go to the source code of this file.
Classes | |
struct | __mavlink_optical_flow_rad_t |
Macros | |
#define | MAVLINK_MESSAGE_INFO_OPTICAL_FLOW_RAD |
#define | MAVLINK_MSG_ID_106_CRC 138 |
#define | MAVLINK_MSG_ID_106_LEN 44 |
#define | MAVLINK_MSG_ID_OPTICAL_FLOW_RAD 106 |
#define | MAVLINK_MSG_ID_OPTICAL_FLOW_RAD_CRC 138 |
#define | MAVLINK_MSG_ID_OPTICAL_FLOW_RAD_LEN 44 |
Typedefs | |
typedef struct __mavlink_optical_flow_rad_t | mavlink_optical_flow_rad_t |
Functions | |
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. More... | |
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. More... | |
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. More... | |
static float | mavlink_msg_optical_flow_rad_get_distance (const mavlink_message_t *msg) |
Get field distance from optical_flow_rad message. More... | |
static float | mavlink_msg_optical_flow_rad_get_integrated_x (const mavlink_message_t *msg) |
Get field integrated_x from optical_flow_rad message. More... | |
static float | mavlink_msg_optical_flow_rad_get_integrated_xgyro (const mavlink_message_t *msg) |
Get field integrated_xgyro from optical_flow_rad message. More... | |
static float | mavlink_msg_optical_flow_rad_get_integrated_y (const mavlink_message_t *msg) |
Get field integrated_y from optical_flow_rad message. More... | |
static float | mavlink_msg_optical_flow_rad_get_integrated_ygyro (const mavlink_message_t *msg) |
Get field integrated_ygyro from optical_flow_rad message. More... | |
static float | mavlink_msg_optical_flow_rad_get_integrated_zgyro (const mavlink_message_t *msg) |
Get field integrated_zgyro from optical_flow_rad message. More... | |
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. More... | |
static uint8_t | mavlink_msg_optical_flow_rad_get_quality (const mavlink_message_t *msg) |
Get field quality from optical_flow_rad message. More... | |
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. More... | |
static int16_t | mavlink_msg_optical_flow_rad_get_temperature (const mavlink_message_t *msg) |
Get field temperature from optical_flow_rad message. More... | |
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. More... | |
static uint64_t | mavlink_msg_optical_flow_rad_get_time_usec (const mavlink_message_t *msg) |
Send a optical_flow_rad message. More... | |
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. More... | |
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. More... | |
#define MAVLINK_MESSAGE_INFO_OPTICAL_FLOW_RAD |
Definition at line 29 of file mavlink_msg_optical_flow_rad.h.
#define MAVLINK_MSG_ID_106_CRC 138 |
Definition at line 25 of file mavlink_msg_optical_flow_rad.h.
#define MAVLINK_MSG_ID_106_LEN 44 |
Definition at line 22 of file mavlink_msg_optical_flow_rad.h.
#define MAVLINK_MSG_ID_OPTICAL_FLOW_RAD 106 |
Definition at line 3 of file mavlink_msg_optical_flow_rad.h.
#define MAVLINK_MSG_ID_OPTICAL_FLOW_RAD_CRC 138 |
Definition at line 24 of file mavlink_msg_optical_flow_rad.h.
#define MAVLINK_MSG_ID_OPTICAL_FLOW_RAD_LEN 44 |
Definition at line 21 of file mavlink_msg_optical_flow_rad.h.
typedef struct __mavlink_optical_flow_rad_t mavlink_optical_flow_rad_t |
|
inlinestatic |
Decode a optical_flow_rad message into a struct.
msg | The message to decode |
optical_flow_rad | C-struct to decode the message contents into |
Definition at line 455 of file mavlink_msg_optical_flow_rad.h.
|
inlinestatic |
Encode a optical_flow_rad struct.
system_id | ID of this system |
component_id | ID of this component (e.g. 200 for IMU) |
msg | The MAVLink message to compress the data into |
optical_flow_rad | C-struct to read the message contents from |
Definition at line 187 of file mavlink_msg_optical_flow_rad.h.
|
inlinestatic |
Encode a optical_flow_rad struct on a channel.
system_id | ID of this system |
component_id | ID of this component (e.g. 200 for IMU) |
chan | The MAVLink channel this message will be sent over |
msg | The MAVLink message to compress the data into |
optical_flow_rad | C-struct to read the message contents from |
Definition at line 201 of file mavlink_msg_optical_flow_rad.h.
|
inlinestatic |
Get field distance from optical_flow_rad message.
Definition at line 444 of file mavlink_msg_optical_flow_rad.h.
|
inlinestatic |
Get field integrated_x from optical_flow_rad message.
Definition at line 364 of file mavlink_msg_optical_flow_rad.h.
|
inlinestatic |
Get field integrated_xgyro from optical_flow_rad message.
Definition at line 384 of file mavlink_msg_optical_flow_rad.h.
|
inlinestatic |
Get field integrated_y from optical_flow_rad message.
Definition at line 374 of file mavlink_msg_optical_flow_rad.h.
|
inlinestatic |
Get field integrated_ygyro from optical_flow_rad message.
Definition at line 394 of file mavlink_msg_optical_flow_rad.h.
|
inlinestatic |
Get field integrated_zgyro from optical_flow_rad message.
Definition at line 404 of file mavlink_msg_optical_flow_rad.h.
|
inlinestatic |
Get field integration_time_us from optical_flow_rad message.
Definition at line 354 of file mavlink_msg_optical_flow_rad.h.
|
inlinestatic |
Get field quality from optical_flow_rad message.
Definition at line 424 of file mavlink_msg_optical_flow_rad.h.
|
inlinestatic |
Get field sensor_id from optical_flow_rad message.
Definition at line 344 of file mavlink_msg_optical_flow_rad.h.
|
inlinestatic |
Get field temperature from optical_flow_rad message.
Definition at line 414 of file mavlink_msg_optical_flow_rad.h.
|
inlinestatic |
Get field time_delta_distance_us from optical_flow_rad message.
Definition at line 434 of file mavlink_msg_optical_flow_rad.h.
|
inlinestatic |
Send a optical_flow_rad message.
chan | MAVLink channel to send the message |
time_usec | Timestamp (microseconds, synced to UNIX time or since system boot) |
sensor_id | Sensor ID |
integration_time_us | Integration time in microseconds. Divide integrated_x and integrated_y by the integration time to obtain average flow. The integration time also indicates the. |
integrated_x | Flow in radians around X axis (Sensor RH rotation about the X axis induces a positive flow. Sensor linear motion along the positive Y axis induces a negative flow.) |
integrated_y | Flow in radians around Y axis (Sensor RH rotation about the Y axis induces a positive flow. Sensor linear motion along the positive X axis induces a positive flow.) |
integrated_xgyro | RH rotation around X axis (rad) |
integrated_ygyro | RH rotation around Y axis (rad) |
integrated_zgyro | RH rotation around Z axis (rad) |
temperature | Temperature * 100 in centi-degrees Celsius |
quality | Optical flow quality / confidence. 0: no valid flow, 255: maximum quality |
time_delta_distance_us | Time in microseconds since the distance was sampled. |
distance | Distance to the center of the flow field in meters. Positive value (including zero): distance known. Negative value: Unknown distance. Get field time_usec from optical_flow_rad message |
Definition at line 334 of file mavlink_msg_optical_flow_rad.h.
|
inlinestatic |
Pack a optical_flow_rad message.
system_id | ID of this system |
component_id | ID of this component (e.g. 200 for IMU) |
msg | The MAVLink message to compress the data into |
time_usec | Timestamp (microseconds, synced to UNIX time or since system boot) |
sensor_id | Sensor ID |
integration_time_us | Integration time in microseconds. Divide integrated_x and integrated_y by the integration time to obtain average flow. The integration time also indicates the. |
integrated_x | Flow in radians around X axis (Sensor RH rotation about the X axis induces a positive flow. Sensor linear motion along the positive Y axis induces a negative flow.) |
integrated_y | Flow in radians around Y axis (Sensor RH rotation about the Y axis induces a positive flow. Sensor linear motion along the positive X axis induces a positive flow.) |
integrated_xgyro | RH rotation around X axis (rad) |
integrated_ygyro | RH rotation around Y axis (rad) |
integrated_zgyro | RH rotation around Z axis (rad) |
temperature | Temperature * 100 in centi-degrees Celsius |
quality | Optical flow quality / confidence. 0: no valid flow, 255: maximum quality |
time_delta_distance_us | Time in microseconds since the distance was sampled. |
distance | Distance to the center of the flow field in meters. Positive value (including zero): distance known. Negative value: Unknown distance. |
Definition at line 68 of file mavlink_msg_optical_flow_rad.h.
|
inlinestatic |
Pack a optical_flow_rad message on a channel.
system_id | ID of this system |
component_id | ID of this component (e.g. 200 for IMU) |
chan | The MAVLink channel this message will be sent over |
msg | The MAVLink message to compress the data into |
time_usec | Timestamp (microseconds, synced to UNIX time or since system boot) |
sensor_id | Sensor ID |
integration_time_us | Integration time in microseconds. Divide integrated_x and integrated_y by the integration time to obtain average flow. The integration time also indicates the. |
integrated_x | Flow in radians around X axis (Sensor RH rotation about the X axis induces a positive flow. Sensor linear motion along the positive Y axis induces a negative flow.) |
integrated_y | Flow in radians around Y axis (Sensor RH rotation about the Y axis induces a positive flow. Sensor linear motion along the positive X axis induces a positive flow.) |
integrated_xgyro | RH rotation around X axis (rad) |
integrated_ygyro | RH rotation around Y axis (rad) |
integrated_zgyro | RH rotation around Z axis (rad) |
temperature | Temperature * 100 in centi-degrees Celsius |
quality | Optical flow quality / confidence. 0: no valid flow, 255: maximum quality |
time_delta_distance_us | Time in microseconds since the distance was sampled. |
distance | Distance to the center of the flow field in meters. Positive value (including zero): distance known. Negative value: Unknown distance. |
Definition at line 133 of file mavlink_msg_optical_flow_rad.h.