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
radio_control_sbus_dual module

Radio control using two Futaba SBUS receivers

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_dual">
2  <configure name="RADIO_CONTROL_LED" value="none|num" />
3  <configure name="SBUS1_PORT" value="UARTX" />
4  <configure name="SBUS2_PORT" value="UARTX" />
5 </module>

Module configuration options

Configure Options

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

Files

Header Files

The following headers are automatically included in modules.h

Source Files

Raw radio_control_sbus_dual.xml file:

<!DOCTYPE module SYSTEM "module.dtd">
<module name="radio_control_sbus_dual" dir="radio_control">
<doc>
<description>
Radio control using two Futaba SBUS receivers
</description>
<configure name="RADIO_CONTROL_LED" value="none|num" description="LED number or 'none' to disable"/>
<configure name="SBUS1_PORT" value="UARTX" description="UART name where first SBUS receiver is plugged"/>
<configure name="SBUS2_PORT" value="UARTX" description="UART name where second SBUS receiver is plugged"/>
</doc>
<header>
<file name="sbus_dual.h" dir="subsystems/radio_control"/>
</header>
<makefile target="ap|fbw">
<configure name="RADIO_CONTROL_LED" default="none"/>
<configure name="SBUS1_UART" value="$(SBUS1_PORT)" case="upper|lower"/>
<configure name="SBUS2_UART" value="$(SBUS2_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_dual.h" type="string"/>
</makefile>
<makefile target="fbw">
<define name="RADIO_CONTROL"/>
<define name="RADIO_CONTROL_TYPE_SBUS"/>
<define name="USE_$(SBUS1_UART_UPPER)"/>
<define name="USE_$(SBUS2_UART_UPPER)"/>
<define name="$(SBUS1_UART_UPPER)_BAUD" value="B100000"/>
<define name="$(SBUS2_UART_UPPER)_BAUD" value="B100000"/>
<define name="SBUS1_UART_DEV" value="$(SBUS1_UART_LOWER)"/>
<define name="SBUS2_UART_DEV" value="$(SBUS2_UART_LOWER)"/>
<file name="radio_control.c" dir="subsystems"/>
<file name="sbus_dual.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_$(SBUS1_UART_UPPER)"/>
<define name="USE_$(SBUS2_UART_UPPER)"/>
<define name="$(SBUS1_UART_UPPER)_BAUD" value="B100000"/>
<define name="$(SBUS2_UART_UPPER)_BAUD" value="B100000"/>
<define name="SBUS1_UART_DEV" value="$(SBUS1_UART_LOWER)"/>
<define name="SBUS2_UART_DEV" value="$(SBUS2_UART_LOWER)"/>
<file name="radio_control.c" dir="subsystems"/>
<file name="sbus_dual.c" dir="subsystems/radio_control"/>
<file name="sbus_common.c" dir="subsystems/radio_control"/>
</makefile>
</module>