From 7121910fa72605702da6100932b761f48a1a0076 Mon Sep 17 00:00:00 2001 From: Jacob Walser Date: Fri, 9 Dec 2016 18:15:12 -0500 Subject: [PATCH] AP_Compass: Set default learn parameter to disabled for Sub --- libraries/AP_Compass/AP_Compass.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_Compass/AP_Compass.cpp b/libraries/AP_Compass/AP_Compass.cpp index 3cdd52dfcb..639df57f1a 100644 --- a/libraries/AP_Compass/AP_Compass.cpp +++ b/libraries/AP_Compass/AP_Compass.cpp @@ -21,7 +21,7 @@ extern AP_HAL::HAL& hal; -#if APM_BUILD_TYPE(APM_BUILD_ArduCopter) +#if APM_BUILD_TYPE(APM_BUILD_ArduCopter) || APM_BUILD_TYPE(APM_BUILD_ArduSub) #define COMPASS_LEARN_DEFAULT Compass::LEARN_NONE #else #define COMPASS_LEARN_DEFAULT Compass::LEARN_INTERNAL