rc.sensors: start tfmini with appropriate device path for FMUv3

This commit is contained in:
ChristophTobler 2018-01-18 14:16:44 +01:00 committed by Lorenz Meier
parent d6f137e10d
commit f294445cd0
1 changed files with 6 additions and 2 deletions

View File

@ -194,7 +194,7 @@ then
# lis3mdl internal SPI bus is rotated 90 deg yaw
else
# BMI055 gyro internal SPI bus
bmi055 -G start
bmi055 -G start
fi
fi
@ -396,7 +396,11 @@ fi
# Benewake TFMini
if param greater SENS_EN_TFMINI 0
then
tfmini start
if ver hwcmp PX4FMU_V3
then
# start the driver on serial 4/5
tfmini start -d /dev/ttyS6
fi
fi
# Wait 20 ms for sensors (because we need to wait for the HRT and work queue callbacks to fire)