Paparazzi UAS  v5.8.2_stable-0-g6260b7c
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
ADS1114 airspeed sensor

Module XML file: airspeed_ads1114.xml

Module to extend the baro_board module with an airspeed sensor using ads1114 adc

Example for airframe file

1 <modules>
2  <load name="airspeed_ads1114.xml"/>
3 </modules>

Module functions

Periodic Functions

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

  • airspeed_periodic()
    • Frequency in Hz: 60.
    • 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 airspeed_ads1114.xml file:

<!DOCTYPE module SYSTEM "module.dtd">
<module name="airspeed_ads1114" dir="sensors">
<doc>
<description>
ADS1114 airspeed sensor.
Module to extend the baro_board module with an airspeed sensor using ads1114 adc
</description>
</doc>
<header>
<file name="airspeed_ads1114.h"/>
</header>
<periodic fun="airspeed_periodic()" freq="60."/>
<makefile target="ap">
<file name="airspeed_ads1114.c"/>
<define name="USE_BARO_DIFF"/>
<define name="USE_ADS1114_2"/>
<define name="ADS1114_2_PGA" value="0x1"/> <!-- PGA gain = 1 (+/- 4.096V) -->
</makefile>
</module>