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.
57 lines
2.0 KiB
XML
57 lines
2.0 KiB
XML
<!DOCTYPE module SYSTEM "module.dtd">
|
|
|
|
<module name="gps_skytraq" dir="gps">
|
|
<doc>
|
|
<description>
|
|
Skytraq GPS (UART)
|
|
Driver for GPS modules using the Skytraq binary protocol.
|
|
</description>
|
|
<configure name="SKYTRAQ_GPS_PORT" value="UARTx" description="UART where the GPS is connected to (UART1, UART2, etc"/>
|
|
<configure name="SKYTRAQ_GPS_BAUD" value="B38400" description="UART baud rate"/>
|
|
</doc>
|
|
<autoload name="gps"/>
|
|
<autoload name="gps_nps"/>
|
|
<autoload name="gps_sim"/>
|
|
<header>
|
|
<file name="gps.h" dir="subsystems"/>
|
|
</header>
|
|
<init fun="gps_skytraq_init()"/>
|
|
<periodic fun="gps_skytraq_periodic_check()" freq="1." autorun="TRUE"/>
|
|
<event fun="gps_skytraq_event()"/>
|
|
<makefile target="ap|fbw">
|
|
<configure name="SKYTRAQ_GPS_PORT" default="$(GPS_PORT)" case="upper|lower"/>
|
|
<configure name="SKYTRAQ_GPS_BAUD" default="$(GPS_BAUD)"/>
|
|
|
|
<file name="gps_skytraq.c" dir="subsystems/gps"/>
|
|
|
|
<define name="USE_$(SKYTRAQ_GPS_PORT_UPPER)"/>
|
|
<define name="SKYTRAQ_GPS_LINK" value="$(SKYTRAQ_GPS_PORT_LOWER)"/>
|
|
<define name="$(SKYTRAQ_GPS_PORT_UPPER)_BAUD" value="$(SKYTRAQ_GPS_BAUD)"/>
|
|
<raw>
|
|
ifdef SECONDARY_GPS
|
|
ifneq (,$(findstring $(SECONDARY_GPS), skytraq))
|
|
# this is the secondary GPS
|
|
$(TARGET).CFLAGS += -DGPS_SECONDARY_TYPE_H=\"subsystems/gps/gps_skytraq.h\"
|
|
$(TARGET).CFLAGS += -DSECONDARY_GPS=GPS_SKYTRAQ
|
|
else
|
|
$(TARGET).CFLAGS += -DGPS_TYPE_H=\"subsystems/gps/gps_skytraq.h\"
|
|
$(TARGET).CFLAGS += -DPRIMARY_GPS=GPS_SKYTRAQ
|
|
endif
|
|
else
|
|
# plain old single GPS usage
|
|
$(TARGET).CFLAGS += -DGPS_TYPE_H=\"subsystems/gps/gps_skytraq.h\"
|
|
endif
|
|
</raw>
|
|
<test>
|
|
<define name="PRIMARY_GPS" value="GPS_SKYTRAQ"/>
|
|
<define name="SKYTRAQ_GPS_PORT" value="uart2"/>
|
|
<define name="SKYTRAQ_GPS_BAUD" value="115200"/>
|
|
<define name="USE_UART2"/>
|
|
<define name="SKYTRAQ_GPS_LINK" value="uart2"/>
|
|
</test>
|
|
</makefile>
|
|
<makefile target="fbw">
|
|
<define name="USE_GPS"/>
|
|
</makefile>
|
|
</module>
|