Paparazzi UAS  v5.8.2_stable-0-g6260b7c
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Extra datalink (PPRZ transport)

Module XML file: extra_dl.xml

No detailed description...

Example for airframe file

This example contains all possible configuration options, not all of them are mandatory!

1 <modules>
2  <load name="extra_dl.xml">
3  <configure name="EXTRA_DL_PORT" value="UARTX" />
4  <configure name="EXTRA_DL_BAUD" value="B57600" />
5  </load>
6 </modules>

Module configuration options

Configure Options

  • name: EXTRA_DL_PORT value: UARTX
    Description: Select port for extra datalink
  • name: EXTRA_DL_BAUD value: B57600
    Description: Baudrate for extra datalink

Module functions

Init Functions

These initialization functions are called once on startup.

Event Functions

These event functions are called in each cycle of the module event loop.

Files

Header Files

The following headers are automatically included in modules.h

Source Files

Raw extra_dl.xml file:

<!DOCTYPE module SYSTEM "module.dtd">
<module name="extra_dl" dir="datalink">
<doc>
<description>Extra datalink (PPRZ transport)</description>
<configure name="EXTRA_DL_PORT" value="UARTX" description="Select port for extra datalink"/>
<configure name="EXTRA_DL_BAUD" value="B57600" description="Baudrate for extra datalink"/>
</doc>
<header>
<file name="extra_pprz_dl.h"/>
</header>
<init fun="extra_pprz_dl_init()"/>
<event fun="ExtraDatalinkEvent()"/>
<makefile target="ap">
<raw>
EXTRA_DL_PORT_LOWER = $(shell echo $(EXTRA_DL_PORT) | tr A-Z a-z)
</raw>
<define name="EXTRA_DOWNLINK_DEVICE" value="$(EXTRA_DL_PORT_LOWER)"/>
<define name="USE_$(EXTRA_DL_PORT)"/>
<define name="$(EXTRA_DL_PORT)_BAUD" value="$(EXTRA_DL_BAUD)"/>
<file name="extra_pprz_dl.c"/>
<file name="pprz_transport.c" dir="subsystems/datalink"/>
</makefile>
</module>