mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-02-05 18:51:00 +08:00
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>
23 lines
556 B
XML
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>
|
|
|