Paparazzi UAS  v5.15_devel-58-g208c37b
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
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!

1 <module name="radio_control_sbus">
2  <configure name="RADIO_CONTROL_LED" value="none|num" />
3  <configure name="SBUS_PORT" value="UARTX" />
4 </module>

Module configuration options

Configure Options

  • name: RADIO_CONTROL_LED value: none|num
    Description: LED number or 'none' to disable
  • name: SBUS_PORT value: UARTX
    Description: UART name where SBUS receiver is plugged

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">
<doc>
<description>
Radio control based on Futaba SBUS
</description>
<configure name="RADIO_CONTROL_LED" value="none|num" description="LED number or 'none' to disable"/>
<configure name="SBUS_PORT" value="UARTX" description="UART name where SBUS receiver is plugged"/>
</doc>
<header>
<file name="sbus.h" dir="subsystems/radio_control"/>
</header>
<makefile target="ap|fbw">
<configure name="RADIO_CONTROL_LED" default="none"/>
<configure name="SBUS_UART" value="$(SBUS_PORT)" case="upper|lower"/>
<define name="RADIO_CONTROL_LED" value="$(RADIO_CONTROL_LED)" cond="ifneq ($(RADIO_CONTROL_LED),none)"/>
<define name="RADIO_CONTROL_TYPE_H" value="subsystems/radio_control/sbus.h" type="string"/>
</makefile>
<makefile target="fbw">
<define name="RADIO_CONTROL"/>
<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="radio_control.c" dir="subsystems"/>
<file name="sbus.c" dir="subsystems/radio_control"/>
<file name="sbus_common.c" dir="subsystems/radio_control"/>
</makefile>
<makefile target="ap" cond="ifeq (,$(findstring $(SEPARATE_FBW),1 TRUE))">
<define name="RADIO_CONTROL"/>
<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="radio_control.c" dir="subsystems"/>
<file name="sbus.c" dir="subsystems/radio_control"/>
<file name="sbus_common.c" dir="subsystems/radio_control"/>
</makefile>
</module>