Chemical Enose sensor
No detailed description...
Example for airframe file
Add to your firmware section:
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>