drivers: Add LeddarOne lidar driver

More information: https://leddartech.com/modules/leddarone/
This commit is contained in:
José Roberto de Souza
2017-11-30 17:30:45 -08:00
committed by ChristophTobler
parent eaf401a32f
commit d0baf95df3
5 changed files with 642 additions and 0 deletions
+21
View File
@@ -415,6 +415,27 @@ then
fi
fi
# LeddarOne
if param greater SENS_EN_LEDDAR1 0
then
if ver hwcmp PX4FMU_V3
then
# start the driver on serial 4/5
leddar_one -d /dev/ttyS6 start
else
if ver hwcmp AEROFC_V1
then
# start the driver on telemetry
leddar_one -d /dev/ttyS3 start
else
if param compare SYS_COMPANION 0
then
# start on default mavlink companion device
leddar_one -d /dev/ttyS2 start
fi
fi
fi
# Wait 20 ms for sensors (because we need to wait for the HRT and work queue callbacks to fire)
usleep 20000
sensors start