From 763702aa1ae0b3c8d0f55fa873199b98e1b9bcd1 Mon Sep 17 00:00:00 2001 From: Randy Mackay Date: Tue, 14 Mar 2023 13:24:56 +0900 Subject: [PATCH] Tools: custom build server option for ekf3 wind estimation --- Tools/scripts/build_options.py | 1 + Tools/scripts/extract_features.py | 1 + 2 files changed, 2 insertions(+) diff --git a/Tools/scripts/build_options.py b/Tools/scripts/build_options.py index 77ef46471c..f9ba862da0 100644 --- a/Tools/scripts/build_options.py +++ b/Tools/scripts/build_options.py @@ -34,6 +34,7 @@ BUILD_OPTIONS = [ Feature('AHRS', 'TEMPCAL', 'HAL_INS_TEMPERATURE_CAL_ENABLE', 'Enable IMU Temperature Calibration', 0, None), Feature('AHRS', 'VISUALODOM', 'HAL_VISUALODOM_ENABLED', 'Enable Visual Odometry', 0, 'EKF3_EXTNAV'), Feature('AHRS', 'EKF3_EXTNAV', 'EK3_FEATURE_EXTERNAL_NAV', 'Enable External Navigation for EKF3', 0, 'EKF3'), + Feature('AHRS', 'EKF3_WINDEST', 'EK3_FEATURE_DRAG_FUSION', 'Enable Wind Estimation for EKF3', 0, 'EKF3'), Feature('Safety', 'PARACHUTE', 'HAL_PARACHUTE_ENABLED', 'Enable Parachute', 0, None), Feature('Safety', 'FENCE', 'AP_FENCE_ENABLED', 'Enable Geofence', 2, None), diff --git a/Tools/scripts/extract_features.py b/Tools/scripts/extract_features.py index a498ccca76..8d9654d1e1 100755 --- a/Tools/scripts/extract_features.py +++ b/Tools/scripts/extract_features.py @@ -162,6 +162,7 @@ class ExtractFeatures(object): ('HAL_PICCOLO_CAN_ENABLE', r'AP_PiccoloCAN::update',), ('EK3_FEATURE_EXTERNAL_NAV', r'NavEKF3::writeExtNavVelData'), + ('EK3_FEATURE_DRAG_FUSION', r'NavEKF3_core::FuseDragForces'), ('AP_RC_CHANNEL_AUX_FUNCTION_STRINGS_ENABLED', r'RC_Channel::lookuptable',),