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.
48 lines
2.1 KiB
XML
48 lines
2.1 KiB
XML
<!DOCTYPE module SYSTEM "module.dtd">
|
|
|
|
<module name="hott_telemetry" dir="hott">
|
|
<doc>
|
|
<description>
|
|
Graupner HOTT telemetry control module.
|
|
Electric and General Air modules simulation supported.
|
|
The module configured by default to use UART1 port and to simulate Electric Air module.
|
|
The port number can be changed from modules section in airframe setup file.
|
|
</description>
|
|
<configure name="HOTT_SIM_EAM_SENSOR" value="0|1" description="Electric Air module simulation switch"/>
|
|
<configure name="HOTT_SIM_GAM_SENSOR" value="0|1" description="General Air module simulation switch"/>
|
|
<configure name="HOTT_SIM_GPS_SENSOR" value="0|1" description="GPS module simulation switch"/>
|
|
<configure name="HOTT_SIM_VARIO_SENSOR" value="0|1" description="Vario module simulation switch"/>
|
|
<configure name="HOTT_UART" value="UART1|UART2|UART3|UART4|UART5|UART6" description="HOTT telemetry port name"/>
|
|
</doc>
|
|
|
|
<header>
|
|
<file name="hott.h"/>
|
|
</header>
|
|
|
|
<init fun="hott_init()"/>
|
|
<periodic fun="hott_periodic()" freq="5."/>
|
|
<event fun="hott_event()"/>
|
|
|
|
<makefile target="ap">
|
|
<file name="hott.c"/>
|
|
<configure name="HOTT_PORT" default="uart1" case="upper|lower"/>
|
|
<configure name="HOTT_SIM_EAM_SENSOR" default="1"/>
|
|
<configure name="HOTT_SIM_GAM_SENSOR" default="0"/>
|
|
<configure name="HOTT_SIM_GPS_SENSOR" default="0"/>
|
|
<configure name="HOTT_SIM_VARIO_SENSOR" default="0"/>
|
|
<define name="HOTT_PORT" value="$(HOTT_PORT_LOWER)"/>
|
|
<define name="USE_$(HOTT_PORT_UPPER)"/>
|
|
<define name="$(HOTT_PORT_UPPER)_BAUD" value="B19200"/>
|
|
<define name="HOTT_SIM_EAM_SENSOR" value="$(HOTT_SIM_EAM_SENSOR)"/>
|
|
<define name="HOTT_SIM_GAM_SENSOR" value="$(HOTT_SIM_GAM_SENSOR)"/>
|
|
<define name="HOTT_SIM_GPS_SENSOR" value="$(HOTT_SIM_GPS_SENSOR)"/>
|
|
<define name="HOTT_SIM_VARIO_SENSOR" value="$(HOTT_SIM_VARIO_SENSOR)"/>
|
|
<test firmware="fixedwing">
|
|
<define name="HOTT_PORT" value="uart1"/>
|
|
<define name="USE_UART1"/>
|
|
<define name="HOTT_SIM_EAM_SENSOR" value="1"/>
|
|
</test>
|
|
</makefile>
|
|
</module>
|
|
|