add new parameter SENS_EN_PMW3901 to start pmw3901 optical flow

This commit is contained in:
BazookaJoe1900
2019-09-02 18:08:51 +03:00
committed by Daniel Agar
parent 47355333ad
commit 8a45c6145b
7 changed files with 50 additions and 15 deletions

View File

@@ -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