Paparazzi UAS  v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
airspeed_otf module

OTF! airspeed/flow angle sensor

Driver for the Aeroprobe On-The-Fly! air data computer.

The Aeroprobe On-The-Fly! air data computer measures air pressure from a 5-hole pitot tube and can write resulting data to an SD card or transmit it through an UART. It outputs speed, angle of attack, angle of sideslip and altitude.

Example for airframe file

Add to your firmware section: This example contains all possible configuration options, not all of them are mandatory!

<module name="airspeed_otf">
b'<configure name="OTF_UART" value="UARTX" />\n '
</module>

Module configuration options

Configure Options

  • name: OTF_UART value: UARTX
    Description: UART on which computer is connected

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.

  • airspeed_otf_periodic()
    • Frequency in Hz: 1
    • Autorun: LOCK
      Periodic function automatically starts after init and can't be stopped.

Files

Header Files

The following headers are automatically included in modules.h

Source Files

Raw airspeed_otf.xml file:

<!DOCTYPE module SYSTEM "module.dtd">
<module name="airspeed_otf" dir="sensors">
<doc>
<description>
OTF! airspeed/flow angle sensor
Driver for the Aeroprobe On-The-Fly! air data computer.
The Aeroprobe On-The-Fly! air data computer measures
air pressure from a 5-hole pitot tube and can write
resulting data to an SD card or transmit it through an
UART. It outputs speed, angle of attack, angle of
sideslip and altitude.
</description>
<configure name="OTF_UART" value="UARTX" description="UART on which computer is connected"/>
</doc>
<header>
<file name="met_module.h"/>
<file name="airspeed_otf.h"/>
</header>
<init fun="airspeed_otf_init()"/>
<periodic fun="airspeed_otf_periodic()" freq="1"/>
<event fun="airspeed_otf_event()"/>
<makefile target="ap">
<configure name="OTF_UART" case="upper|lower"/>
<file name="airspeed_otf.c"/>
<define name="USE_$(OTF_UART_UPPER)"/>
<define name="MET_LINK" value="$(OTF_UART_LOWER)"/>
<define name="$(OTF_UART_UPPER)_BAUD" value="B115200"/>
<test>
<define name="MET_LINK" value="uart0"/>
<define name="DOWNLINK_TRANSPORT" value="pprz_tp"/>
<define name="DOWNLINK_DEVICE" value="uart0"/>
<define name="USE_UART0"/>
</test>
</makefile>
</module>