From 857547ba557bbd1ff1446ff0e1f5032ba4685aae Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Fri, 2 Feb 2024 11:45:34 +1100 Subject: [PATCH] Tools: build_options.py: include fixed-yaw and in-flight learning options --- Tools/scripts/build_options.py | 2 ++ Tools/scripts/extract_features.py | 2 ++ 2 files changed, 4 insertions(+) diff --git a/Tools/scripts/build_options.py b/Tools/scripts/build_options.py index 5f6f1e184d..3cf264ce3e 100644 --- a/Tools/scripts/build_options.py +++ b/Tools/scripts/build_options.py @@ -160,6 +160,8 @@ BUILD_OPTIONS = [ Feature('Compass', 'QMC5883L', 'AP_COMPASS_QMC5883L_ENABLED', 'Enable QMC5883L compasses', 1, None), Feature('Compass', 'RM3100', 'AP_COMPASS_RM3100_ENABLED', 'Enable RM3100 compasses', 1, None), Feature('Compass', 'DRONECAN_COMPASS', 'AP_COMPASS_DRONECAN_ENABLED', 'Enable DroneCAN compasses', 0, None), + Feature('Compass', 'FixedYawCal', 'AP_COMPASS_CALIBRATION_FIXED_YAW_ENABLED', 'Enable Fixed-Yaw Compass Calibration', 1, None), # noqa + Feature('Compass', 'CompassLearn', 'COMPASS_LEARN_ENABLED', 'Enable In-Flight Compass Learning', 1, "FixedYawCal"), Feature('Gimbal', 'MOUNT', 'HAL_MOUNT_ENABLED', 'Enable Mount', 0, None), Feature('Gimbal', 'ALEXMOS', 'HAL_MOUNT_ALEXMOS_ENABLED', 'Enable Alexmos Gimbal', 0, "MOUNT"), diff --git a/Tools/scripts/extract_features.py b/Tools/scripts/extract_features.py index c50d87db27..5a8665bf7f 100755 --- a/Tools/scripts/extract_features.py +++ b/Tools/scripts/extract_features.py @@ -242,6 +242,8 @@ class ExtractFeatures(object): ('FORCE_APJ_DEFAULT_PARAMETERS', 'AP_Param::param_defaults_data'), ('HAL_BUTTON_ENABLED', 'AP_Button::update'), ('HAL_LOGGING_ENABLED', 'AP_Logger::Init'), + ('AP_COMPASS_CALIBRATION_FIXED_YAW_ENABLED', 'AP_Compass::mag_cal_fixed_yaw'), + ('COMPASS_LEARN_ENABLED', 'CompassLearn::update'), ] def progress(self, msg):