From f97822155acffdc7e61c7913fcdd5adba7217a18 Mon Sep 17 00:00:00 2001 From: Mohammed Kabir Date: Tue, 23 May 2017 14:14:07 +0200 Subject: [PATCH] rc.sensors : start external compass on v4Pro and v5 with temperature compensation and self-calibration at startup --- ROMFS/px4fmu_common/init.d/rc.sensors | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/ROMFS/px4fmu_common/init.d/rc.sensors b/ROMFS/px4fmu_common/init.d/rc.sensors index 217c4efd91..3d9d21cd05 100644 --- a/ROMFS/px4fmu_common/init.d/rc.sensors +++ b/ROMFS/px4fmu_common/init.d/rc.sensors @@ -343,6 +343,7 @@ fi if ver hwcmp PX4FMU_V4PRO then + # Internal SPI bus ICM-20608-G if mpu6000 -R 2 -T 20608 start then @@ -364,7 +365,7 @@ then fi # Possible external compasses - if hmc5883 -X start + if hmc5883 -C -T -X start then fi @@ -372,6 +373,7 @@ fi if ver hwcmp PX4FMU_V5 then + # Internal SPI bus ICM-20602 if mpu6000 -R 8 -s -T 20602 start then @@ -393,7 +395,7 @@ then fi # Possible external compasses - if hmc5883 -X start + if hmc5883 -C -T -X start then fi @@ -401,6 +403,7 @@ then if meas_airspeed start -b 2 then fi + fi if ver hwcmp AEROCORE2