mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
Fix boot process on Pixhawk 2 (#5844)
* Pixhawk2: Check for mpu9250 during boot * Fix indentation style
This commit is contained in:
parent
77a23a043f
commit
697d401b73
@ -74,7 +74,13 @@ then
|
||||
then
|
||||
set BOARD_FMUV3 true
|
||||
else
|
||||
set BOARD_FMUV3 false
|
||||
# Check for Pixhawk 2 board
|
||||
if mpu9250 -S -R 4 start
|
||||
then
|
||||
set BOARD_FMUV3 true
|
||||
else
|
||||
set BOARD_FMUV3 false
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ $BOARD_FMUV3 == true ]
|
||||
@ -92,6 +98,10 @@ then
|
||||
# internal MPU6000 is rotated 180 deg roll, 270 deg yaw
|
||||
if mpu6000 -R 14 start
|
||||
then
|
||||
else
|
||||
if mpu9250 -R 14 start
|
||||
then
|
||||
fi
|
||||
fi
|
||||
|
||||
if hmc5883 -C -T -S -R 8 start
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user