module sonar maxbotix: set ADC_0 as default for ADC_SONAR configure option

This commit is contained in:
Felix Ruess
2012-03-14 12:12:35 +01:00
parent 59ef73628e
commit 3490bbb674
3 changed files with 12 additions and 3 deletions
+5 -2
View File
@@ -37,7 +37,9 @@
<load name="booz_drop.xml"/> <load name="booz_drop.xml"/>
<load name="sys_mon.xml"/> <load name="sys_mon.xml"/>
<!--load name="booz_cam.xml"/--> <!--load name="booz_cam.xml"/-->
<!--load name="sonar_maxbotix_booz.xml"/--> <load name="sonar_maxbotix_booz.xml">
<configure name="ADC_SONAR" value="ADC_0"/>
</load>
</modules> </modules>
<commands> <commands>
@@ -185,7 +187,8 @@
</section> </section>
<section name="INS" prefix="INS_"> <section name="INS" prefix="INS_">
<define name="BARO_SENS" value="15." integer="16" /> <define name="BARO_SENS" value="15." integer="16"/>
<define name="SONAR_SENS" value="2.146" integer="16"/>
</section> </section>
<section name="GUIDANCE_V" prefix="GUIDANCE_V_"> <section name="GUIDANCE_V" prefix="GUIDANCE_V_">
+1 -1
View File
@@ -9,7 +9,7 @@
<periodic fun="periodic_10Hz_demo()" period="0.1" start="start_demo()" stop="stop_demo()" autorun="FALSE"/> <periodic fun="periodic_10Hz_demo()" period="0.1" start="start_demo()" stop="stop_demo()" autorun="FALSE"/>
<makefile> <makefile>
<raw> <raw>
#Exemple of RAW makefile part #Example of RAW makefile part
</raw> </raw>
<define name="DEMO_MODULE_LED" value="2"/> <define name="DEMO_MODULE_LED" value="2"/>
<file name="demo_module.c"/> <file name="demo_module.c"/>
+6
View File
@@ -19,6 +19,12 @@
<file name="sonar_maxbotix.c"/> <file name="sonar_maxbotix.c"/>
</makefile> </makefile>
<makefile target="ap"> <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="ADC_CHANNEL_SONAR" value="$(ADC_SONAR)"/>
<define name="USE_$(ADC_SONAR)"/> <define name="USE_$(ADC_SONAR)"/>
<define name="USE_SONAR"/> <define name="USE_SONAR"/>