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

Go to the source code of this file.

Functions

void nav_survey_poly_setup (uint8_t FirstWP, uint8_t Size, float Sweep, float Orientation)
 Setup polygon survey. More...
 
void nav_survey_poly_setup_towards (uint8_t FirstWP, uint8_t Size, float Sweep, int SecondWP)
 Setup "dynamic" polygon survey with sweep orientation towards a waypoint. More...
 
bool nav_survey_poly_run (void)
 Run polygon survey. More...
 

Variables

uint8_t Poly_Size
 
float Poly_Distance
 
uint16_t PolySurveySweepNum
 
uint16_t PolySurveySweepBackNum
 
bool Half_Sweep_Enabled
 

Function Documentation

◆ nav_survey_poly_run()

◆ nav_survey_poly_setup()

void nav_survey_poly_setup ( uint8_t  FirstWP,
uint8_t  Size,
float  Sweep,
float  Orientation 
)

Setup polygon survey.

Parameters
FirstWPfirst waypoint/corner of the polygon
Sizenumber of waypoints/corners used to define the polygon
Sweepdistance between scan lines
Orientationangle of scan lines in degrees (CCW, east)

Definition at line 123 of file nav_survey_poly_rotorcraft.c.

References Line::b, CSurveyStatus, dSweep, EdgeMaxY, EdgeMinY, Edges, Entry, EvaluateLineForX(), FindInterceptOfTwoLines(), Init, LINE_STOP_FUNCTION, Line::m, MaxFloat, MaxPolygonSize, MaxY, nav_set_heading_deg(), NavVerticalAltitudeMode, Poly_Distance, POLYSURVEY_ENTRY_DISTANCE, PolySurveySweepBackNum, PolySurveySweepNum, SmallestCorner, SurveyEntry, SurveyEntryWP, SurveyFromWP, SurveySize, SurveyTheta, SurveyToWP, TranslateAndRotateFromWorld(), waypoints, EnuCoor_f::x, point::x, Point2D::x, EnuCoor_f::y, point::y, and Point2D::y.

Referenced by nav_survey_poly_setup_towards().

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

◆ nav_survey_poly_setup_towards()

void nav_survey_poly_setup_towards ( uint8_t  FirstWP,
uint8_t  Size,
float  Sweep,
int  SecondWP 
)

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

Computes the sweep orientation angle from the line FirstWP-SecondWP. If you pass zero for Size and/or Sweep it will use the global Poly_Size and Poly_Distance variables respectively (which can be changed via telemetry/settings).

Parameters
FirstWPfirst waypoint/corner of the polygon
Sizenumber of waypoints/corners used to define the polygon, if zero uses Poly_Size
Sweepdistance between scan lines, if zero uses Poly_Distance
SecondWPsecond waypoint towards which the sweep orientation is computed

Definition at line 63 of file nav_survey_poly_rotorcraft.c.

References nav_survey_poly_setup(), Poly_Distance, Poly_Size, Sweep, waypoints, point::x, and point::y.

+ Here is the call graph for this function:

Variable Documentation

◆ Half_Sweep_Enabled

bool Half_Sweep_Enabled
extern

Definition at line 78 of file nav_survey_poly_osam.c.

Referenced by nav_survey_poly_osam_run(), and nav_survey_poly_run().

◆ Poly_Distance

float Poly_Distance
extern

◆ Poly_Size

uint8_t Poly_Size
extern

◆ PolySurveySweepBackNum

uint16_t PolySurveySweepBackNum
extern

◆ PolySurveySweepNum