Paparazzi UAS  v5.8.2_stable-0-g6260b7c
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
NAV AIRSPEED

Module XML file: tune_airspeed.xml

Navigation Airspeeds to be called from the flightplan. The included settings allow tuning of your different airspeeds In your flightplans you call the airspeeds with set var=v_ctl_auto_airspeed_setpoint value=nav_airspeed_nominal_setting set var=v_ctl_auto_airspeed_setpoint value=nav_airspeed_tracking_setting set var=v_ctl_auto_airspeed_setpoint value=nav_airspeed_landing_setting attitude pitch=DegOfRad(nav_takeoff_pitch_setting) ...

Example for airframe file

This example contains all possible configuration options, not all of them are mandatory!

1 <modules>
2  <load name="tune_airspeed.xml">
3  <define name="NOMINAL_AIRSPEED" value="15" />
4  <define name="TRACKING_AIRSPEED" value="20" />
5  <define name="LANDING_AIRSPEED" value="12" />
6  </load>
7 </modules>

Module configuration options

Define Options

  • name: NOMINAL_AIRSPEED value: 15
    Description: m/s (required))
  • name: TRACKING_AIRSPEED value: 20
    Description: m/s (default: (1.25f * NOMINAL_AIRSPEED))
  • name: LANDING_AIRSPEED value: 12
    Description: m/s (default: (0.8f * NOMINAL_AIRSPEED)

Files

Header Files

The following headers are automatically included in modules.h

Source Files

Raw tune_airspeed.xml file:

<!DOCTYPE module SYSTEM "module.dtd">
<module name="nav">
<doc>
<description>NAV AIRSPEED.
Navigation Airspeeds to be called from the flightplan.
The included settings allow tuning of your different airspeeds
In your flightplans you call the airspeeds with
set var=v_ctl_auto_airspeed_setpoint value=nav_airspeed_nominal_setting
set var=v_ctl_auto_airspeed_setpoint value=nav_airspeed_tracking_setting
set var=v_ctl_auto_airspeed_setpoint value=nav_airspeed_landing_setting
attitude pitch=DegOfRad(nav_takeoff_pitch_setting) ...
</description>
<define name="NOMINAL_AIRSPEED" value="15" description="m/s (required))"/>
<define name="TRACKING_AIRSPEED" value="20" description="m/s (default: (1.25f * NOMINAL_AIRSPEED))"/>
<define name="LANDING_AIRSPEED" value="12" description="m/s (default: (0.8f * NOMINAL_AIRSPEED)"/>
</doc>
<settings>
<dl_settings name="control">
<dl_settings name="airspeed">
<dl_setting max="50" min="5" step="0.5" var="nav_airspeed_nominal_setting" shortname="nominal"/>
<dl_setting max="50" min="5" step="0.5" var="nav_airspeed_tracking_setting" shortname="tracking"/>
<dl_setting max="50" min="5" step="0.5" var="nav_airspeed_landing_setting" shortname="landing"/>
<dl_setting max="80" min="-10" step="0.5" var="nav_takeoff_pitch_setting" shortname="takeoff_pitch" unit="rad" alt_unit="deg" />
</dl_settings>
</dl_settings>
</settings>
<header>
<file name="nav_airspeed.h"/>
</header>
<makefile>
<file name="nav_airspeed.c"/>
</makefile>
</module>