Standard navigation patterns and flight plan handling for rotorcraft
No detailed description...
Example for airframe file
Add to your firmware section:
1 <module name="nav_basic_rotorcraft"/>
Auto-loaded modules
The following modules are automatically loaded (just as if you had added them in the airframe file)
- module__guidancerotorcraft
Module functions
Init Functions
These initialization functions are called once on startup.
Files
Header Files
The following headers are automatically included in modules.h
Source Files
Raw nav_basic_rotorcraft.xml file:
<!DOCTYPE module SYSTEM "module.dtd">
<module name="nav_basic_rotorcraft" dir="nav">
<doc>
<description>
Standard navigation patterns and flight plan handling for rotorcraft
</description>
</doc>
<settings>
<dl_settings>
<dl_settings NAME="NAV">
<dl_setting var="flight_altitude" MIN="0" STEP="0.1" MAX="400" module="navigation" unit="m" handler="SetFlightAltitude"/>
<dl_setting var="nav_heading" MIN="0" STEP="1" MAX="360" unit="1/2^12r" alt_unit="deg" alt_unit_coef="0.0139882"/>
<dl_setting var="nav_radius" MIN="-50" STEP="0.1" MAX="50" unit="m"/>
<dl_setting var="nav_climb_vspeed" MIN="0" STEP="0.1" MAX="10.0" unit="m/s" param="NAV_CLIMB_VSPEED"/>
<dl_setting var="nav_descend_vspeed" MIN="-10.0" STEP="0.1" MAX="0.0" unit="m/s" param="NAV_DESCEND_VSPEED"/>
</dl_settings>
</dl_settings>
</settings>
<autoload name="guidance" type="rotorcraft"/>
<header>
<file name="navigation.h" dir="firmwares/rotorcraft"/>
</header>
<init fun="nav_init()"/>
<makefile target="ap|nps|hitl" firmware="rotorcraft">
<file name="navigation.c" dir="$(SRC_FIRMWARE)"/>
<file name="common_flight_plan.c" dir="subsystems/navigation"/>
<file name="waypoints.c" dir="subsystems/navigation"/>
<define name="USE_NAVIGATION"/>
</makefile>
</module>