mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-09 22:49:53 +08:00
494e3f3ad9
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.
46 lines
2.0 KiB
XML
46 lines
2.0 KiB
XML
<!DOCTYPE module SYSTEM "module.dtd">
|
|
|
|
<module name="radio_control_ppm" dir="radio_control">
|
|
<doc>
|
|
<description>
|
|
Radio control based on PPM input
|
|
|
|
Some STM32 boards have the option to configure RADIO_CONTROL_PPM_PIN.
|
|
See the board makefile for configure options of the pins.
|
|
If they set the PPM_CONFIG makefile variable, add it to the target.
|
|
The PPM_CONFIG define is then used in the _board_.h file to set the configuration.
|
|
</description>
|
|
<configure name="RADIO_CONTROL_LED" value="none|num" description="LED number or 'none' to disable"/>
|
|
<configure name="PPM_CONFIG" value="num" description="Select PPM config, as some boards can used different mapping for the ppm input pin"/>
|
|
</doc>
|
|
<header>
|
|
<file name="ppm.h" dir="subsystems/radio_control"/>
|
|
</header>
|
|
<makefile target="ap|fbw|sim|nps|hitl">
|
|
<configure name="RADIO_CONTROL_LED" default="none"/>
|
|
<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/ppm.h" type="string"/>
|
|
<define name="PPM_CONFIG" value="$(PPM_CONFIG)" cond="ifdef PPM_CONFIG"/>
|
|
</makefile>
|
|
<makefile target="fbw|sim|nps|hitl">
|
|
<define name="RADIO_CONTROL"/>
|
|
<define name="RADIO_CONTROL_TYPE_PPM"/>
|
|
<file name="radio_control.c" dir="subsystems"/>
|
|
<file name="ppm.c" dir="subsystems/radio_control"/>
|
|
<file_arch name="ppm_arch.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_PPM"/>
|
|
<file name="radio_control.c" dir="subsystems"/>
|
|
<file name="ppm.c" dir="subsystems/radio_control"/>
|
|
<file_arch name="ppm_arch.c" dir="subsystems/radio_control"/>
|
|
<test>
|
|
<define name="RADIO_CONTROL"/>
|
|
<define name="RADIO_CONTROL_TYPE_PPM"/>
|
|
<define name="RADIO_CONTROL_TYPE_H" value="subsystems/radio_control/ppm.h" type="string"/>
|
|
</test>
|
|
</makefile>
|
|
</module>
|
|
|