Module XML file: mavlink_decoder.xml
No detailed description...
Example for airframe file
This example contains all possible configuration options, not all of them are mandatory!
2 <load name="mavlink_decoder.xml">
3 <configure name="MAVLINK_PORT" value="UART0|UART1|UART2" />
4 <configure name="MAVLINK_BAUD" value="B9600|B57600|B115200" />
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>
<raw>
MAVLINK_PORT_LOWER=$(shell echo $(MAVLINK_PORT) | tr A-Z a-z)
</raw>
<define name="MAVLINK_UART" value="$(MAVLINK_PORT_LOWER)"/>
<define name="USE_$(MAVLINK_PORT)"/>
<define name="$(MAVLINK_PORT)_BAUD" value="$(MAVLINK_BAUD)"/>
<file name="mavlink_decoder.c"/>
</makefile>
</module>