add a airspeed ADC module

This commit is contained in:
Gautier Hattenberger
2010-10-19 11:41:10 +00:00
parent efd8b07461
commit 6b2cf1c6db
3 changed files with 128 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
<!DOCTYPE module SYSTEM "module.dtd">
<!--
Airspeed ADC module
@param ADC_AIRSPEED on which ADC the sensor is connected
@param AIRSPEED_SCALE/AIRSPEED_QUADRATIC_SCALE scale factor, quadratic is used if defined
@param AIRSPEED_BIAS offset on ADC
-->
<module name="airspeed_adc" dir="sensors">
<header>
<file name="airspeed_adc.h"/>
</header>
<init fun="airspeed_adc_init()"/>
<periodic fun="airspeed_adc_update()" freq="10."/>
<makefile>
<file name="airspeed_adc.c"/>
</makefile>
<makefile target="ap">
<flag name="ADC_CHANNEL_AIRSPEED" value="$(ADC_AIRSPEED)"/>
<flag name="USE_$(ADC_AIRSPEED)"/>
</makefile>
</module>