PX4: try to start both hmc5883 sensors for FMUv1

internal + external
This commit is contained in:
lanbo.gao 2015-10-20 20:09:29 -07:00 committed by Andrew Tridgell
parent 4a8a24a1a2
commit 6b687ea7bc
1 changed files with 9 additions and 5 deletions

14
mk/PX4/ROMFS/init.d/rc.APM Normal file → Executable file
View File

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