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:
1 <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">
<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>