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.
38 lines
1.3 KiB
XML
38 lines
1.3 KiB
XML
<!DOCTYPE module SYSTEM "module.dtd">
|
|
|
|
<module name="airspeed_uADC" dir="sensors">
|
|
<doc>
|
|
<description>
|
|
Driver for the Aeroprobe uADC air data computer.
|
|
|
|
The Aeroprobe uADC air data computer measures
|
|
air pressure from a 5-hole pitot tube and can write
|
|
resulting data to an SD card or transmit it through an
|
|
UART. It outputs speed, angle of attack, angle of
|
|
sideslip, altitude, total pressure and static pressure.
|
|
</description>
|
|
<configure name="UADC_UART" value="UARTX" description="UART on which computer is connected"/>
|
|
</doc>
|
|
<header>
|
|
<file name="met_module.h"/>
|
|
<file name="airspeed_uADC.h"/>
|
|
</header>
|
|
<init fun="airspeed_uADC_init()"/>
|
|
<periodic fun="airspeed_uADC_periodic()" freq="1" autorun="TRUE"/>
|
|
<event fun="airspeed_uADC_event()"/>
|
|
<makefile target="ap">
|
|
<configure name="UADC_UART" case="upper|lower"/>
|
|
<file name="airspeed_uADC.c"/>
|
|
<define name="USE_$(UADC_UART_UPPER)"/>
|
|
<define name="uADC_DEV" value="$(UADC_UART_LOWER)"/>
|
|
<define name="$(UADC_UART_UPPER)_BAUD" value="B115200"/>
|
|
<test>
|
|
<define name="uADC_DEV" value="uart0"/>
|
|
<define name="DOWNLINK_TRANSPORT" value="pprz_tp"/>
|
|
<define name="DOWNLINK_DEVICE" value="uart0"/>
|
|
<define name="USE_UART0"/>
|
|
</test>
|
|
</makefile>
|
|
</module>
|
|
|