Paparazzi UAS  v5.2.2_stable-0-gd6b9f29
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Hygrosens TEMOD-I2C-Rx temperature sensor

Module XML file: temp_temod.xml

No detailed description...

Module configuration options

Define Options

  • name: SCP_I2C_DEV value: i2cX
    Description: select i2c peripheral to use (default i2c0)
  • name: TEMOD_TYPE value: type
    Description: device type (default TEMOD_I2C_R1)

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.

  • temod_periodic()
    • Frequency in Hz: 8
    • Autorun: LOCK
      Periodic function automatically starts after init and can't be stopped.


Header Files

The following headers are automatically included in modules.h

Source Files

Raw temp_temod.xml file:

<!DOCTYPE module SYSTEM "module.dtd">
Hygrosens TEMOD-I2C-Rx temperature sensor
@define SCP_I2C_DEV i2c device (default i2c0)
@define TEMOD_TYPE device type (default TEMOD_I2C_R1)
<module name="temp_temod" dir="meteo">
<description>Hygrosens TEMOD-I2C-Rx temperature sensor</description>
<define name="SCP_I2C_DEV" value="i2cX" description="select i2c peripheral to use (default i2c0)"/>
<define name="TEMOD_TYPE" value="type" description="device type (default TEMOD_I2C_R1)"/>
<file name="temp_temod.h"/>
<init fun="temod_init()"/>
<periodic fun="temod_periodic()" freq="8"/>
<event fun="temod_event()"/>
<makefile target="ap">
<file name="temp_temod.c"/>