Files
paparazzi/conf/modules/power_uavcan.xml
T
Fabien-B 776a22f459
Doxygen / build (push) Waiting to run
Uavcan update (#3424)
* [uavcan] Start updating UAVCAN to latest version.
Now renamed DroneCAN.

* [uavcan] Update airspeed.

* [uavcan] Update power.

* [uavcan] Update range sensor.

* [uavcan] WIP actuators.

* [dronecan] Fix makefile for new installations

- The Makefile doesn't execute the .sync .update when added to the .PHONY section
- The DSDL folder doesn't exist before the .sync .update of the DSDL

* [can] Add documentation for USE_CANx define and fix dronecan

* [dronecan] Update actuators

* [dronecan] Cleanup actuator feedback

---------

Co-authored-by: Fabien-B <Fabien-B@github.com>
Co-authored-by: Freek van Tienen <freek.v.tienen@gmail.com>
2025-03-13 10:23:13 +01:00

34 lines
1.2 KiB
XML

<!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"/>
<file name="pprz_random.c" dir="math"/>
<!-- Load DSDL generated files-->
<include name="$(PAPARAZZI_HOME)/var/include/DSDLcode/include"/>
<file name="uavcan.equipment.power.BatteryInfo.c" dir="$(PAPARAZZI_HOME)/var/include/DSDLcode/src"/>
<file name="uavcan.equipment.power.CircuitStatus.c" dir="$(PAPARAZZI_HOME)/var/include/DSDLcode/src"/>
</makefile>
</module>