From 6585b629e1d0b38ce4f598f66f85e00fb22195f7 Mon Sep 17 00:00:00 2001 From: David Sidrane Date: Wed, 18 Nov 2015 16:32:08 -1000 Subject: [PATCH] Set Rotations for 6 and 9 axis --- ROMFS/px4fmu_common/init.d/rc.sensors | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/ROMFS/px4fmu_common/init.d/rc.sensors b/ROMFS/px4fmu_common/init.d/rc.sensors index f11e61036a..a822b82a4a 100644 --- a/ROMFS/px4fmu_common/init.d/rc.sensors +++ b/ROMFS/px4fmu_common/init.d/rc.sensors @@ -75,17 +75,18 @@ else fi # Internal SPI bus - if hmc5883 -C -T -S -R 8 start + if hmc5883 -C -T -S -R 0 + start then fi - # Internal SPI bus mpu9250 is rotated ?? - if mpu9250 -R 0 start + # Internal SPI bus mpu9250 is rotated 90 deg yaw + if mpu9250 -R 2 start then fi - # Internal SPI bus ICM-20608-G is rotated 180 deg roll, 270 deg yaw - if mpu6000 -R 14 -T 20608 start + # Internal SPI bus ICM-20608-G is rotated 90 deg yaw + if mpu6000 -R 2 -T 20608 start then fi else