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

Go to the source code of this file.

Data Structures

struct  SurveyHybrid
 

Functions

void nav_survey_hybrid_init (void)
 Init function. More...
 
void nav_survey_hybrid_setup_orientation (uint8_t start_wp, float orientation, uint8_t size, float sweep, float radius, float height)
 Setup polygon survey. More...
 
void nav_survey_hybrid_setup_towards (uint8_t start_wp, uint8_t second_wp, uint8_t size, float sweep, float radius, float height)
 Setup "dynamic" polygon survey with sweep orientation towards a waypoint. More...
 
bool nav_survey_hybrid_run (void)
 Run polygon hybrid survey. More...
 

Variables

struct SurveyHybrid survey_hybrid
 

Data Structure Documentation

◆ SurveyHybrid

struct SurveyHybrid

Definition at line 32 of file nav_survey_hybrid.h.

Data Fields
bool half_sweep_enabled
uint16_t sweep_back_nb
uint16_t sweep_back_nb_max
uint16_t sweep_nb
uint16_t sweep_nb_max

Function Documentation

◆ nav_survey_hybrid_init()

◆ nav_survey_hybrid_run()

◆ nav_survey_hybrid_setup_orientation()

void nav_survey_hybrid_setup_orientation ( uint8_t  start_wp,
float  orientation,
uint8_t  size,
float  sweep,
float  radius,
float  height 
)

Setup polygon survey.

Parameters
start_wpfirst waypoint/corner of the polygon
orientationangle of scan lines in degrees (CCW, east)
sizenumber of waypoints/corners used to define the polygon
sweepdistance between scan lines
radiusturn radius (<0: automatic, radius = sweep/2; 0: no turns, use straight lines only; >0: fixed radius)
heightstarting height in meters

Definition at line 360 of file nav_survey_hybrid.c.

References SurveyHybridPrivate::corners, nav_survey_hybrid_setup(), SurveyHybridPrivate::size, SURVEY_HYBRID_MAX_POLYGON_SIZE, survey_private, sweep, SurveyHybridPrivate::valid, and waypoint_get_enu_f().

Referenced by nav_survey_hybrid_setup_towards().

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

◆ nav_survey_hybrid_setup_towards()

void nav_survey_hybrid_setup_towards ( uint8_t  start_wp,
uint8_t  second_wp,
uint8_t  size,
float  sweep,
float  radius,
float  height 
)

Setup "dynamic" polygon survey with sweep orientation towards a waypoint.

Computes the sweep orientation angle from the line first-second WP.

Parameters
start_wpfirst waypoint/corner of the polygon
second_wpsecond waypoint towards which the sweep orientation is computed
sizenumber of waypoints/corners used to define the polygon
sweepdistance between scan lines, if zero uses Poly_Distance
radiusturn radius (<0: automatic, radius = sweep/2; 0: no turns, use straight lines only; >0: fixed radius)
heightstarting height in meters

Definition at line 378 of file nav_survey_hybrid.c.

References nav_survey_hybrid_setup_orientation(), survey_private, sweep, SurveyHybridPrivate::valid, waypoint_get_enu_f(), EnuCoor_f::x, and EnuCoor_f::y.

+ Here is the call graph for this function:

Variable Documentation

◆ survey_hybrid

struct SurveyHybrid survey_hybrid
extern