Paparazzi UAS  v5.12_stable-4-g9b43e9b
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
opa_controller module

Controller for OPA board functionalities

No detailed description...

Example for airframe file

Add to your firmware section:

1 <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.


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">
<description>Controller for OPA board functionalities</description>
<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" />
<file name="opa_controller_ap.h"/>
<init fun="opa_controller_init()"/>
<periodic fun="opa_controller_periodic()" freq="20" autorun="TRUE"/>
<!-- FBW (FTD) part of the controller -->
<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)"/>
<!-- AP part of the controller -->
<makefile target="ap">
<file name="opa_controller_ap.c"/>