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
Demo Control Module

Module XML file: ctrl_module_demo.xml

Only for rotorcraft firmware. Simple rate controler as example on how to integrate write and call your own controller in a module.

Example for airframe file

1 <modules>
2  <load name="ctrl_module_demo.xml"/>
3 </modules>

Files

Header Files

The following headers are automatically included in modules.h

Source Files

Raw ctrl_module_demo.xml file:

<!DOCTYPE module SYSTEM "module.dtd">
<module name="ctrl_module_demo" dir="ctrl">
<doc>
<description>
Demo Control Module.
Only for rotorcraft firmware.
Simple rate controler as example on how to integrate write and call your own controller in a module.
</description>
</doc>
<settings>
<dl_settings>
<dl_settings NAME="CtrlModDemo">
<dl_setting var="ctrl_module_demo_pr_ff_gain" min="0" step="0.01" max="1" module="ctrl/ctrl_module_demo" shortname="pr_ff"/>
<dl_setting var="ctrl_module_demo_pr_d_gain" min="0" step="0.01" max="1" module="ctrl/ctrl_module_demo" shortname="pr_d"/>
<dl_setting var="ctrl_module_demo_y_ff_gain" min="0" step="0.01" max="1" module="ctrl/ctrl_module_demo" shortname="y_ff"/>
<dl_setting var="ctrl_module_demo_y_d_gain" min="0" step="0.01" max="1" module="ctrl/ctrl_module_demo" shortname="y_d"/>
</dl_settings>
</dl_settings>
</settings>
<header>
<file name="ctrl_module_demo.h"/>
</header>
<makefile>
<file name="ctrl_module_demo.c"/>
</makefile>
</module>