Paparazzi UAS  v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
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

◆ mavlink_optical_flow

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 distance Distance measured without compensation in meters.
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].
int32_t flow_x Flow in pixels in x-sensor direction.
int32_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)

◆ mavlink_optical_flow_rad

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 62 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

◆ mavlink_heartbeat

struct mavlink_heartbeat

Definition at line 96 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

◆ px4flow_downlink()

◆ px4flow_init()

Variable Documentation

◆ heartbeat

struct mavlink_heartbeat heartbeat
extern

Definition at line 1 of file px4flow.c.

Referenced by jevois_mavlink_event(), and px4flow_init().

◆ optical_flow

struct mavlink_optical_flow optical_flow
extern

Definition at line 1 of file px4flow.c.

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

◆ optical_flow_rad

struct mavlink_optical_flow_rad optical_flow_rad
extern

Definition at line 1 of file px4flow.c.

Referenced by px4flow_init().

◆ px4flow_compensate_rotation

bool px4flow_compensate_rotation
extern

Definition at line 71 of file px4flow.c.

Referenced by decode_optical_flow_msg(), and px4flow_init().

◆ px4flow_stddev

float px4flow_stddev
extern

Definition at line 74 of file px4flow.c.

Referenced by decode_optical_flow_msg(), and px4flow_init().

◆ px4flow_update_agl

bool px4flow_update_agl
extern

Definition at line 68 of file px4flow.c.

Referenced by decode_optical_flow_msg(), and px4flow_init().