[modules] UAVCAN range sensor and cleanup (#3198)

* [modules] Cleanup airspeed uavcan

* [modules] Add UAVCAN range sensor
This commit is contained in:
Freek van Tienen
2023-12-11 20:39:47 +01:00
committed by GitHub
parent 0b8cc6b5f2
commit 864cfba4bd
9 changed files with 178 additions and 40 deletions
+2 -6
View File
@@ -3,25 +3,21 @@
<module name="airspeed_uavcan" dir="sensors" task="sensors">
<doc>
<description>
Airspeed sensor over the uavcan protocol. Currently only subscribes to the
Airspeed sensor over the uavcan protocol and optionally publishes over ABI.
</description>
<define name="AIRSPEED_UAVCAN_LOWPASS_FILTER" value="TRUE|FALSE" description="Enable the lowpass filter for the airspeed"/>
<define name="AIRSPEED_UAVCAN_LOWPASS_TAU" value="0.15" description="Time constant for second order Butterworth low pass filter"/>
<define name="AIRSPEED_UAVCAN_LOWPASS_PERIOD" value="0.1" description="Period at which the sensor is sending airspeed"/>
<define name="AIRSPEED_UAVCAN_SEND_ABI" value="1" description="1 = Send ABI message, 0 = Log only"/>
<define name="AIRSPEED_UAVCAN_SEND_ABI" value="true" description="Send the uavcan airspeed sensor over ABI"/>
</doc>
<dep>
<depends>uavcan</depends>
<provides>airspeed</provides>
</dep>
<header>
<file name="airspeed_uavcan.h"/>
</header>
<init fun="airspeed_uavcan_init()"/>
<makefile target="ap">
<file name="airspeed_uavcan.c"/>
</makefile>
+20
View File
@@ -0,0 +1,20 @@
<!DOCTYPE module SYSTEM "module.dtd">
<module name="range_sensor_uavcan" dir="sensors" task="sensors">
<doc>
<description>
Range sensor over the uavcan protocol which publishes over ABI as AGL
</description>
</doc>
<dep>
<depends>uavcan</depends>
<provides>sonar</provides>
</dep>
<header>
<file name="range_sensor_uavcan.h"/>
</header>
<init fun="range_sensor_uavcan_init()"/>
<makefile target="ap">
<file name="range_sensor_uavcan.c"/>
</makefile>
</module>