Files
paparazzi/conf/modules/joystick.xml
Gautier Hattenberger 683037ad95 [datalink] parse the correct datalink buffer (#2494)
When using a different datalink buffer than dl_buffer, the callback
functions from the modules must use the buffer address passed as a
parameter, otherwise there is no guarentee that the correct buffer will
be parsed.

Co-authored-by: pprz <xp31@free.fr>
2020-03-16 10:30:38 +01:00

23 lines
556 B
XML

<!DOCTYPE module SYSTEM "module.dtd">
<module name="joystick">
<doc>
<description>
Handle JOYSTICK_RAW messages
Each new message is parsed and stored into the joystick structure.
An ABI message JOYSTICK is sent and can be used for control or payload
depending on the application.
</description>
</doc>
<header>
<file name="joystick.h"/>
</header>
<init fun="joystick_init()"/>
<datalink message="JOYSTICK_RAW" fun="joystick_parse(buf)"/>
<makefile>
<file name="joystick.c"/>
</makefile>
</module>