mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-09 22:49:53 +08:00
62646d68de
Add two new items in module's dependency: - recommends: a recommended module tells the sorting algo that if the module is found, it should be sorted accordingly. It is useful for optional dependencies, like shell or mission in some modules - suggests: if a functionality is not provided by the user, a module can suggest a list of modules that can provide them. It is a convenient way to have "default" modules. As a result the former autoload node is removed and replaced by suggested modules.
43 lines
1.1 KiB
XML
43 lines
1.1 KiB
XML
<!DOCTYPE module SYSTEM "module.dtd">
|
|
|
|
<module name="gps_udp" dir="gps" task="sensors">
|
|
<doc>
|
|
<description>
|
|
GPS via UDP.
|
|
Read GPS messages from UDP port 7000.
|
|
|
|
TODO not working; to be removed or fixed
|
|
</description>
|
|
<define name="GPS_UDP_HOST" value="192.168.1.2" description="host sending GPS messages"/>
|
|
</doc>
|
|
<dep>
|
|
<depends>udp,gps</depends>
|
|
<provides>gps</provides>
|
|
</dep>
|
|
<header>
|
|
<file name="gps.h"/>
|
|
</header>
|
|
<init fun="gps_udp_init()"/>
|
|
<periodic fun="gps_udp_periodic_check()" freq="1." autorun="TRUE"/>
|
|
<makefile target="ap">
|
|
|
|
<file name="gps_udp.c"/>
|
|
|
|
<raw>
|
|
ifdef SECONDARY_GPS
|
|
ifneq (,$(findstring $(SECONDARY_GPS), udp))
|
|
# this is the secondary GPS
|
|
ap.CFLAGS += -DGPS_SECONDARY_TYPE_H=\"modules/gps/gps_udp.h\"
|
|
ap.CFLAGS += -DSECONDARY_GPS=GPS_UDP
|
|
else
|
|
ap.CFLAGS += -DGPS_TYPE_H=\"modules/gps/gps_udp.h\"
|
|
ap.CFLAGS += -DPRIMARY_GPS=GPS_UDP
|
|
endif
|
|
else
|
|
# plain old single GPS usage
|
|
ap.CFLAGS += -DGPS_TYPE_H=\"modules/gps/gps_udp.h\"
|
|
endif
|
|
</raw>
|
|
</makefile>
|
|
</module>
|