Paparazzi UAS  v5.14.0_stable-0-g3f680d1
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

Functions

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

Variables

bool px4flow_update_agl
 
bool px4flow_compensate_rotation
 
float px4flow_stddev
 
struct mavlink_heartbeat heartbeat
 
struct mavlink_optical_flow optical_flow
 
struct mavlink_optical_flow_rad optical_flow_rad
 

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 guarantee alignment

Definition at line 45 of file px4flow.h.

Data Fields
float flow_comp_m_x Flow in meters in x-sensor direction, angular-speed compensated [meters/sec].
float flow_comp_m_y Flow in meters in y-sensor direction, angular-speed compensated [meters/sec].
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)
struct mavlink_optical_flow_rad

Mavlink optical flow rad structure.

Using MAVLINK v1.0 generated code: Message ID 106 Fields are ordered to guarantee alignment

Definition at line 61 of file px4flow.h.

Data Fields
float distance
float integrated_x
float integrated_xgyro
float integrated_y
float integrated_ygyro
float integrated_zgyro
uint32_t integration_time_us
uint8_t quality
uint8_t sensor_id
int16_t temperature
uint32_t time_delta_distance_us
uint64_t time_usec
struct mavlink_heartbeat

Definition at line 95 of file px4flow.h.

Data Fields
uint8_t autopilot
uint8_t base_mode
uint32_t custom_mode
uint8_t mavlink_version
uint8_t system_status
uint8_t type

Function Documentation

Variable Documentation

struct mavlink_heartbeat heartbeat

Definition at line 42 of file px4flow.c.

Referenced by jevois_mavlink_event(), and px4flow_init().

struct mavlink_optical_flow optical_flow

Definition at line 43 of file px4flow.c.

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

struct mavlink_optical_flow_rad optical_flow_rad

Definition at line 44 of file px4flow.c.

Referenced by px4flow_init().

bool px4flow_compensate_rotation

Definition at line 71 of file px4flow.c.

Referenced by decode_optical_flow_msg(), and px4flow_init().

float px4flow_stddev

Definition at line 74 of file px4flow.c.

Referenced by decode_optical_flow_msg(), and px4flow_init().

bool px4flow_update_agl

Definition at line 68 of file px4flow.c.

Referenced by decode_optical_flow_msg(), and px4flow_init().