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
trigger_ext module

External trigger

(lpc only)

Example for airframe file

Add to your firmware section:

1 <module name="trigger_ext"/>

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.

  • trigger_ext_periodic()
    • Frequency in Hz: 10
    • Autorun: LOCK
      Periodic function automatically starts after init and can't be stopped.

Files

Header Files

The following headers are automatically included in modules.h

Source Files

Raw trigger_ext.xml file:

<!DOCTYPE module SYSTEM "module.dtd">
<module name="trigger_ext" dir="sensors">
<doc>
<description>
External trigger
(lpc only)
</description>
</doc>
<header>
<file name="trig_ext_hw.h"/>
<file name="trigger_ext.h"/>
</header>
<init fun="trigger_ext_init()"/>
<periodic fun="trigger_ext_periodic()" freq="10"/>
<makefile>
<file_arch name="trig_ext_hw.c"/>
<file name="trigger_ext.c"/>
<define name="TRIGGER_EXT"/>
<define name="TRIG_EXT_PULSE_TYPE" value="TRIG_EXT_EDGE_FALLING"/>
<define name="TURBINE_ID" value="42"/>
</makefile>
</module>