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
Navigation leds

Module XML file: light.xml

No detailed description...

Module configuration options

Airframe file section

  • section name: LIGHT
    • name LIGHT_LED_STROBE value: X
      Description: led number
    • name LIGHT_LED_NAV value: X
      Description: led number
    • name STROBE_LIGHT_MODE_DEFAULT value: X
      Description: flashing mode for strobe light
    • name NAV_LIGHT_MODE_DEFAULT value: X
      Description: flashing mode for nav light

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_light()
    • Period in seconds: 0.05
    • Autorun: TRUE
      Periodic function automatically starts after init.

Files

Header Files

The following headers are automatically included in modules.h

Source Files

Raw light.xml file:

<!DOCTYPE module SYSTEM "module.dtd">
<module name="light">
<doc>
<description>Navigation leds</description>
<section name="LIGHT">
<define name="LIGHT_LED_STROBE" value="X" description="led number"/>
<define name="LIGHT_LED_NAV" value="X" description="led number"/>
<define name="STROBE_LIGHT_MODE_DEFAULT" value="X" description="flashing mode for strobe light"/>
<define name="NAV_LIGHT_MODE_DEFAULT" value="X" description="flashing mode for nav light"/>
</section>
</doc>
<header>
<file name="light.h"/>
</header>
<init fun="init_light()"/>
<periodic fun="periodic_light()" period="0.05" autorun="TRUE"/>
<makefile>
<!-- these configureeters should be set in the airframe file unless you want the defaults
<define name="LIGHT_LED_STROBE" value="3"/>
<define name="LIGHT_LED_NAV" value="4"/>
<define name="STROBE_LIGHT_MODE_DEFAULT" value="5"/>
<define name="NAV_LIGHT_MODE_DEFAULT" value="4"/>
-->
<file name="light.c"/>
</makefile>
</module>