Paparazzi UAS  v5.14.0_stable-0-g3f680d1
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
mavlink_decoder module

A simple MAVLINK decoder

No detailed description...

Example for airframe file

Add to your firmware section: This example contains all possible configuration options, not all of them are mandatory!

1 <module name="mavlink_decoder">
2  <configure name="MAVLINK_PORT" value="UART0|UART1|UART2" />
3  <configure name="MAVLINK_BAUD" value="B9600|B57600|B115200" />
4 </module>

Module configuration options

Configure Options

  • name: MAVLINK_PORT value: UART0|UART1|UART2
    Description: Select port for Mavlink decoder
  • name: MAVLINK_BAUD value: B9600|B57600|B115200
    Description: Baudrate for Mavlink decoder

Module functions

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 mavlink_decoder.xml file:

<!DOCTYPE module SYSTEM "module.dtd">
<module name="mavlink_decoder" dir="datalink">
<doc>
<description>A simple MAVLINK decoder</description>
<configure name="MAVLINK_PORT" value="UART0|UART1|UART2" description="Select port for Mavlink decoder"/>
<configure name="MAVLINK_BAUD" value="B9600|B57600|B115200" description="Baudrate for Mavlink decoder"/>
</doc>
<header>
<file name="mavlink_decoder.h"/>
</header>
<event fun="MavlinkDatalinkEvent()"/>
<makefile>
<configure name="MAVLINK_PORT" case="upper|lower"/>
<define name="MAVLINK_UART" value="$(MAVLINK_PORT_LOWER)"/>
<define name="USE_$(MAVLINK_PORT_UPPER)"/>
<define name="$(MAVLINK_PORT_UPPER)_BAUD" value="$(MAVLINK_BAUD)"/>
<file name="mavlink_decoder.c"/>
</makefile>
</module>