Actuators Driver using Futaba SBUS
Use an inverter after the serial output
Example for airframe file
Add to your firmware section: This example contains all possible configuration options, not all of them are mandatory!
<module name="actuators_sbus">
b'<configure name="ACTUATORS_SBUS_DEV" value="UARTX" />\n '
</module>
Module configuration options
Configure Options
- name:
ACTUATORS_SBUS_DEV
value: UARTX
Description: UART port (default uart4)
Files
Header Files
The following headers are automatically included in modules.h
Source Files
Raw actuators_sbus.xml file:
<!DOCTYPE module SYSTEM "module.dtd">
<module name="actuators_sbus" dir="actuators" task="actuators">
<doc>
<description>
Actuators Driver using Futaba SBUS
Use an inverter after the serial output
</description>
<configure name="ACTUATORS_SBUS_DEV" value="UARTX" description="UART port (default uart4)"/>
</doc>
<dep>
<depends>uart,actuators</depends>
<provides>actuators</provides>
</dep>
<header>
<file name="actuators_sbus.h"/>
</header>
<makefile target="!sim">
<configure name="ACTUATORS_SBUS_DEV" default="uart4" case="upper|lower"/>
<define name="ACTUATORS_SBUS_DEV" value="$(ACTUATORS_SBUS_DEV_LOWER)"/>
<define name="USE_$(ACTUATORS_SBUS_DEV_UPPER)"/>
<define name="$(ACTUATORS_SBUS_DEV_UPPER)_BAUD" value="100000"/>
<define name="USE_$(ACTUATORS_SBUS_DEV_UPPER)_RX" value="FALSE"/>
<file name="actuators_sbus.c"/>
<test>
<define name="USE_UART1"/>
<define name="PERIODIC_FREQUENCY" value="500"/>
<define name="ACTUATORS_SBUS_DEV" value="uart1"/>
</test>
</makefile>
</module>