mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-09 22:49:53 +08:00
494e3f3ad9
When adding a test node to a makefile section, with required compilation flags, include and other options, all the files (not arch dependent files) can be compiled with a TAP compatible program, included in the standard tests of the CI servers. Not all module's XML files are converted, but a large part of the most important parts are already covered. More will be added later. The number of tested airframes (full compilation of all targets) have been reduced to speed the CI compile time but still covers the relevant architecture and boards. The main benefit is that the overall coverage is already better than before as previous test aircraft were compiling more or less the same part of the airborne code, while this new mechanism is more efficient to test modules not included in any config.
39 lines
1.5 KiB
XML
39 lines
1.5 KiB
XML
<!DOCTYPE module SYSTEM "module.dtd">
|
|
|
|
<module name="nav_survey_polygon" dir="nav">
|
|
<doc>
|
|
<description>
|
|
Survey a polygon with a fixedwing.
|
|
From Uni Stuttgart.
|
|
In the flight plan, the survey blocks call init and run functions:
|
|
1. Initialize the variables needed for the survey to start, with nav_survey_polygon_setup(first_wp, size, angle, sweep_width, shot_dist, min_rad, altitude):
|
|
- first_wp the first Waypoint of the polygon (WP_waypoint_name)
|
|
- size the number of points that make up the polygon
|
|
- angle angle in which to do the flyovers
|
|
- sweep_width distance between the sweeps
|
|
- shot_dist distance between the shots
|
|
- min_rad minimal radius when navigating
|
|
- altitude the altitude that must be reached before the flyover starts
|
|
2. Run the survey with nav_survey_polygon_run() for employing the carrot guidance algorithm
|
|
<!--
|
|
Block example:
|
|
@verbatim
|
|
<block name="Poly Survey" strip_button="Poly Survey">
|
|
<call_once fun="nav_survey_polygon_setup(first_wp, size, angle, sweep_width, shot_dist, min_rad, altitude)"/>
|
|
<call fun="nav_survey_polygon_run()"/>
|
|
</block>
|
|
@endverbatim
|
|
-->
|
|
</description>
|
|
</doc>
|
|
<header>
|
|
<file name="nav_survey_polygon.h"/>
|
|
</header>
|
|
<makefile target="ap|sim|nps">
|
|
<file name="nav_survey_polygon.c"/>
|
|
<test firmware="fixedwing">
|
|
<define name="CTRL_TYPE_H" value="firmwares/fixedwing/guidance/guidance_v.h" type="string"/>
|
|
</test>
|
|
</makefile>
|
|
</module>
|