mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-18 06:38:29 -04:00
PX4: enable probe of MPU9250 if available
This commit is contained in:
parent
d8cee50878
commit
baeddfe4f3
@ -264,8 +264,14 @@ else
|
|||||||
echo "Found MPU6000 external"
|
echo "Found MPU6000 external"
|
||||||
set HAVE_FMUV3 true
|
set HAVE_FMUV3 true
|
||||||
else
|
else
|
||||||
echo "No MPU6000 external"
|
if mpu9250 -X -R 4 start
|
||||||
set HAVE_FMUV3 false
|
then
|
||||||
|
echo "Found MPU9250 external"
|
||||||
|
set HAVE_FMUV3 true
|
||||||
|
else
|
||||||
|
echo "No MPU6000 or MPU9250 external"
|
||||||
|
set HAVE_FMUV3 false
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
if [ $HAVE_FMUV3 == true ]
|
if [ $HAVE_FMUV3 == true ]
|
||||||
then
|
then
|
||||||
@ -290,9 +296,14 @@ else
|
|||||||
then
|
then
|
||||||
echo "Found MPU6000 internal"
|
echo "Found MPU6000 internal"
|
||||||
else
|
else
|
||||||
echo "No MPU6000"
|
if mpu9250 -R 14 start
|
||||||
echo "No MPU6000" >> $logfile
|
then
|
||||||
|
echo "Found MPU9250 internal"
|
||||||
|
else
|
||||||
|
echo "No MPU6000 or MPU9250"
|
||||||
|
echo "No MPU6000 or MPU9250" >> $logfile
|
||||||
sh /etc/init.d/rc.error
|
sh /etc/init.d/rc.error
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
if hmc5883 -C -T -S -R 8 start
|
if hmc5883 -C -T -S -R 8 start
|
||||||
then
|
then
|
||||||
@ -303,8 +314,13 @@ else
|
|||||||
then
|
then
|
||||||
echo "Found MPU6000"
|
echo "Found MPU6000"
|
||||||
else
|
else
|
||||||
echo "No MPU6000"
|
if mpu9250 start
|
||||||
echo "No MPU6000" >> $logfile
|
then
|
||||||
|
echo "Found MPU9250"
|
||||||
|
else
|
||||||
|
echo "No MPU6000 or MPU9250"
|
||||||
|
echo "No MPU9250" >> $logfile
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
if l3gd20 start
|
if l3gd20 start
|
||||||
then
|
then
|
||||||
|
@ -5,6 +5,7 @@ include $(SKETCHBOOK)/mk/PX4/px4_common.mk
|
|||||||
|
|
||||||
MODULES += drivers/lsm303d
|
MODULES += drivers/lsm303d
|
||||||
MODULES += drivers/l3gd20
|
MODULES += drivers/l3gd20
|
||||||
|
MODULES += drivers/mpu9250
|
||||||
MODULES += drivers/boards/px4fmu-v2
|
MODULES += drivers/boards/px4fmu-v2
|
||||||
MODULES += drivers/pwm_input
|
MODULES += drivers/pwm_input
|
||||||
MODULES += modules/uavcan
|
MODULES += modules/uavcan
|
||||||
|
Loading…
Reference in New Issue
Block a user