Files
paparazzi/conf/modules/vehicle_interface_datalink.xml
T
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

31 lines
962 B
XML

<!DOCTYPE module SYSTEM "module.dtd">
<module name="vi_datalink" dir="vehicle_interface">
<doc>
<description>Vehicule Interface over Datalink</description>
</doc>
<settings>
<dl_settings>
<dl_settings NAME="VI">
<dl_setting var="vi.enabled" min="0" step="1" max="1" module="modules/vehicle_interface/vi" shortname="enabled" values="OFF|ON" handler="SetEnabled">
<strip_button name="FMS ON" icon="on.png" value="1"/>
<strip_button name="FMS OFF" icon="off.png" value="0"/>
</dl_setting>
</dl_settings>
</dl_settings>
</settings>
<header>
<file name="vi_datalink.h"/>
</header>
<init fun="vi_init()"/>
<periodic fun="vi_periodic()" freq="25"/>
<datalink message="BOOZ2_FMS_COMMAND" fun="VI_PARSE_DATALINK(buf)"/>
<datalink message="BOOZ_NAV_STICK" fun="VI_NAV_STICK_PARSE_DL(buf)"/>
<makefile>
<file name="vi.c"/>
<file name="vi_datalink.c"/>
</makefile>
</module>