-
Notifications
You must be signed in to change notification settings - Fork 1.1k
/
airspeed_adc.xml
34 lines (28 loc) · 1.16 KB
/
airspeed_adc.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<!DOCTYPE module SYSTEM "module.dtd">
<!--
Airspeed ADC module
@configure ADC_AIRSPEED on which ADC the sensor is connected
@define AIRSPEED_SCALE/AIRSPEED_QUADRATIC_SCALE scale factor, quadratic is used if defined
@define AIRSPEED_BIAS offset on ADC
-->
<module name="airspeed_adc" dir="sensors">
<doc>
<description>Airspeed sensor using internal ADC</description>
<configure name="ADC_AIRSPEED" value="ADCX" description="ADC on which sensor is connected"/>
<define name="AIRSPEED_SCALE" value="scale factor" description="linear scale factor (used if AIRSPEED_QUADRATIC_SCALE is not defined"/>
<define name="AIRSPEED_QUADRATIC_SCALE" value="quadratic scale factor" description="it is recommended to use quadratic scale"/>
<define name="AIRSPEED_BIAS" value="sensor bias"/>
</doc>
<header>
<file name="airspeed_adc.h"/>
</header>
<init fun="airspeed_adc_init()"/>
<periodic fun="airspeed_adc_update()" />
<makefile>
<file name="airspeed_adc.c"/>
</makefile>
<makefile target="ap">
<define name="ADC_CHANNEL_AIRSPEED" value="$(ADC_AIRSPEED)"/>
<define name="USE_$(ADC_AIRSPEED)"/>
</makefile>
</module>