Paparazzi UAS  v5.10_stable-5-g83a0da5-dirty
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
nav_survey_poly_rotorcraft module

Polygon survey for rotorcraft.

You can use: nav_survey_poly_rotorcraft_setup function for static definitions or nav_survey_poly_rotorcraft_setup_towards for a more flexible setup

Example for airframe file

Add to your firmware section: This example contains all possible configuration options, not all of them are mandatory!

1 <module name="nav_survey_poly_rotorcraft">
2  <define name="POLYSURVEY_MAX_POLYGONSIZE" value="10" />
3  <define name="POLYSURVEY_DEFAULT_SIZE" value="5" />
4  <define name="POLYSURVEY_DEFAULT_DISTANCE" value="120" />
5  <define name="POLYSURVEY_ENTRY_DISTANCE" value="4" />
6 </module>

Module configuration options

Define Options

  • name: POLYSURVEY_MAX_POLYGONSIZE value: 10
    Description: max waypoints usable in polygon survey
  • name: POLYSURVEY_DEFAULT_SIZE value: 5
    Description: default number of waypoints/corners used in polygon survey. Can be changed by telemetry
  • name: POLYSURVEY_DEFAULT_DISTANCE value: 120
    Description: default distance in m between lines. Can be changed by telemetry
  • name: POLYSURVEY_ENTRY_DISTANCE value: 4
    Description: distante between the polygon border and first line.If 0 the distance well be equal to half sweep

Files

Header Files

The following headers are automatically included in modules.h

Source Files

Raw nav_survey_poly_rotorcraft.xml file:

<!DOCTYPE module SYSTEM "module.dtd">
<module name="nav_survey_poly" dir="nav">
<doc>
<description>
Polygon survey for rotorcraft.
You can use:
* nav_survey_poly_rotorcraft_setup function for static definitions or
* nav_survey_poly_rotorcraft_setup_towards for a more flexible setup
</description>
<define name="POLYSURVEY_MAX_POLYGONSIZE" value="10" description="max waypoints usable in polygon survey"/>
<define name="POLYSURVEY_DEFAULT_SIZE" value="5" description="default number of waypoints/corners used in polygon survey. Can be changed by telemetry"/>
<define name="POLYSURVEY_DEFAULT_DISTANCE" value="120" description="default distance in m between lines. Can be changed by telemetry"/>
<define name="POLYSURVEY_ENTRY_DISTANCE" value="4" description="distante between the polygon border and first line.If 0 the distance well be equal to half sweep"/>
</doc>
<settings>
<dl_settings>
<dl_settings NAME="P_Survey">
<dl_setting min="0" max="20" step="1" var="Poly_Size" type="uint8_t" shortname="Size" module="modules/nav/nav_survey_poly_rotorcraft"/>
<dl_setting min="0" max="500" step="1" var="Poly_Distance" type="float" shortname="Sweep" module="modules/nav/nav_survey_poly_rotorcraft"/>
</dl_settings>
</dl_settings>
</settings>
<header>
<file name="nav_survey_poly_rotorcraft.h"/>
</header>
<makefile target="ap|nps">
<file name="nav_survey_poly_rotorcraft.c"/>
</makefile>
</module>