Paparazzi UAS  v5.8.2_stable-0-g6260b7c
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Chemical Enose sensor

Module XML file: enose.xml

No detailed description...

Example for airframe file

1 <modules>
2  <load name="enose.xml"/>
3 </modules>

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.

  • enose_periodic()
    • Frequency in Hz: 4.
    • Delay: 4
      Integer to impose a sequence (between 0 and main_freq/function_freq)
    • Autorun: TRUE
      Periodic function automatically starts after init.
  • chemo_periodic()
    • Frequency in Hz: 4.
    • Delay: 4
      Integer to impose a sequence (between 0 and main_freq/function_freq)
    • Autorun: TRUE
      Periodic function automatically starts after init.

Files

Header Files

The following headers are automatically included in modules.h

Source Files

Raw enose.xml file:

<!DOCTYPE module SYSTEM "module.dtd">
<module name="enose" dir="enose">
<doc>
<description>Chemical Enose sensor</description>
</doc>
<header>
<file name="enose.h"/>
<file name="chemo_detect.h"/>
</header>
<settings>
<dl_settings NAME="control">
<dl_settings name="enose">
<dl_setting MAX="5000" MIN="0" STEP="1" VAR="enose_val[0]" module="enose/enose" shortname="val0" handler="DecreaseVal0"/>
<dl_setting MAX="5000" MIN="0" STEP="1" VAR="enose_val[1]" module="enose/enose" shortname="val1" handler="DecreaseVal1"/>
<dl_setting MAX="5000" MIN="0" STEP="1" VAR="enose_val[2]" module="enose/enose" shortname="val2" handler="DecreaseVal2"/>
</dl_settings>
</dl_settings>
</settings>
<init fun="enose_init()"/>
<init fun="chemo_init()"/>
<periodic fun="enose_periodic()" freq="4." delay="4" autorun="TRUE"/>
<periodic fun="chemo_periodic()" freq="4." delay="4" autorun="TRUE"/>
<makefile target="ap">
<file name="enose.c"/>
<file name="chemo_detect.c"/>
</makefile>
<makefile target="sim">
<!--file name="$(SRC_ARCH)/sim_enose.c"/-->
<file_arch name="sim_enose.c"/>
<file name="chemo_detect.c"/>
</makefile>
</module>