Paparazzi UAS  v5.0.5_stable-7-g4b8bbb7
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Demo module

Module XML file: demo_module.xml

No detailed description...

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.

  • periodic_1Hz_demo()
    • Frequency in Hz: 1.
    • Autorun: TRUE
      Periodic function automatically starts after init.
    • Start function: start_demo()
      Executed before the periodic function starts.
    • Stop function: stop_demo()
      Executed after the periodic function stops.
  • periodic_10Hz_demo()
    • Period in seconds: 0.1
    • Autorun: FALSE
      Periodic function is started by user command.
    • Start function: start_demo()
      Executed before the periodic function starts.
    • Stop function: stop_demo()
      Executed after the periodic function stops.

Files

Header Files

The following headers are automatically included in modules.h

Source Files

Raw demo_module.xml file:

<!DOCTYPE module SYSTEM "module.dtd">
<module name="demo_module">
<doc>
<description>Demo module</description>
</doc>
<header>
<file name="demo_module.h"/>
</header>
<init fun="init_demo()"/>
<periodic fun="periodic_1Hz_demo()" freq="1." start="start_demo()" stop="stop_demo()" autorun="TRUE"/>
<periodic fun="periodic_10Hz_demo()" period="0.1" start="start_demo()" stop="stop_demo()" autorun="FALSE"/>
<makefile>
<raw>
#Example of RAW makefile part
</raw>
<define name="DEMO_MODULE_LED" value="2"/>
<file name="demo_module.c"/>
</makefile>
<makefile target="demo">
<define name="SOME_FLAG"/>
<configure name="SOME_DEFINE" value="bla"/>
</makefile>
</module>