Files
paparazzi/conf/modules/radio_control_sbus_dual.xml
Gautier Hattenberger e436d78c84 [autopilot] merge AP and FBW in normal operation (#2828)
There is no longer a separated FBW in normal operation for fixedwing,
only a single AP task/thread.
The code for main_ap is now factorized for all firmwares.
Dual MCU support (separated AP and FBW) is still possible, based on the
rotorcraft implementation and intermcu pprzlink messages. Relevant code
is also factorized and available in all firmwares.
The recovery mode (in case of hard fault) is still available for
fixedwing with ChibiOS implementation.
Only intermcu_uart is supported at the moment. Other options (spi/can)
might be added back in the future if really used.

Some other evolution are made:
- in the radio_control and actuators modules, now integrated to AP and
using ABI messages
- the message parsing on datalink event (defined in module) that is now
properly filtering the messages based on their class and allowing to
have multiple callbacks for the same message
- cleaning the part of code that were using the old intermcu fixedwing
interface
2022-03-10 14:21:04 +01:00

43 lines
1.6 KiB
XML

<!DOCTYPE module SYSTEM "module.dtd">
<module name="radio_control_sbus_dual" dir="radio_control" task="radio_control">
<doc>
<description>
Radio control using two Futaba SBUS receivers
</description>
<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>
<dep>
<depends>uart,radio_control_common</depends>
<provides>radio_control</provides>
</dep>
<header>
<file name="sbus_dual.h"/>
</header>
<init fun="sbus_dual_init()"/>
<event fun="sbus_dual_event()"/>
<makefile target="ap|fbw">
<configure name="SBUS1_UART" value="$(SBUS1_PORT)" case="upper|lower"/>
<configure name="SBUS2_UART" value="$(SBUS2_PORT)" case="upper|lower"/>
<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="sbus_dual.c"/>
<file name="sbus_common.c"/>
<test>
<define name="RADIO_CONTROL"/>
<define name="RADIO_CONTROL_TYPE_SBUS"/>
<define name="SBUS1_UART_DEV" value="uart4"/>
<define name="SBUS2_UART_DEV" value="uart5"/>
<define name="USE_UART4"/>
<define name="USE_UART5"/>
</test>
</makefile>
</module>