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

Obstacle avoidance methods. More...

+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void serial_init (void)
 
void serial_update (void)
 
void serial_start (void)
 
void setAnglesMeasurements (float *anglesMeasurements, float *centersensorRad, float *fieldOfViewRad, uint16_t *size_matrix_local)
 
void pingpong_euler (float *distances_hor, float *horizontalAnglesMeasurements, int horizontalAmountOfMeasurements, float attitude_reference_pitch, float attitude_reference_roll, float dist_treshold)
 
void matrix_2_pingpong (float *distancesMeters, uint16_t *size_matrix, float *distances_hor)
 
void CN_matrix_Kalman_filter (void)
 
void CN_matrix_butterworth (void)
 
void CN_calculate_target (void)
 
void CN_potential_heading (void)
 
void CN_potential_velocity (void)
 
void CN_vector_velocity (void)
 
void CN_vector_escape_velocity (void)
 
void CN_escape_velocity (void)
 

Variables

float F1
 
float F2
 
float Cfreq
 
float Ko
 
float Kg
 
float Dist_offset
 
int8_t dis_treshold
 
float dx_ref
 
float dy_ref
 
float K_goal
 
float K_obst
 
float b_damp
 
float c1_oa
 
float c2_oa
 
float c3_oa
 
float c4_oa
 
float c5_oa
 
float kv
 
float epsilon
 

Detailed Description

Obstacle avoidance methods.

Definition in file obstacle_avoidance.h.

Function Documentation

◆ CN_calculate_target()

void CN_calculate_target ( void  )

Definition at line 321 of file obstacle_avoidance.c.

References current_pos, dx_ref, dy_ref, heading_goal_f, init_target, OA_method_flag, pos_diff, FloatEulers::psi, stateGetNedToBodyEulers_f(), stateGetPositionNed_f(), target, waypoint_rot, FloatVect2::x, NedCoor_f::x, FloatVect2::y, and NedCoor_f::y.

Referenced by serial_update().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ CN_escape_velocity()

void CN_escape_velocity ( void  )

◆ CN_matrix_butterworth()

void CN_matrix_butterworth ( void  )

Definition at line 295 of file obstacle_avoidance.c.

References butter_old, READimageBuffer_old, and size_matrix.

◆ CN_matrix_Kalman_filter()

void CN_matrix_Kalman_filter ( void  )

Definition at line 263 of file obstacle_avoidance.c.

References A_kal, H_kal, Pest_new, Q_kal, R_kal, size_matrix, and Xest_new.

◆ CN_potential_heading()

void CN_potential_heading ( void  )

◆ CN_potential_velocity()

void CN_potential_velocity ( void  )

◆ CN_vector_escape_velocity()

◆ CN_vector_velocity()

◆ matrix_2_pingpong()

void matrix_2_pingpong ( float *  distancesMeters,
uint16_t size_matrix,
float *  distances_hor 
)

Definition at line 237 of file obstacle_avoidance.c.

References AVOIDANCES_DISTANCES_HOR_COUNT.

Referenced by serial_update().

+ Here is the caller graph for this function:

◆ pingpong_euler()

void pingpong_euler ( float *  distances_hor,
float *  horizontalAnglesMeasurements,
int  horizontalAmountOfMeasurements,
float  attitude_reference_pitch,
float  attitude_reference_roll,
float  dist_treshold 
)

Definition at line 357 of file obstacle_avoidance.c.

References ref_pitch, and ref_roll.

Referenced by serial_update().

+ Here is the caller graph for this function:

◆ serial_init()

◆ serial_start()

void serial_start ( void  )

Definition at line 159 of file obstacle_avoidance.c.

◆ serial_update()

◆ setAnglesMeasurements()

void setAnglesMeasurements ( float *  anglesMeasurements,
float *  centersensorRad,
float *  fieldOfViewRad,
uint16_t size_matrix_local 
)

Definition at line 164 of file obstacle_avoidance.c.

Referenced by serial_update().

+ Here is the caller graph for this function:

Variable Documentation

◆ b_damp

float b_damp
extern

Definition at line 110 of file obstacle_avoidance.c.

Referenced by CN_potential_heading(), and CN_potential_velocity().

◆ c1_oa

float c1_oa
extern

Definition at line 113 of file obstacle_avoidance.c.

Referenced by CN_potential_heading(), and CN_potential_velocity().

◆ c2_oa

float c2_oa
extern

Definition at line 114 of file obstacle_avoidance.c.

Referenced by CN_potential_heading(), and CN_potential_velocity().

◆ c3_oa

float c3_oa
extern

Definition at line 115 of file obstacle_avoidance.c.

Referenced by CN_potential_heading(), and CN_potential_velocity().

◆ c4_oa

float c4_oa
extern

Definition at line 116 of file obstacle_avoidance.c.

Referenced by CN_potential_heading(), and CN_potential_velocity().

◆ c5_oa

float c5_oa
extern

Definition at line 117 of file obstacle_avoidance.c.

◆ Cfreq

float Cfreq
extern

Definition at line 101 of file obstacle_avoidance.c.

Referenced by CN_vector_escape_velocity(), and CN_vector_velocity().

◆ dis_treshold

int8_t dis_treshold
extern

Definition at line 105 of file obstacle_avoidance.c.

◆ Dist_offset

float Dist_offset
extern

Definition at line 104 of file obstacle_avoidance.c.

Referenced by CN_vector_escape_velocity(), and CN_vector_velocity().

◆ dx_ref

float dx_ref
extern

Definition at line 80 of file obstacle_avoidance.c.

Referenced by CN_calculate_target().

◆ dy_ref

float dy_ref
extern

Definition at line 81 of file obstacle_avoidance.c.

Referenced by CN_calculate_target().

◆ epsilon

◆ F1

float F1
extern

Definition at line 99 of file obstacle_avoidance.c.

Referenced by CN_vector_escape_velocity(), and CN_vector_velocity().

◆ F2

float F2
extern

Definition at line 100 of file obstacle_avoidance.c.

Referenced by CN_vector_escape_velocity(), and CN_vector_velocity().

◆ K_goal

float K_goal
extern

Definition at line 111 of file obstacle_avoidance.c.

Referenced by CN_potential_heading(), and CN_potential_velocity().

◆ K_obst

float K_obst
extern

Definition at line 112 of file obstacle_avoidance.c.

Referenced by CN_potential_heading(), and CN_potential_velocity().

◆ Kg

float Kg
extern

Definition at line 103 of file obstacle_avoidance.c.

Referenced by CN_vector_escape_velocity(), and CN_vector_velocity().

◆ Ko

float Ko
extern

Definition at line 102 of file obstacle_avoidance.c.

Referenced by CN_vector_escape_velocity(), and CN_vector_velocity().

◆ kv

float kv
extern

Definition at line 118 of file obstacle_avoidance.c.

Referenced by CN_potential_heading(), and CN_potential_velocity().