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.
47 lines
1.9 KiB
XML
47 lines
1.9 KiB
XML
<!DOCTYPE module SYSTEM "module.dtd">
|
|
|
|
<module name="telemetry_transparent_udp" dir="datalink" task="datalink">
|
|
<doc>
|
|
<description>
|
|
Telemetry using PPRZ protocol over UDP
|
|
</description>
|
|
<configure name="MODEM_DEV" value="UDPx" description="UDP port used for communication"/>
|
|
<configure name="MODEM_HOST" value="192.168.1.255" description="IP address of the ground station (can be a broadcast address)"/>
|
|
<configure name="MODEM_PORT_OUT" value="4242" description="output UDP port"/>
|
|
<configure name="MODEM_PORT_IN" value="4243" description="input UDP port"/>
|
|
<configure name="MODEM_BROADCAST" value="TRUE|FALSE" description="UDP socket in broadcast mode"/>
|
|
</doc>
|
|
<dep>
|
|
<depends>udp,datalink_common</depends>
|
|
<provides>datalink,telemetry</provides>
|
|
</dep>
|
|
<header>
|
|
<file name="pprz_dl.h"/>
|
|
</header>
|
|
<init fun="pprz_dl_init()"/>
|
|
<event fun="pprz_dl_event()"/>
|
|
<makefile target="!sim">
|
|
<configure name="MODEM_DEV" default="UDP0" case="upper|lower"/>
|
|
<configure name="MODEM_PORT_OUT" default="4242"/>
|
|
<configure name="MODEM_PORT_IN" default="4243"/>
|
|
<configure name="MODEM_BROADCAST" default="TRUE"/>
|
|
<define name="USE_$(MODEM_DEV_UPPER)"/>
|
|
<define name="$(MODEM_DEV_UPPER)_HOST" value="$(MODEM_HOST)"/>
|
|
<define name="$(MODEM_DEV_UPPER)_PORT_OUT" value="$(MODEM_PORT_OUT)"/>
|
|
<define name="$(MODEM_DEV_UPPER)_PORT_IN" value="$(MODEM_PORT_IN)"/>
|
|
<define name="$(MODEM_DEV_UPPER)_BROADCAST" value="$(MODEM_BROADCAST)"/>
|
|
<define name="DOWNLINK_DEVICE" value="$(MODEM_DEV_LOWER)"/>
|
|
<define name="PPRZ_UART" value="$(MODEM_DEV_LOWER)"/>
|
|
<define name="DOWNLINK_TRANSPORT" value="pprz_tp"/>
|
|
<define name="DATALINK" value="PPRZ"/>
|
|
<file name="pprz_dl.c"/>
|
|
<file name="pprz_transport.c" dir="pprzlink/src"/>
|
|
<test>
|
|
<define name="DOWNLINK_DEVICE" value="udp0"/>
|
|
<define name="USE_UDP"/>
|
|
<define name="USE_UDP0"/>
|
|
</test>
|
|
</makefile>
|
|
</module>
|
|
|