mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-09 22:49:53 +08:00
42 lines
1.3 KiB
XML
42 lines
1.3 KiB
XML
<!DOCTYPE module SYSTEM "module.dtd">
|
|
|
|
<module name="gps_udp">
|
|
<doc>
|
|
<description>
|
|
GPS via UDP.
|
|
Read GPS messages from UDP port 7000.
|
|
</description>
|
|
<define name="GPS_UDP_HOST" value="192.168.1.2" description="host sending GPS messages"/>
|
|
<configure name="GPS_LED" value="2" description="LED number to indicate fix or none"/>
|
|
</doc>
|
|
<header>
|
|
<file name="gps.h" dir="subsystems"/>
|
|
</header>
|
|
<init fun="gps_udp_init()"/>
|
|
<!--periodic fun="gps_periodic_check()" freq="1." autorun="TRUE"/-->
|
|
<makefile target="ap">
|
|
<configure name="GPS_LED" default="none"/>
|
|
|
|
<file name="gps.c" dir="subsystems"/>
|
|
<file name="gps_udp.c" dir="subsystems/gps"/>
|
|
|
|
<define name="USE_GPS"/>
|
|
<define name="GPS_LED" value="$(GPS_LED)" cond="ifneq ($(GPS_LED),none)"/>
|
|
<raw>
|
|
ifdef SECONDARY_GPS
|
|
ifneq (,$(findstring $(SECONDARY_GPS), udp))
|
|
# this is the secondary GPS
|
|
ap.CFLAGS += -DGPS_SECONDARY_TYPE_H=\"subsystems/gps/gps_udp.h\"
|
|
ap.CFLAGS += -DSECONDARY_GPS=GPS_UDP
|
|
else
|
|
ap.CFLAGS += -DGPS_TYPE_H=\"subsystems/gps/gps_udp.h\"
|
|
ap.CFLAGS += -DPRIMARY_GPS=GPS_UDP
|
|
endif
|
|
else
|
|
# plain old single GPS usage
|
|
ap.CFLAGS += -DGPS_TYPE_H=\"subsystems/gps/gps_udp.h\"
|
|
endif
|
|
</raw>
|
|
</makefile>
|
|
</module>
|