From a25eab4adaecf11d4dd66063ffe54717683136cf Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 4 Jul 2014 12:08:17 +1000 Subject: [PATCH] PX4: try to start both hmc5883 sensors internal + external --- mk/PX4/ROMFS/init.d/rc.APM | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/mk/PX4/ROMFS/init.d/rc.APM b/mk/PX4/ROMFS/init.d/rc.APM index 4012960c4f..5662756db5 100644 --- a/mk/PX4/ROMFS/init.d/rc.APM +++ b/mk/PX4/ROMFS/init.d/rc.APM @@ -235,17 +235,17 @@ then fi else echo "Starting FMUv2 sensors" - if hmc5883 start + if hmc5883 -C -X start then - echo "Using external magnetometer" - if hmc5883 calibrate - then - echo "hmc5883 calibrate OK" - else - echo "hmc5883 calibrate failed" - echo "hmc5883 calibrate failed" >> $logfile - tone_alarm MSBBB - fi + echo "Have external hmc5883" + else + echo "No external hmc5883" + fi + if hmc5883 -C -I -R 8 start + then + echo "Have internal hmc5883" + else + echo "No internal hmc5883" fi # external MPU6000 is rotated YAW_180 from standard