Vehicule Interface over Datalink
No detailed description...
Example for airframe file
Add to your firmware section:
1 <module name="vehicle_interface_datalink"/>
Module functions
Init Functions
These initialization functions are called once on startup.
Periodic Functions
These functions are called periodically at the specified frequency from the module periodic loop.
- vi_periodic()
- Frequency in Hz: 25
- Autorun: LOCK
Periodic function automatically starts after init and can't be stopped.
Datalink Functions
Whenever the specified datalink message is received, the corresponing handler function is called.
Files
Header Files
The following headers are automatically included in modules.h
Source Files
Raw vehicle_interface_datalink.xml file:
<!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(dl_buffer)"/>
<datalink message="BOOZ_NAV_STICK" fun="VI_NAV_STICK_PARSE_DL(dl_buffer)"/>
<makefile>
<file name="vi.c"/>
<file name="vi_datalink.c"/>
</makefile>
</module>