Files
paparazzi/conf/modules/stereocam_nav_line_avoid.xml
T

36 lines
1.1 KiB
XML

<!DOCTYPE module SYSTEM "module.dtd">
<module name="stereoavoid" dir="stereocam">
<doc>
<description>Read Stereoboard Obstacle Protocol and plan around obstacles during nav-line navigation</description>
<configure name="STEREO_UART" value="UARTX" description="Sets the UART port number of the connected camera (required)"/>
</doc>
<header>
<file name="nav_line_avoid/stereo_avoid.h"/>
</header>
<init fun="stereo_avoid_init()"/>
<periodic fun="stereo_avoid_run()" freq="20" autorun="TRUE"/>
<makefile>
<raw>
STEREO_UART ?= UART1
STEREO_BAUD ?= B9600
STEREO_LED ?= 3
STEREO_UART_LOWER=$(shell echo $(STEREO_UART) | tr A-Z a-z)
</raw>
<define name="USE_$(STEREO_UART)"/>
<define name="STEREO_UART" value="$(STEREO_UART_LOWER)"/>
<define name="$(STEREO_UART)_BAUD" value="$(STEREO_BAUD)"/>
<file name="nav_line_avoid/avoid_navigation.c"/>
</makefile>
<makefile target="ap">
<file name="nav_line_avoid/stereo_avoid.c"/>
</makefile>
<makefile target="nps">
<file name="nav_line_avoid/stereo_avoid_sim.c"/>
</makefile>
</module>