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

Guidance for the obstacle avoidance methods. More...

#include "std.h"
#include "modules/computer_vision/lib/v4l/v4l2.h"
#include "math/pprz_algebra_int.h"
+ Include dependency graph for guidance_OA.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
 

Enumerations

enum  oa_method {
  NO_OBSTACLE_AVOIDANCE , PINGPONG , POT_HEADING , POT_VEL ,
  VECTOR , SAFETYZONE , LOGICBASED
}
 

Functions

void guidance_module_enter (void)
 Entering the module (user switched to module) More...
 
void guidance_module_run (bool in_flight)
 Main guidance loop. More...
 
void OA_update (void)
 Update the controls based on a vision result. More...
 

Variables

struct opticflow_stab_t opticflow_stab
 
int8_t filter_flag
 
int8_t repulsionforce_filter_flag
 
oa_method OA_method_flag
 
int8_t opti_speed_flag
 
float vref_max
 
float ref_pitch
 
float ref_roll
 
float r_dot_new
 
float speed_pot
 

Detailed Description

Guidance for the obstacle avoidance methods.

Definition in file guidance_OA.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.

Enumeration Type Documentation

◆ oa_method

enum oa_method
Enumerator
NO_OBSTACLE_AVOIDANCE 
PINGPONG 
POT_HEADING 
POT_VEL 
VECTOR 
SAFETYZONE 
LOGICBASED 

Definition at line 52 of file guidance_OA.h.

Function Documentation

◆ guidance_module_enter()

◆ guidance_module_run()

◆ OA_update()

Variable Documentation

◆ filter_flag

int8_t filter_flag
extern

Definition at line 93 of file guidance_OA.c.

◆ OA_method_flag

oa_method OA_method_flag
extern

Definition at line 96 of file guidance_OA.c.

Referenced by CN_calculate_target(), OA_update(), and serial_update().

◆ opti_speed_flag

int8_t opti_speed_flag
extern

Definition at line 98 of file guidance_OA.c.

Referenced by OA_update().

◆ opticflow_stab

◆ r_dot_new

float r_dot_new
extern

Definition at line 107 of file guidance_OA.c.

Referenced by CN_potential_heading(), CN_potential_velocity(), and OA_update().

◆ ref_pitch

float ref_pitch
extern

Definition at line 103 of file guidance_OA.c.

◆ ref_roll

float ref_roll
extern

Definition at line 104 of file guidance_OA.c.

◆ repulsionforce_filter_flag

int8_t repulsionforce_filter_flag
extern

Definition at line 94 of file guidance_OA.c.

Referenced by CN_vector_escape_velocity(), and CN_vector_velocity().

◆ speed_pot

float speed_pot
extern

◆ vref_max

float vref_max
extern