mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-01 05:21:36 +08:00
rc.sensors: start tfmini with appropriate device path for FMUv3
This commit is contained in:
committed by
Lorenz Meier
parent
d6f137e10d
commit
f294445cd0
@@ -194,7 +194,7 @@ then
|
|||||||
# lis3mdl internal SPI bus is rotated 90 deg yaw
|
# lis3mdl internal SPI bus is rotated 90 deg yaw
|
||||||
else
|
else
|
||||||
# BMI055 gyro internal SPI bus
|
# BMI055 gyro internal SPI bus
|
||||||
bmi055 -G start
|
bmi055 -G start
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -396,7 +396,11 @@ fi
|
|||||||
# Benewake TFMini
|
# Benewake TFMini
|
||||||
if param greater SENS_EN_TFMINI 0
|
if param greater SENS_EN_TFMINI 0
|
||||||
then
|
then
|
||||||
tfmini start
|
if ver hwcmp PX4FMU_V3
|
||||||
|
then
|
||||||
|
# start the driver on serial 4/5
|
||||||
|
tfmini start -d /dev/ttyS6
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Wait 20 ms for sensors (because we need to wait for the HRT and work queue callbacks to fire)
|
# Wait 20 ms for sensors (because we need to wait for the HRT and work queue callbacks to fire)
|
||||||
|
|||||||
Reference in New Issue
Block a user