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.
Example for airframe file
Add to your firmware section:
1 <module name="ctrl_module_innerloop_demo"/>
Files
Header Files
The following headers are automatically included in modules.h
Source Files
Raw ctrl_module_innerloop_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_innerloop_demo" shortname="pr_ff"/>
<dl_setting var="ctrl_module_demo_pr_d_gain" min="0" step="0.01" max="1" module="ctrl/ctrl_module_innerloop_demo" shortname="pr_d"/>
<dl_setting var="ctrl_module_demo_y_ff_gain" min="0" step="0.01" max="1" module="ctrl/ctrl_module_innerloop_demo" shortname="y_ff"/>
<dl_setting var="ctrl_module_demo_y_d_gain" min="0" step="0.01" max="1" module="ctrl/ctrl_module_innerloop_demo" shortname="y_d"/>
</dl_settings>
</dl_settings>
</settings>
<header>
<file name="ctrl_module_innerloop_demo.h"/>
</header>
<makefile>
<file name="ctrl_module_innerloop_demo.c"/>
</makefile>
</module>