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!
<module name="current_sensor">
b'<configure name="ADC_CURRENT_SENSOR" value="ADC_0|ADC_1|ADC_2|ADC_3" />\n '
</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>