Rename battery_uavcan to more genertic power_uavcan (#3299)

This commit is contained in:
Christophe De Wagter
2024-06-11 15:17:12 +02:00
committed by GitHub
parent 167b1768e5
commit 19be47a427
6 changed files with 291 additions and 159 deletions
+27
View File
@@ -0,0 +1,27 @@
<!DOCTYPE module SYSTEM "module.dtd">
<module name="power_uavcan" dir="sensors" task="sensors">
<doc>
<description>
Power sensors over the uavcan protocol:
- BatteryInfo
- CircuitStatus
</description>
<section name="POWER_UAVCAN" prefix="POWER_UAVCAN_">
<define name="BATTERIES_MAX" value="3" description="Maximum number of batteries"/>
<define name="CIRCUITS_MAX" value="3" description="Maximum number of circuits"/>
<define name="BATTERY_CIRCUITS" value="{}" description="Struct of {node_id, circuit_id} indicating the batteries"/>
</section>
</doc>
<dep>
<depends>uavcan</depends>
<provides></provides>
</dep>
<header>
<file name="power_uavcan.h"/>
</header>
<init fun="power_uavcan_init()"/>
<makefile target="ap">
<file name="power_uavcan.c"/>
</makefile>
</module>