Files
paparazzi/conf/modules/stereocam_state2camera.xml
T
knmcguire ed9a15ca6f Generic rotation matrix for mounted stereocamera (#1998)
This pull request adds a rotation matrix to the stereocam module group. The stereocam in combination with the lisa-s, the new lisa MXs, and the ardrone are usually mounted on there in different direction (facing backwards, forwards and downwards). Before, we had to constantly double check the direction of the velocities to transform that manually to body fixed coordinates, which was very prone to mistakes. Same goes with the derotation of optical flow on the stereocam.

This addition should make it easier and more generic for platforms with the mounted stereocamera.
2017-02-13 20:29:27 +01:00

27 lines
1.1 KiB
XML

<!DOCTYPE module SYSTEM "module.dtd">
<module name="stereocam_state2camera" dir="stereocam">
<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="state2camera/state2camera.h"/>
</header>
<periodic fun="write_serial_rot()" freq="30."/>
<makefile>
<file name="state2camera/state2camera.c"/>
<file name="stereoprotocol.c" dir="modules/stereocam"/>
<configure name="STEREO_UART" case="upper|lower"/>
<define name="USE_$(STEREO_UART_UPPER)"/>
<define name="UART_LINK" value="$(STEREO_UART_LOWER)"/>
<define name="$(STEREO_UART_UPPER)_BAUD" value="$(STEREO_BAUD)"/>
</makefile>
</module>