mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-06-01 04:46:51 +08:00
add a airspeed ADC module
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user