mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-20 03:23:35 +08:00
add new parameter SENS_EN_PMW3901 to start pmw3901 optical flow
This commit is contained in:
committed by
Daniel Agar
parent
47355333ad
commit
8a45c6145b
@@ -12,10 +12,9 @@ lsm303agr -R 4 start
|
||||
|
||||
ms4525_airspeed -T 4515 -b 3 start
|
||||
|
||||
# try to autostart pmw3901 on SPI2 (external)
|
||||
if ! pmw3901 start
|
||||
if ! param greater SENS_EN_PMW3901 0
|
||||
then
|
||||
# if pmw3901 failed to start, try starting the adis16497 (SPI2)
|
||||
# try to start adis16497 only if pmw3901 isn't enabled, or parameter doesn't exists
|
||||
adis16497 start
|
||||
fi
|
||||
|
||||
|
||||
@@ -12,4 +12,3 @@ lps25h start
|
||||
|
||||
# Optical flow deck
|
||||
vl53lxx start
|
||||
pmw3901 start
|
||||
|
||||
@@ -68,5 +68,3 @@ then
|
||||
# BMI160 internal SPI bus
|
||||
bmi160 start
|
||||
fi
|
||||
|
||||
pmw3901 start
|
||||
|
||||
@@ -24,9 +24,3 @@ lis3mdl -X start
|
||||
|
||||
# Possible internal compass
|
||||
ist8310 -C -b 5 start
|
||||
|
||||
# Possible pmw3901 optical flow sensor
|
||||
pmw3901 start
|
||||
|
||||
# Internal SPI
|
||||
ms5611 -s start
|
||||
|
||||
@@ -31,6 +31,3 @@ bmm150 start
|
||||
# Possible internal Barro
|
||||
bmp388 -I start
|
||||
#bmp388 -J start fixme
|
||||
|
||||
# Possible pmw3901 optical flow sensor
|
||||
pmw3901 start
|
||||
|
||||
Reference in New Issue
Block a user