Paparazzi UAS v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
Loading...
Searching...
No Matches
pdec module

Driver for the Pprz Decawave module, based on the DWM3001C

Allows ranging, as well as TDOA.

Example for airframe file

Add to your firmware section:

<module name="pdec"/>

Module functions

Init Functions

These initialization functions are called once on startup.

Event Functions

These event functions are called in each cycle of the module event loop.

Periodic Functions

These functions are called periodically at the specified frequency from the module periodic loop.

Files

Header Files

The following headers are automatically included in modules.h

Source Files

Raw pdec.xml file:

<!DOCTYPE module SYSTEM "module.dtd">
<module name="pdec" dir="decawave" task="sensors">
<doc>
<description>
Driver for the Pprz Decawave module, based on the DWM3001C. Allows ranging, as well as TDOA.
</description>
</doc>
<dep>
<depends>uart</depends>
<provides>ranging</provides>
<suggests>uwb_positioning</suggests>
</dep>
<header>
<file name="pdec.h"/>
</header>
<init fun="pdec_init()"/>
<periodic fun="pdec_periodic_report()" freq="10" autorun="FALSE"/>
<event fun="pdec_event()"/>
<makefile>
<configure name="PDEC_UART" default="UART3" case="upper|lower"/>
<define name="$(PDEC_UART_UPPER)_BAUD" value="B115200"/>
<define name="PDEC_UART_DEV" value="$(PDEC_UART_LOWER)"/>
<define name="USE_$(PDEC_UART_UPPER)"/>
<file name="pdec.c"/>
<test>
<define name="PDEC_UART_DEV" value="uart3"/>
<define name="USE_UART3"/>
<define name="DOWNLINK_TRANSPORT" value="pprz_tp"/>
<define name="DOWNLINK_DEVICE" value="uart0"/>
<define name="USE_UART0"/>
</test>
</makefile>
</module>