From 093deed6106239bf13e98a374d441ee694ebc624 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Thu, 29 Feb 2024 15:39:18 +1100 Subject: [PATCH] AP_Compass: add and use AP_CUSTOMROTATIONS_ENABLED also add to build_options.py --- 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 ad7397d061..039ade2d5a 100644 --- a/libraries/AP_Compass/AP_Compass.cpp +++ b/libraries/AP_Compass/AP_Compass.cpp @@ -731,7 +731,7 @@ void Compass::init() // convert to new custom rotation method // PARAMETER_CONVERSION - Added: Nov-2021 -#if !APM_BUILD_TYPE(APM_BUILD_AP_Periph) +#if AP_CUSTOMROTATIONS_ENABLED for (StateIndex i(0); i 1 // Look if there was a primary compass setup in previous version