From 5e8c1b61b5d3080a38b747881a3dbb4b9c609fa6 Mon Sep 17 00:00:00 2001 From: Emile Castelnuovo Date: Fri, 2 Jan 2015 12:23:39 +0100 Subject: [PATCH] AP_Compass: AP_Compass_VRBRAIN.cpp added _is_external overwrite to deal with external compass attached to internal I2C BUS --- libraries/AP_Compass/AP_Compass_VRBRAIN.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_Compass/AP_Compass_VRBRAIN.cpp b/libraries/AP_Compass/AP_Compass_VRBRAIN.cpp index beef714bf7..116de0b3fd 100644 --- a/libraries/AP_Compass/AP_Compass_VRBRAIN.cpp +++ b/libraries/AP_Compass/AP_Compass_VRBRAIN.cpp @@ -68,7 +68,7 @@ bool AP_Compass_VRBRAIN::init(void) // remember if the compass is external _external[i] = (ioctl(_mag_fd[i], MAGIOCGEXTERNAL, 0) > 0); -#if defined(CONFIG_ARCH_BOARD_VRBRAIN_V45) +#if defined(CONFIG_ARCH_BOARD_VRBRAIN_V45) || defined(CONFIG_ARCH_BOARD_VRBRAIN_V52) //deal with situations where user has cut internal mag on VRBRAIN 4.5 //and uses only one external mag attached to the internal I2C bus bool external_tmp = _external[i];