Paparazzi UAS  v5.15_devel-230-gc96ce27
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
humid_dpicco module

DigiPicco humidity sensor.

This reads the values for humidity and temperature from the IST DigiPicco sensor through I2C.

Example for airframe file

Add to your firmware section:

1 <module name="humid_dpicco"/>

Module functions

Init Functions

These initialization functions are called once on startup.

Event Functions

These event functions are called in each cycle of the module event loop.

Periodic Functions

These functions are called periodically at the specified frequency from the module periodic loop.

  • dpicco_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_dpicco.xml file:

<!DOCTYPE module SYSTEM "module.dtd">
<module name="humid_dpicco" dir="meteo">
<doc>
<description>
DigiPicco humidity sensor.
This reads the values for humidity and temperature from the IST DigiPicco sensor through I2C.
</description>
</doc>
<header>
<file name="humid_dpicco.h"/>
</header>
<init fun="dpicco_init()"/>
<periodic fun="dpicco_periodic()" freq="4."/>
<event fun="dpicco_event()"/>
<makefile target="ap">
<file name="humid_dpicco.c"/>
</makefile>
</module>