Controller for OPA board functionalities
No detailed description...
Example for airframe file
Add to your firmware section:
<module name="opa_controller"/>
Module functions
Init Functions
These initialization functions are called once on startup.
Periodic Functions
These functions are called periodically at the specified frequency from the module periodic loop.
Files
Header Files
The following headers are automatically included in modules.h
Source Files
Raw opa_controller.xml file:
<!DOCTYPE module SYSTEM "module.dtd">
<module name="opa_controller" dir="boards">
<doc>
<description>Controller for OPA board functionalities</description>
</doc>
<settings>
<dl_settings>
<dl_settings NAME="Board">
<dl_setting var="opa_controller_vision_power" min="0" step="1" max="1" shortname="vision_pwr" values="OFF|ON" />
<dl_setting var="opa_controller_ftd_disarm" min="0" step="1" max="1" shortname="ftd_disarm" values="NONE|DISARM" module="boards/opa_controller_ap" handler="disarm" />
</dl_settings>
</dl_settings>
</settings>
<header>
<file name="opa_controller_ap.h"/>
</header>
<init fun="opa_controller_init()"/>
<periodic fun="opa_controller_periodic()" freq="20" autorun="TRUE"/>
<makefile target="fbw">
<file name="opa_controller_fbw.c"/>
<configure name="ARMING_LED" default="none"/>
<define name="ARMING_LED" value="$(ARMING_LED)" cond="ifneq ($(ARMING_LED),none)"/>
</makefile>
<makefile target="ap">
<file name="opa_controller_ap.c"/>
</makefile>
</module>