Paparazzi UAS  v5.8.2_stable-0-g6260b7c
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
px4flow.h File Reference

driver for the optical flow sensor PX4FLOW More...

#include "std.h"
+ Include dependency graph for px4flow.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures


void px4flow_init (void)
 Initialization function. More...
void px4flow_downlink (void)
 Downlink message for debug. More...


struct mavlink_optical_flow optical_flow
bool_t optical_flow_available

Detailed Description

driver for the optical flow sensor PX4FLOW

Sensor from the PIXHAWK project

Definition in file px4flow.h.

Data Structure Documentation

struct mavlink_optical_flow

Mavlink optical flow structure.

Using MAVLINK v1.0 generated code: Message ID 100 Fields are ordered to guarentee alignment

Definition at line 39 of file px4flow.h.

Data Fields
float flow_comp_m_x Flow in meters in x-sensor direction, angular-speed compensated.
float flow_comp_m_y Flow in meters in y-sensor direction, angular-speed compensated.
int16_t flow_x Flow in pixels in x-sensor direction.
int16_t flow_y Flow in pixels in y-sensor direction.
float ground_distance Ground distance in meters. Positive value: distance known. Negative value: Unknown distance.
uint8_t quality Optical flow quality / confidence. 0: bad, 255: maximum quality.
uint8_t sensor_id Sensor ID.
uint64_t time_usec Timestamp (UNIX)

Function Documentation

void px4flow_init ( void  )

Variable Documentation

struct mavlink_optical_flow optical_flow

Definition at line 33 of file px4flow.c.

Referenced by decode_optical_flow_msg(), px4flow_downlink(), and px4flow_init().

bool_t optical_flow_available

Definition at line 34 of file px4flow.c.

Referenced by decode_optical_flow_msg(), and px4flow_init().