Paparazzi UAS  v5.2.2_stable-0-gd6b9f29
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
nav_survey_zamboni.h File Reference

Zamboni pattern survey for fixedwings. More...

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

Go to the source code of this file.

Data Structures

struct  ZamboniSurvey
 

Enumerations

enum  z_survey_stage {
  Z_ERR, Z_ENTRY, Z_SEG, Z_TURN1,
  Z_RET, Z_TURN2
}
 

Functions

bool_t nav_survey_zamboni_setup (uint8_t center_wp, uint8_t dir_wp, float sweep_length, float sweep_spacing, int sweep_lines, float altitude)
 initializes the variables needed for the survey to start. More...
 
bool_t nav_survey_zamboni_run (void)
 main navigation routine. More...
 

Detailed Description

Zamboni pattern survey for fixedwings.

Definition in file nav_survey_zamboni.h.

Enumeration Type Documentation

Enumerator
Z_ERR 
Z_ENTRY 
Z_SEG 
Z_TURN1 
Z_RET 
Z_TURN2 

Definition at line 34 of file nav_survey_zamboni.h.

Function Documentation

bool_t nav_survey_zamboni_setup ( uint8_t  center_wp,
uint8_t  dir_wp,
float  sweep_length,
float  sweep_spacing,
int  sweep_lines,
float  altitude 
)

initializes the variables needed for the survey to start.

Parameters
center_wpthe waypoint defining the center of the survey-rectangle
dir_wpthe waypoint defining the orientation of the survey-rectangle
sweep_lengththe length of the survey-rectangle
sweep_spacingdistance between the sweeps
sweep_linesnumber of sweep_lines to fly
altitudethe altitude that must be reached before the flyover starts

Definition at line 57 of file nav_survey_zamboni.c.

References ZamboniSurvey::altitude, ZamboniSurvey::current_laps, FALSE, ZamboniSurvey::flight_angle, FLOAT_VECT2_NORMALIZE, NavVerticalAltitudeMode, NavVerticalAutoThrottleMode, ZamboniSurvey::pre_leave_angle, ZamboniSurvey::ret_end, ZamboniSurvey::ret_start, ZamboniSurvey::return_angle, ZamboniSurvey::seg_end, ZamboniSurvey::seg_start, ZamboniSurvey::stage, ZamboniSurvey::sweep_width, ZamboniSurvey::total_laps, ZamboniSurvey::turn_center1, ZamboniSurvey::turn_center2, ZamboniSurvey::turnradius1, ZamboniSurvey::turnradius2, VECT2_COPY, VECT2_DIFF, VECT2_SMUL, VECT2_SUM, waypoints, ZamboniSurvey::wp_center, ZamboniSurvey::wp_dir, FloatVect2::x, FloatVect2::y, Z_ENTRY, and zs.