mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-21 01:12:11 +00:00
move fmu-v4 init to rc.board
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
#!nsh
|
||||
#
|
||||
# Standard startup script for PX4FMU v2, v3, v4 onboard sensor drivers.
|
||||
# Standard startup script for onboard sensor drivers.
|
||||
#
|
||||
|
||||
# Configure all I2C buses to 100 KHz as they
|
||||
@@ -82,33 +82,6 @@ then
|
||||
fi
|
||||
fi
|
||||
|
||||
if ver hwcmp PX4_FMU_V4
|
||||
then
|
||||
# External I2C bus
|
||||
if hmc5883 -C -T -X start
|
||||
then
|
||||
fi
|
||||
|
||||
if lis3mdl -R 2 start
|
||||
then
|
||||
fi
|
||||
|
||||
# Internal SPI bus is rotated 90 deg yaw
|
||||
if hmc5883 -C -T -S -R 2 start
|
||||
then
|
||||
fi
|
||||
|
||||
# Internal SPI bus ICM-20608-G is rotated 90 deg yaw
|
||||
if mpu6000 -R 2 -T 20608 start
|
||||
then
|
||||
fi
|
||||
|
||||
# Internal SPI bus mpu9250 is rotated 90 deg yaw
|
||||
if mpu9250 -R 2 start
|
||||
then
|
||||
fi
|
||||
fi
|
||||
|
||||
if ver hwcmp AIRMIND_MINDPX_V2
|
||||
then
|
||||
# External I2C bus
|
||||
|
||||
Reference in New Issue
Block a user