From 3a151a9d0077d2de46c5171f6435430cf23a983f Mon Sep 17 00:00:00 2001 From: Lorenz Meier Date: Mon, 9 Feb 2015 14:50:26 +0100 Subject: Sensors startup: Correct startup for HMC5883 --- ROMFS/px4fmu_common/init.d/rc.sensors | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ROMFS/px4fmu_common/init.d/rc.sensors b/ROMFS/px4fmu_common/init.d/rc.sensors index d204052b0..8dff70534 100644 --- a/ROMFS/px4fmu_common/init.d/rc.sensors +++ b/ROMFS/px4fmu_common/init.d/rc.sensors @@ -8,10 +8,12 @@ adc start if ver hwcmp PX4FMU_V2 then + # External I2C bus if hmc5883 -C -X start then fi + # Internal I2C bus if hmc5883 -C -I -R 4 start then fi @@ -41,6 +43,10 @@ then then fi + if hmc5883 -S -R 8 start + then + fi + else # FMUv2 if mpu6000 start -- cgit v1.2.3