Files
paparazzi/conf/modules/actuators_spektrum.xml
T
Gautier Hattenberger 494e3f3ad9 [tests] add a compilation test node to modules (#2653)
When adding a test node to a makefile section, with required compilation
flags, include and other options, all the files (not arch dependent
files) can be compiled with a TAP compatible program, included in the
standard tests of the CI servers.
Not all module's XML files are converted, but a large part of the most
important parts are already covered. More will be added later. The
number of tested airframes (full compilation of all targets) have been
reduced to speed the CI compile time but still covers the relevant
architecture and boards.
The main benefit is that the overall coverage is already better than
before as previous test aircraft were compiling more or less the same
part of the airborne code, while this new mechanism is more efficient to
test modules not included in any config.
2021-02-08 17:24:19 +01:00

39 lines
1.8 KiB
XML

<!DOCTYPE module SYSTEM "module.dtd">
<module name="actuators_spektrum" dir="actuators" task="actuators">
<doc>
<description>
Actuators Driver with Spektrum output
required xml configuration:
- servo section with driver="Spektrum"
- command_laws section to map motor_mixing commands to servos
</description>
<configure name="ACTUATORS_SPEKTRUM_DEV" value="UARTX" description="UART port (default uart4)"/>
<configure name="ACTUATORS_SPEKTRUM_DEV2" value="UARTX" description="UART port for optional secondary output"/>
</doc>
<header>
<file name="actuators_spektrum.h" dir="subsystems/actuators"/>
</header>
<makefile target="!sim">
<configure name="ACTUATORS_SPEKTRUM_DEV" default="uart4" case="upper|lower"/>
<configure name="ACTUATORS_SPEKTRUM_DEV2" case="upper|lower"/>
<define name="ACTUATORS"/>
<define name="ACTUATORS_SPEKTRUM_DEV" value="$(ACTUATORS_SPEKTRUM_DEV_LOWER)"/>
<define name="USE_$(ACTUATORS_SPEKTRUM_DEV_UPPER)"/>
<define name="$(ACTUATORS_SPEKTRUM_DEV_UPPER)_BAUD" value="115200"/>
<define name="USE_$(ACTUATORS_SPEKTRUM_DEV_UPPER)_RC" value="FALSE"/>
<define name="ACTUATORS_SPEKTRUM_DEV2" value="$(ACTUATORS_SPEKTRUM_DEV2_LOWER)" cond="ifdef ACTUATORS_SPEKTRUM_DEV2"/>
<define name="USE_$(ACTUATORS_SPEKTRUM_DEV2_UPPER)"/>
<define name="$(ACTUATORS_SPEKTRUM_DEV2_UPPER)_BAUD" value="115200" cond="ifdef ACTUATORS_SPEKTRUM_DEV2"/>
<define name="USE_$(ACTUATORS_SPEKTRUM_DEV2_UPPER)_RC" value="FALSE" cond="ifdef ACTUATORS_SPEKTRUM_DEV2"/>
<file name="actuators_spektrum.c" dir="subsystems/actuators"/>
<test>
<define name="PERIODIC_FREQUENCY" value="500"/>
<define name="USE_UART4"/>
<define name="ACTUATORS_SPEKTRUM_DEV" value="uart4"/>
</test>
</makefile>
</module>