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
opticflow_module.h File Reference

optical-flow calculation for Parrot Drones More...

+ Include dependency graph for opticflow_module.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void opticflow_module_init (void)
 Initialize the optical flow module for the bottom camera. More...
 
void opticflow_module_run (void)
 Update the optical flow state for the calculation thread and update the stabilization loops with the newest result. More...
 
void opticflow_module_start (void)
 Start the optical flow calculation. More...
 
void opticflow_module_stop (void)
 Stop the optical flow calculation. More...
 

Variables

struct opticflow_t opticflow
 Opticflow calculations. More...
 

Detailed Description

optical-flow calculation for Parrot Drones

Definition in file opticflow_module.h.

Function Documentation

void opticflow_module_init ( void  )

Initialize the optical flow module for the bottom camera.

Definition at line 108 of file opticflow_module.c.

References DefaultPeriodic, FALSE, opticflow_agl_cb(), OPTICFLOW_AGL_ID, opticflow_calc_init(), OPTICFLOW_DEVICE, OPTICFLOW_DEVICE_BUFFERS, OPTICFLOW_DEVICE_SIZE, PRINT_CONFIG_MSG(), register_periodic_telemetry(), v4l2_init(), and v4l2_init_subdev().

+ Here is the call graph for this function:

void opticflow_module_run ( void  )

Update the optical flow state for the calculation thread and update the stabilization loops with the newest result.

Definition at line 149 of file opticflow_module.c.

References FALSE, get_sys_time_usec(), OPTICFLOW_SENDER_ID, FloatEulers::phi, stateGetNedToBodyEulers_f(), and FloatEulers::theta.

+ Here is the call graph for this function:

void opticflow_module_start ( void  )

Start the optical flow calculation.

Definition at line 184 of file opticflow_module.c.

References opticflow_module_calc().

+ Here is the call graph for this function:

void opticflow_module_stop ( void  )

Stop the optical flow calculation.

Definition at line 202 of file opticflow_module.c.

References v4l2_stop_capture().

+ Here is the call graph for this function:

Variable Documentation

struct opticflow_t opticflow

Opticflow calculations.

Definition at line 71 of file opticflow_module.c.