Paparazzi UAS  v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
telemetry_xbee_api module

Telemetry using XBEE API protocol over UART

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!

<module name="telemetry_xbee_api">
b'<define name="XBEE_CHANNEL" value="0C" />\n '
b'<configure name="MODEM_PORT" value="UARTx" />\n '
b'<configure name="MODEM_BAUD" value="B57600" />\n '
</module>

Module configuration options

Configure Options

  • name: MODEM_PORT value: UARTx
    Description: UART where the modem is connected to (UART1, UART2, etc)
  • name: MODEM_BAUD value: B57600
    Description: UART baud rate

Define Options

  • name: XBEE_CHANNEL value: 0C
    Description: set Xbee channel (from 0C to 17).

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

<!DOCTYPE module SYSTEM "module.dtd">
<module name="telemetry_xbee_api" dir="datalink" task="datalink">
<doc>
<description>
Telemetry using XBEE API protocol over UART
</description>
<configure name="MODEM_PORT" value="UARTx" description="UART where the modem is connected to (UART1, UART2, etc)"/>
<configure name="MODEM_BAUD" value="B57600" description="UART baud rate"/>
<define name="XBEE_CHANNEL" value="0C" description="set Xbee channel (from 0C to 17)."/>
</doc>
<dep>
<depends>uart,datalink_common</depends>
<provides>datalink,telemetry</provides>
</dep>
<header>
<file name="xbee_dl.h"/>
</header>
<init fun="xbee_dl_init()"/>
<event fun="xbee_dl_event()"/>
<makefile target="!sim|nps">
<configure name="MODEM_PORT" case="upper|lower"/>
<define name="USE_$(MODEM_PORT_UPPER)"/>
<define name="$(MODEM_PORT_UPPER)_BAUD" value="$(MODEM_BAUD)"/>
<define name="DOWNLINK_DEVICE" value="$(MODEM_PORT_LOWER)"/>
<define name="XBEE_UART" value="$(MODEM_PORT_LOWER)"/>
<define name="XBEE_BAUD" value="$(MODEM_BAUD)"/>
<define name="DOWNLINK_TRANSPORT" value="xbee_tp"/>
<define name="DATALINK" value="XBEE"/>
<file name="xbee_dl.c"/>
<file name="xbee_transport.c" dir="pprzlink/src"/>
<test>
<define name="DOWNLINK_DEVICE" value="uart1"/>
<define name="XBEE_UART" value="uart1"/>
<define name="XBEE_BAUD" value="B57600"/>
<define name="USE_UART1"/>
</test>
</makefile>
</module>