Files
paparazzi/conf/modules/uartrotation.xml
T
2015-10-29 16:44:10 +01:00

30 lines
1.0 KiB
XML

<!DOCTYPE module SYSTEM "module.dtd">
<module name="uartrotation">
<doc>
<description>Writes rotation to the uart bus. Meant for sending the rotation
to the ODROID board or to the stereo camera boards.
Can be used to improve vision algorithms.
The protocol that is used is the stereocommunication protocol.
</description>
<configure name="STEREO_UART" value="UARTX" description="Sets the UART port number of the connected camera (required)"/>
<configure name="STEREO_BAUD" value="BXXXXX" description="Sets the BAUD rate of the connected camera (required: must be same as camera)"/>
</doc>
<header>
<file name="uartrotation.h"/>
</header>
<periodic fun="write_serial_rot()" freq="512."/>
<makefile>
<file name="uartrotation.c"/>
<file name="stereoprotocol.c" dir="subsystems"/>
<raw>
STEREO_UART_LOWER=$(shell echo $(STEREO_UART) | tr A-Z a-z)
ap.CFLAGS += -DUSE_$(STEREO_UART)
ap.CFLAGS += -DUART_LINK=$(STEREO_UART_LOWER)
ap.CFLAGS += -D$(STEREO_UART)_BAUD=$(STEREO_BAUD)
</raw>
</makefile>
</module>