From 00c40881e5307e0a220172a94d0a1fbb6aefa9e8 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Wed, 6 Nov 2024 19:10:19 +1100 Subject: [PATCH] Tools: add entry for Copter advanced failsafe to custom build server --- Tools/autotest/test_build_options.py | 1 + Tools/scripts/build_options.py | 1 + Tools/scripts/extract_features.py | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Tools/autotest/test_build_options.py b/Tools/autotest/test_build_options.py index 12f5b8c3946c9c..a11b8c63b169a2 100755 --- a/Tools/autotest/test_build_options.py +++ b/Tools/autotest/test_build_options.py @@ -287,6 +287,7 @@ def define_is_whitelisted_for_feature_in_code(self, target, define): feature_define_whitelist.add('AP_WINCH_DAIWA_ENABLED') feature_define_whitelist.add('AP_WINCH_PWM_ENABLED') feature_define_whitelist.add(r'AP_MOTORS_FRAME_.*_ENABLED') + feature_define_whitelist.add('AP_COPTER_ADVANCED_FAILSAFE_ENABLED') if target.lower() != "plane": # only on Plane: diff --git a/Tools/scripts/build_options.py b/Tools/scripts/build_options.py index 3f5dd534ff8f16..54be58a3bd0741 100644 --- a/Tools/scripts/build_options.py +++ b/Tools/scripts/build_options.py @@ -156,6 +156,7 @@ def config_option(self): Feature('Copter', 'MODE_FLOWHOLD', 'MODE_FLOWHOLD_ENABLED', 'Enable Mode Flowhold', 0, "OPTICALFLOW"), Feature('Copter', 'MODE_FLIP', 'MODE_FLIP_ENABLED', 'Enable Mode Flip', 0, None), Feature('Copter', 'MODE_BRAKE', 'MODE_BRAKE_ENABLED', 'Enable Mode Brake', 0, None), + Feature('Copter', 'COPTER_ADVANCED_FAILSAFE', 'AP_COPTER_ADVANCED_FAILSAFE_ENABLED', 'Enable Advanced Failsafe', 0, "ADVANCED_FAILSAFE"), # NOQA: 501 Feature('Rover', 'ROVER_ADVANCED_FAILSAFE', 'AP_ROVER_ADVANCED_FAILSAFE_ENABLED', 'Enable Advanced Failsafe', 0, "ADVANCED_FAILSAFE"), # NOQA: 501 diff --git a/Tools/scripts/extract_features.py b/Tools/scripts/extract_features.py index eec1399c02a3b0..86da7bf3c39c2d 100755 --- a/Tools/scripts/extract_features.py +++ b/Tools/scripts/extract_features.py @@ -277,7 +277,7 @@ def __init__(self, filename, nm="arm-none-eabi-nm", strings="strings"): ('AP_BARO_PROBE_EXTERNAL_I2C_BUSES', r'AP_Baro::_probe_i2c_barometers'), ('AP_RSSI_ENABLED', r'AP_RSSI::init'), - ('AP_ROVER_ADVANCED_FAILSAFE_ENABLED', r'Rover::afs_fs_check'), + ('AP_COPTER_ADVANCED_FAILSAFE_ENABLED', r'Copter::afs_fs_check'), ('AP_PLANE_OFFBOARD_GUIDED_SLEW_ENABLED', r'GCS_MAVLINK_Plane::handle_command_int_guided_slew_commands'), ('AP_SERIALMANAGER_REGISTER_ENABLED', r'AP_SerialManager::register_port'),