From 9e4a1808785e7bcc60ada687691c0ae0fecb47d8 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Mon, 27 Jan 2025 20:20:00 +1100 Subject: [PATCH] AP_Compass: remove vestiges of LearnType::LEARN_INTERNAL 57a3bc1397239cbd66e5b32d59dcc467003e4bad changed the code from "internal" to "in-flight It seems the old value of "1" was no longer valid It also changed things to that the learning system saved the offsets. --- libraries/AP_Compass/AP_Compass.cpp | 2 +- libraries/AP_Compass/AP_Compass.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/AP_Compass/AP_Compass.cpp b/libraries/AP_Compass/AP_Compass.cpp index 695e139772..65716e057f 100644 --- a/libraries/AP_Compass/AP_Compass.cpp +++ b/libraries/AP_Compass/AP_Compass.cpp @@ -117,7 +117,7 @@ const AP_Param::GroupInfo Compass::var_info[] = { // @Param: LEARN // @DisplayName: Learn compass offsets automatically // @Description: Enable or disable the automatic learning of compass offsets. You can enable learning either using a compass-only method that is suitable only for fixed wing aircraft or using the offsets learnt by the active EKF state estimator. If this option is enabled then the learnt offsets are saved when you disarm the vehicle. If InFlight learning is enabled then the compass with automatically start learning once a flight starts (must be armed). While InFlight learning is running you cannot use position control modes. - // @Values: 0:Disabled,1:Internal-Learning,2:EKF-Learning,3:InFlight-Learning + // @Values: 0:Disabled,2:EKF-Learning,3:InFlight-Learning // @User: Advanced AP_GROUPINFO("LEARN", 3, Compass, _learn, COMPASS_LEARN_DEFAULT), #endif diff --git a/libraries/AP_Compass/AP_Compass.h b/libraries/AP_Compass/AP_Compass.h index 75e8e46984..6a10ba3a97 100644 --- a/libraries/AP_Compass/AP_Compass.h +++ b/libraries/AP_Compass/AP_Compass.h @@ -320,7 +320,7 @@ public: enum LearnType { LEARN_NONE=0, - LEARN_INTERNAL=1, + // LEARN_INTERNAL=1, LEARN_EKF=2, LEARN_INFLIGHT=3 };