Paparazzi UAS  v5.0.5_stable-7-g4b8bbb7
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Angle of Attack using internal ADC

Module XML file: AOA_adc.xml

No detailed description...

Module configuration options

Configure Options

  • name: ADC_AOA value: ADC_X
    Description: select the ADC channel to use

Define Options

  • name: AOA_SENS value: (2*3.14)/1024
    Description: sensor sensitivity
  • name: AOA_OFFSET value: 3.14
    Description: offset in radians
  • name: AOA_FILTER value: 0.5
    Description: filtering parameter between 0 (no filtering) and 1

Module functions

Init Functions

These initialization functions are called once on startup.

Periodic Functions

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

  • AOA_adc_update()
    • Frequency in Hz: 60.
    • 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 AOA_adc.xml file:

<!DOCTYPE module SYSTEM "module.dtd">
<module name="AOA_adc" dir="sensors">
<doc>
<description>Angle of Attack using internal ADC</description>
<configure name="ADC_AOA" value="ADC_X" description="select the ADC channel to use"/>
<define name="AOA_SENS" value="(2*3.14)/1024" description="sensor sensitivity"/>
<define name="AOA_OFFSET" value="3.14" description="offset in radians"/>
<define name="AOA_FILTER" value="0.5" description="filtering parameter between 0 (no filtering) and 1"/>
</doc>
<header>
<file name="AOA_adc.h"/>
</header>
<init fun="AOA_adc_init()"/>
<periodic fun="AOA_adc_update()" freq="60."/>
<makefile>
<file name="AOA_adc.c"/>
</makefile>
<makefile target="ap">
<define name="ADC_CHANNEL_AOA" value="$(ADC_AOA)"/>
<define name="USE_$(ADC_AOA)"/>
</makefile>
</module>