Fix boot process on Pixhawk 2 (#5844)

* Pixhawk2: Check for mpu9250 during boot

* Fix indentation style
This commit is contained in:
Michael Schäuble 2016-11-12 12:57:33 +01:00 committed by Lorenz Meier
parent 77a23a043f
commit 697d401b73

View File

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