Paparazzi UAS  v5.12_stable-4-g9b43e9b
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
current_sensor module

Current sensor via onboard ADC.

No detailed description...

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="current_sensor">
2  <configure name="ADC_CURRENT_SENSOR" value="ADC_0|ADC_1|ADC_2|ADC_3" />
3 </module>

Module configuration options

Configure Options

  • name: ADC_CURRENT_SENSOR value: ADC_0|ADC_1|ADC_2|ADC_3
    Description: ADC to use

Files

Raw current_sensor.xml file:

<!DOCTYPE module SYSTEM "module.dtd">
<module name="current_sensor">
<doc>
<description>
Current sensor via onboard ADC.
</description>
<configure name="ADC_CURRENT_SENSOR" value="ADC_0|ADC_1|ADC_2|ADC_3" description="ADC to use"/>
</doc>
<makefile target="ap">
<define name="ADC_CHANNEL_CURRENT" value="$(ADC_CURRENT_SENSOR)"/>
<define name="USE_$(ADC_CURRENT_SENSOR)"/>
</makefile>
</module>