mirror of https://github.com/ArduPilot/ardupilot
PX4: try to start both hmc5883 sensors for FMUv1
internal + external
This commit is contained in:
parent
4a8a24a1a2
commit
6b687ea7bc
|
@ -222,13 +222,17 @@ fi
|
||||||
if [ $BOARD == FMUv1 ]
|
if [ $BOARD == FMUv1 ]
|
||||||
then
|
then
|
||||||
echo "Starting FMUv1 sensors"
|
echo "Starting FMUv1 sensors"
|
||||||
if hmc5883 -C -T start
|
if hmc5883 -C -T -X start
|
||||||
then
|
then
|
||||||
echo "hmc5883 started OK"
|
echo "Have external hmc5883"
|
||||||
else
|
else
|
||||||
echo "hmc5883 start failed"
|
echo "No external hmc5883"
|
||||||
echo "hmc5883 start failed" >> $logfile
|
fi
|
||||||
sh /etc/init.d/rc.error
|
if hmc5883 -C -T -I start
|
||||||
|
then
|
||||||
|
echo "Have internal hmc5883"
|
||||||
|
else
|
||||||
|
echo "No internal hmc5883"
|
||||||
fi
|
fi
|
||||||
if mpu6000 start
|
if mpu6000 start
|
||||||
then
|
then
|
||||||
|
|
Loading…
Reference in New Issue