Paparazzi UAS  v5.10_stable-5-g83a0da5-dirty
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
humid_hih module

HIH-4030 humidity sensor.

This reads the values for humidity from the Honeywell HIH-4030 sensor via ADC.

Example for airframe file

Add to your firmware section:

1 <module name="humid_hih"/>

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.

  • humid_hih_periodic()
    • Frequency in Hz: 4
    • 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 humid_hih.xml file:

<!DOCTYPE module SYSTEM "module.dtd">
<module name="humid_hih" dir="meteo">
<doc>
<description>
HIH-4030 humidity sensor.
This reads the values for humidity from the Honeywell HIH-4030 sensor via ADC.
</description>
</doc>
<header>
<file name="humid_hih.h"/>
</header>
<init fun="humid_hih_init()"/>
<periodic fun="humid_hih_periodic()" freq="4"/>
<makefile target="ap">
<file name="humid_hih.c"/>
<define name="ADC_CHANNEL_HUMID_HIH" value="ADC_3"/>
<define name="USE_ADC_3"/>
</makefile>
</module>