mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-09 14:18:00 +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.
47 lines
1.6 KiB
XML
47 lines
1.6 KiB
XML
<!DOCTYPE module SYSTEM "module.dtd">
|
|
|
|
<module name="gps_datalink" dir="gps">
|
|
<doc>
|
|
<description>
|
|
Remote GPS via datalink.
|
|
Parses the REMOTE_GPS and REMOTE_GPS_SMALL datalink messages and publishes it onboard via ABI.
|
|
</description>
|
|
</doc>
|
|
<autoload name="gps"/>
|
|
<autoload name="gps_nps"/>
|
|
<autoload name="gps_sim"/>
|
|
<header>
|
|
<file name="gps.h" dir="subsystems"/>
|
|
</header>
|
|
<init fun="gps_datalink_init()"/>
|
|
<periodic fun="gps_datalink_periodic_check()" freq="1." autorun="TRUE"/>
|
|
<datalink message="REMOTE_GPS" fun="gps_datalink_parse_REMOTE_GPS(buf)"/>
|
|
<datalink message="REMOTE_GPS_SMALL" fun="gps_datalink_parse_REMOTE_GPS_SMALL(buf)"/>
|
|
<datalink message="REMOTE_GPS_LOCAL" fun="gps_datalink_parse_REMOTE_GPS_LOCAL(buf)"/>
|
|
<makefile target="ap|fbw">
|
|
<file name="gps_datalink.c" dir="subsystems/gps"/>
|
|
<raw>
|
|
ifdef SECONDARY_GPS
|
|
ifneq (,$(findstring $(SECONDARY_GPS), datalink))
|
|
# this is the secondary GPS
|
|
$(TARGET).CFLAGS += -DGPS_SECONDARY_TYPE_H=\"subsystems/gps/gps_datalink.h\"
|
|
$(TARGET).CFLAGS += -DSECONDARY_GPS=GPS_DATALINK
|
|
else
|
|
$(TARGET).CFLAGS += -DGPS_TYPE_H=\"subsystems/gps/gps_datalink.h\"
|
|
$(TARGET).CFLAGS += -DPRIMARY_GPS=GPS_DATALINK
|
|
endif
|
|
else
|
|
# plain old single GPS usage
|
|
$(TARGET).CFLAGS += -DGPS_TYPE_H=\"subsystems/gps/gps_datalink.h\"
|
|
endif
|
|
</raw>
|
|
<test firmware="rotorcraft">
|
|
<define name="PRIMARY_GPS" value="GPS_DATALINK"/>
|
|
</test>
|
|
</makefile>
|
|
<makefile target="fbw">
|
|
<define name="USE_GPS"/>
|
|
</makefile>
|
|
</module>
|
|
|