Paparazzi UAS  v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
guidance_opticflow_hover.h File Reference

Optical-flow based control for Linux based systems. More...

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

Go to the source code of this file.

Data Structures

struct  opticflow_stab_t
 

Functions

void guidance_opticflow_hover_init (void)
 Initialization of horizontal guidance module. More...
 
void guidance_module_enter (void)
 Entering the module (user switched to module) More...
 
void guidance_module_run (bool in_flight)
 Main guidance loop. More...
 

Variables

struct opticflow_stab_t opticflow_stab
 

Detailed Description

Optical-flow based control for Linux based systems.

Control loops for optic flow based hovering. Computes setpoint for the lower level attitude stabilization to control horizontal velocity.

Definition in file guidance_opticflow_hover.h.


Data Structure Documentation

◆ opticflow_stab_t

struct opticflow_stab_t

Definition at line 37 of file guidance_opticflow_hover.h.

+ Collaboration diagram for opticflow_stab_t:
Data Fields
struct Int32Eulers cmd The commands that are send to the hover loop.
float desired_vx The desired velocity in the x direction (cm/s)
float desired_vy The desired velocity in the y direction (cm/s)
float err_vx_int The integrated velocity error in x direction (m/s)
float err_vy_int The integrated velocity error in y direction (m/s)
int32_t phi_igain The roll I gain on the err_vx_int.
int32_t phi_pgain The roll P gain on the err_vx.
int32_t theta_igain The pitch I gain on the err_vy_int.
int32_t theta_pgain The pitch P gain on the err_vy.

Function Documentation

◆ guidance_module_enter()

void guidance_module_enter ( void  )

Entering the module (user switched to module)

Entering the module (user switched to module)

Definition at line 77 of file ctrl_module_innerloop_demo.c.

◆ guidance_module_run()

void guidance_module_run ( bool  in_flight)

Main guidance loop.

Parameters
[in]in_flightWhether we are in flight or not

Definition at line 82 of file ctrl_module_innerloop_demo.c.

◆ guidance_opticflow_hover_init()

void guidance_opticflow_hover_init ( void  )

Initialization of horizontal guidance module.

Definition at line 105 of file guidance_opticflow_hover.c.

References stabilization_opticflow_vel_cb(), velocity_est_ev, and VISION_VELOCITY_ESTIMATE_ID.

+ Here is the call graph for this function:

Variable Documentation

◆ opticflow_stab

struct opticflow_stab_t opticflow_stab
extern

Definition at line 87 of file guidance_opticflow_hover.c.