ADS1114 airspeed sensor.
Module to extend the baro_board module with an airspeed sensor using ads1114 adc
Example for airframe file
Add to your firmware section:
<module name="airspeed_ads1114"/>
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" task="sensors">
<doc>
<description>
ADS1114 airspeed sensor.
Module to extend the baro_board module with an airspeed sensor using ads1114 adc
</description>
</doc>
<dep>
<depends>i2c</depends>
<provides>airspeed</provides>
</dep>
<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"/>
<test arch="test">
<define name="USE_ADS1114_1"/>
<define name="BARO_DIFF_ADS" value="ads1114_1"/>
</test>
</makefile>
</module>