From fc577120c13ddcc7b0f98db66af3cb7ae4912c10 Mon Sep 17 00:00:00 2001 From: Alexey Bulatov Date: Fri, 18 Nov 2016 15:51:20 +0300 Subject: [PATCH] AP_Compass: make LSM9DS1 compass primary for Navio2 --- libraries/AP_Compass/AP_Compass.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/AP_Compass/AP_Compass.cpp b/libraries/AP_Compass/AP_Compass.cpp index 4d8db95e30..77d449ae9d 100644 --- a/libraries/AP_Compass/AP_Compass.cpp +++ b/libraries/AP_Compass/AP_Compass.cpp @@ -490,10 +490,10 @@ void Compass::_detect_backends(void) true), AP_Compass_HMC5843::name, true); #elif HAL_COMPASS_DEFAULT == HAL_COMPASS_NAVIO2 - _add_backend(AP_Compass_AK8963::probe_mpu9250(*this, 0), - AP_Compass_AK8963::name, false); _add_backend(AP_Compass_LSM9DS1::probe(*this, hal.spi->get_device("lsm9ds1_m")), AP_Compass_LSM9DS1::name, false); + _add_backend(AP_Compass_AK8963::probe_mpu9250(*this, 0), + AP_Compass_AK8963::name, false); _add_backend(AP_Compass_HMC5843::probe(*this, hal.i2c_mgr->get_device(HAL_COMPASS_HMC5843_I2C_BUS, HAL_COMPASS_HMC5843_I2C_ADDR), true), AP_Compass_HMC5843::name, true); #elif HAL_COMPASS_DEFAULT == HAL_COMPASS_NAVIO