From 6b687ea7bcd75babbfab29c637e94c6afc34a727 Mon Sep 17 00:00:00 2001 From: "lanbo.gao" Date: Tue, 20 Oct 2015 20:09:29 -0700 Subject: [PATCH] PX4: try to start both hmc5883 sensors for FMUv1 internal + external --- mk/PX4/ROMFS/init.d/rc.APM | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) mode change 100644 => 100755 mk/PX4/ROMFS/init.d/rc.APM diff --git a/mk/PX4/ROMFS/init.d/rc.APM b/mk/PX4/ROMFS/init.d/rc.APM old mode 100644 new mode 100755 index 1b333480d9..a8dd560436 --- a/mk/PX4/ROMFS/init.d/rc.APM +++ b/mk/PX4/ROMFS/init.d/rc.APM @@ -222,13 +222,17 @@ fi if [ $BOARD == FMUv1 ] then echo "Starting FMUv1 sensors" - if hmc5883 -C -T start + if hmc5883 -C -T -X start then - echo "hmc5883 started OK" + echo "Have external hmc5883" else - echo "hmc5883 start failed" - echo "hmc5883 start failed" >> $logfile - sh /etc/init.d/rc.error + echo "No external hmc5883" + fi + if hmc5883 -C -T -I start + then + echo "Have internal hmc5883" + else + echo "No internal hmc5883" fi if mpu6000 start then