Paparazzi UAS  v5.12_stable-4-g9b43e9b
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
vehicle_interface_datalink module

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.


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">
<description>Vehicule Interface over Datalink</description>
<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"/>
<file name="vi_datalink.h"/>
<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)"/>
<file name="vi.c"/>
<file name="vi_datalink.c"/>