mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-09 22:49:53 +08:00
683037ad95
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>
31 lines
962 B
XML
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>
|
|
|
|
|