mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-12 10:57:35 +08:00
drivers: Add LeddarOne lidar driver
More information: https://leddartech.com/modules/leddarone/
This commit is contained in:
committed by
ChristophTobler
parent
eaf401a32f
commit
d0baf95df3
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user