mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-30 03:27:33 +08:00
module sonar maxbotix: set ADC_0 as default for ADC_SONAR configure option
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
<periodic fun="periodic_10Hz_demo()" period="0.1" start="start_demo()" stop="stop_demo()" autorun="FALSE"/>
|
||||
<makefile>
|
||||
<raw>
|
||||
#Exemple of RAW makefile part
|
||||
#Example of RAW makefile part
|
||||
</raw>
|
||||
<define name="DEMO_MODULE_LED" value="2"/>
|
||||
<file name="demo_module.c"/>
|
||||
|
||||
@@ -19,6 +19,12 @@
|
||||
<file name="sonar_maxbotix.c"/>
|
||||
</makefile>
|
||||
<makefile target="ap">
|
||||
<raw>
|
||||
# set ADC_SONAR to ADC_0 as default
|
||||
ifeq ($(ADC_SONAR),)
|
||||
ADC_SONAR = ADC_0
|
||||
endif
|
||||
</raw>
|
||||
<define name="ADC_CHANNEL_SONAR" value="$(ADC_SONAR)"/>
|
||||
<define name="USE_$(ADC_SONAR)"/>
|
||||
<define name="USE_SONAR"/>
|
||||
|
||||
Reference in New Issue
Block a user