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

Radio control based on Futaba SBUS

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="radio_control_sbus">
b'<configure name="SBUS_PORT" value="UARTX" />\n '
</module>

Module configuration options

Configure Options

  • name: SBUS_PORT value: UARTX
    Description: UART name where SBUS receiver is plugged

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

<!DOCTYPE module SYSTEM "module.dtd">
<module name="radio_control_sbus" dir="radio_control" task="radio_control">
<doc>
<description>
Radio control based on Futaba SBUS
</description>
<configure name="SBUS_PORT" value="UARTX" description="UART name where SBUS receiver is plugged"/>
</doc>
<dep>
<depends>uart,radio_control_common</depends>
<provides>radio_control</provides>
</dep>
<header>
<file name="sbus.h"/>
</header>
<init fun="sbus_init()"/>
<event fun="sbus_event()"/>
<makefile target="ap|fbw">
<configure name="SBUS_UART" value="$(SBUS_PORT)" case="upper|lower"/>
<define name="RADIO_CONTROL_TYPE_SBUS"/>
<define name="USE_$(SBUS_UART_UPPER)"/>
<define name="USE_$(SBUS_UART_UPPER)_TX" value="FALSE"/>
<define name="$(SBUS_UART_UPPER)_BAUD" value="B100000"/>
<define name="SBUS_UART_DEV" value="$(SBUS_UART_LOWER)"/>
<file name="sbus.c"/>
<file name="sbus_common.c"/>
<test>
<define name="RADIO_CONTROL_TYPE_SBUS"/>
<define name="SBUS_UART_DEV" value="uart4"/>
<define name="USE_UART4"/>
</test>
</makefile>
</module>