Paparazzi UAS  v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
optical_flow_hover.h File Reference
#include "std.h"
+ Include dependency graph for optical_flow_hover.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define GUIDANCE_H_MODE_MODULE_SETTING   GUIDANCE_H_MODE_MODULE
 
#define GUIDANCE_V_MODE_MODULE_SETTING   GUIDANCE_V_MODE_MODULE
 

Functions

void optical_flow_hover_init (void)
 
void guidance_v_module_init (void)
 
void guidance_v_module_enter (void)
 Entering the vertical module (user switched to module) More...
 
void guidance_v_module_run (bool in_flight)
 
void guidance_h_module_init (void)
 Initialization of horizontal guidance module. More...
 
void guidance_h_module_enter (void)
 Entering the horizontal module (user switched to module) More...
 
void guidance_h_module_run (bool in_flight)
 Main guidance loop. More...
 
void guidance_h_module_read_rc (void)
 Read the RC commands. More...
 

Variables

bool oscphi
 
bool osctheta
 
bool derotated
 
bool cov_method
 method to calculate the covariance: between thrust and div / angle and flow (0) or div and div past / flow and past flow(1) More...
 
uint8_t hover_method
 Method used to hover 0 = All axis after each other; 1 = all axis at the same time; 2 = vertical only, use relation to set horizontal. More...
 
struct OpticalFlowHoverControl of_hover_ctrl_X
 
struct OpticalFlowHoverControl of_hover_ctrl_Y
 
struct OpticalFlowHoverControl of_hover_ctrl_Z
 

Macro Definition Documentation

◆ GUIDANCE_H_MODE_MODULE_SETTING

#define GUIDANCE_H_MODE_MODULE_SETTING   GUIDANCE_H_MODE_MODULE

Definition at line 29 of file optical_flow_hover.h.

◆ GUIDANCE_V_MODE_MODULE_SETTING

#define GUIDANCE_V_MODE_MODULE_SETTING   GUIDANCE_V_MODE_MODULE

Definition at line 32 of file optical_flow_hover.h.

Function Documentation

◆ guidance_h_module_enter()

void guidance_h_module_enter ( void  )

Entering the horizontal module (user switched to module)

Entering the horizontal module (user switched to module)

Definition at line 85 of file ctrl_module_innerloop_demo.c.

◆ guidance_h_module_init()

void guidance_h_module_init ( void  )

Initialization of horizontal guidance module.

Definition at line 80 of file ctrl_module_innerloop_demo.c.

◆ guidance_h_module_read_rc()

void guidance_h_module_read_rc ( void  )

Read the RC commands.

Definition at line 90 of file ctrl_module_innerloop_demo.c.

◆ guidance_h_module_run()

void guidance_h_module_run ( bool  in_flight)

Main guidance loop.

Parameters
[in]in_flightWhether we are in flight or not

Definition at line 99 of file ctrl_module_innerloop_demo.c.

◆ guidance_v_module_enter()

void guidance_v_module_enter ( void  )

Entering the vertical module (user switched to module)

Entering the vertical module (user switched to module)

Definition at line 111 of file ctrl_module_innerloop_demo.c.

◆ guidance_v_module_init()

void guidance_v_module_init ( void  )

Definition at line 105 of file ctrl_module_innerloop_demo.c.

◆ guidance_v_module_run()

void guidance_v_module_run ( bool  in_flight)

Definition at line 656 of file optical_flow_hover.c.

◆ optical_flow_hover_init()

Variable Documentation

◆ cov_method

bool cov_method

method to calculate the covariance: between thrust and div / angle and flow (0) or div and div past / flow and past flow(1)

Definition at line 213 of file optical_flow_hover.c.

Referenced by horizontal_ctrl_module_run(), optical_flow_hover_init(), set_cov_div(), set_cov_flow(), and vertical_ctrl_module_run().

◆ derotated

bool derotated

Definition at line 212 of file optical_flow_hover.c.

Referenced by ofh_optical_flow_cb().

◆ hover_method

uint8_t hover_method

Method used to hover 0 = All axis after each other; 1 = all axis at the same time; 2 = vertical only, use relation to set horizontal.

Definition at line 214 of file optical_flow_hover.c.

Referenced by horizontal_ctrl_module_run(), optical_flow_hover_init(), reset_horizontal_vars(), and vertical_ctrl_module_run().

◆ of_hover_ctrl_X

◆ of_hover_ctrl_Y

◆ of_hover_ctrl_Z

◆ oscphi

bool oscphi

Definition at line 210 of file optical_flow_hover.c.

Referenced by horizontal_ctrl_module_run(), and optical_flow_hover_init().

◆ osctheta

bool osctheta

Definition at line 211 of file optical_flow_hover.c.

Referenced by horizontal_ctrl_module_run(), and optical_flow_hover_init().