mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-06-02 05:17:03 +08:00
module sonar maxbotix: set ADC_0 as default for ADC_SONAR configure option
This commit is contained in:
@@ -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_">
|
||||||
|
|||||||
@@ -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"/>
|
||||||
|
|||||||
@@ -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"/>
|
||||||
|
|||||||
Reference in New Issue
Block a user