From b69272d89ae80c3c7addc6da26230891eaf5d8f8 Mon Sep 17 00:00:00 2001 From: Andy Piper Date: Wed, 22 May 2024 12:34:29 +0100 Subject: [PATCH] scripts: add AP_INERTIALSENSOR_RATE_LOOP_WINDOW_ENABLED to build_options.py and extract_features.py --- Tools/scripts/build_options.py | 1 + Tools/scripts/extract_features.py | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Tools/scripts/build_options.py b/Tools/scripts/build_options.py index 102c1958204f29..5d3c8c7752d007 100644 --- a/Tools/scripts/build_options.py +++ b/Tools/scripts/build_options.py @@ -310,6 +310,7 @@ def __init__(self, Feature('Sensors', 'IMU_ON_UART', 'AP_SERIALMANAGER_IMUOUT_ENABLED', 'Enable sending raw IMU data on a serial port', 0, None), # NOQA: E501 Feature('Other', 'HarmonicNotches', 'AP_INERTIALSENSOR_HARMONICNOTCH_ENABLED', 'Enable InertialSensor Harmonic Notches', 0, None), # noqa + Feature('Other', 'RateLoopThread', 'AP_INERTIALSENSOR_RATE_LOOP_WINDOW_ENABLED', 'Enable Rate Loop Thread', 0, None), # noqa Feature('Other', 'GyroFFT', 'HAL_GYROFFT_ENABLED', 'Enable In-Flight Gyro FFT calculations', 0, None), Feature('Other', 'NMEA_OUTPUT', 'HAL_NMEA_OUTPUT_ENABLED', 'Enable NMEA Output', 0, None), Feature('Other', 'SDCARD_FORMATTING', 'AP_FILESYSTEM_FORMAT_ENABLED', 'Enable formatting of microSD cards', 0, None), diff --git a/Tools/scripts/extract_features.py b/Tools/scripts/extract_features.py index cc9274955df70e..6f800538359933 100755 --- a/Tools/scripts/extract_features.py +++ b/Tools/scripts/extract_features.py @@ -194,7 +194,8 @@ def __init__(self, filename, nm="arm-none-eabi-nm", strings="strings"): ('AP_GPS_BLENDED_ENABLED', r'AP_GPS::calc_blend_weights\b',), ('HAL_WITH_DSP', r'AP_HAL::DSP::find_peaks\b',), - ('AP_INERTIALSENSOR_HARMONICNOTCH_ENABLED', r'AP_InertialSensor::HarmonicNotch::update_params\b',), + ('AP_INERTIALSENSOR_HARMONICNOTCH_ENABLED', r'AP_InertialSensor::get_next_gyro_sample\b',), + ('AP_INERTIALSENSOR_RATE_LOOP_WINDOW_ENABLED', r'AP_InertialSensor::HarmonicNotch::update_params\b',), ('HAL_GYROFFT_ENABLED', r'AP_GyroFFT::AP_GyroFFT\b',), ('HAL_DISPLAY_ENABLED', r'Display::init\b',), ('HAL_NMEA_OUTPUT_ENABLED', r'AP_NMEA_Output::update\b',),