PX4: try to start both hmc5883 sensors

internal + external
This commit is contained in:
Andrew Tridgell 2014-07-04 12:08:17 +10:00
parent 21b0b3bc15
commit a25eab4ada

View File

@ -235,17 +235,17 @@ then
fi fi
else else
echo "Starting FMUv2 sensors" echo "Starting FMUv2 sensors"
if hmc5883 start if hmc5883 -C -X start
then then
echo "Using external magnetometer" echo "Have external hmc5883"
if hmc5883 calibrate
then
echo "hmc5883 calibrate OK"
else else
echo "hmc5883 calibrate failed" echo "No external hmc5883"
echo "hmc5883 calibrate failed" >> $logfile
tone_alarm MSBBB
fi fi
if hmc5883 -C -I -R 8 start
then
echo "Have internal hmc5883"
else
echo "No internal hmc5883"
fi fi
# external MPU6000 is rotated YAW_180 from standard # external MPU6000 is rotated YAW_180 from standard