Paparazzi UAS  v5.12_stable-4-g9b43e9b
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
humid_pcap01 module

ACAM Picocap capacitance sensor.

ACAM Picocap Single-chip Solution for Capacitance Measurement This reads the values for temperature and humidity from the ACAM capacitance and resistance measurement unit through I2C.

Example for airframe file

Add to your firmware section:

1 <module name="humid_pcap01"/>

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.

  • pcap01_periodic()
    • Frequency in Hz: 3
    • 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_pcap01.xml file:

<!DOCTYPE module SYSTEM "module.dtd">
<module name="humdid_pcap01" dir="meteo">
<doc>
<description>
ACAM Picocap capacitance sensor.
ACAM Picocap Single-chip Solution for Capacitance Measurement
This reads the values for temperature and humidity from the ACAM capacitance and resistance measurement unit through I2C.
</description>
</doc>
<header>
<file name="humid_pcap01.h"/>
</header>
<init fun="pcap01_init()"/>
<periodic fun="pcap01_periodic()" freq="3"/>
<event fun="pcap01_event()"/>
<makefile target="ap">
<file name="humid_pcap01.c"/>
</makefile>
</module>