Paparazzi UAS  v5.15_devel-230-gc96ce27
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
airspeed_uadc module

Driver for the Aeroprobe uADC air data computer.

The Aeroprobe uADC 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, altitude, total pressure and static pressure.

Example for airframe file

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

1 <module name="airspeed_uADC">
2  <configure name="UADC_UART" value="UARTX" />
3 </module>

Module configuration options

Configure Options

  • name: UADC_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.

Files

Header Files

The following headers are automatically included in modules.h

Source Files

Raw airspeed_uADC.xml file:

<!DOCTYPE module SYSTEM "module.dtd">
<module name="airspeed_uADC" dir="sensors">
<doc>
<description>
Driver for the Aeroprobe uADC air data computer.
The Aeroprobe uADC 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, altitude, total pressure and static pressure.
</description>
<configure name="UADC_UART" value="UARTX" description="UART on which computer is connected"/>
</doc>
<header>
<file name="met_module.h"/>
<file name="airspeed_uADC.h"/>
</header>
<init fun="airspeed_uADC_init()"/>
<periodic fun="airspeed_uADC_periodic()" freq="1" autorun="TRUE"/>
<event fun="airspeed_uADC_event()"/>
<makefile target="ap">
<configure name="UADC_UART" case="upper|lower"/>
<file name="airspeed_uADC.c"/>
<define name="USE_$(UADC_UART_UPPER)"/>
<define name="uADC_DEV" value="$(UADC_UART_LOWER)"/>
<define name="$(UADC_UART_UPPER)_BAUD" value="B115200"/>
</makefile>
</module>