diff --git a/Tools/scripts/build_options.py b/Tools/scripts/build_options.py index c6d28741bb..9466644adf 100644 --- a/Tools/scripts/build_options.py +++ b/Tools/scripts/build_options.py @@ -160,6 +160,7 @@ 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', 'DRONECAN_COMPASS_HIRES', 'AP_COMPASS_DRONECAN_HIRES_ENABLED', 'Enable DroneCAN HiRes compasses for survey logging', 0, None), # noqa 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"), diff --git a/Tools/scripts/extract_features.py b/Tools/scripts/extract_features.py index 26780e0e03..af9085edc4 100755 --- a/Tools/scripts/extract_features.py +++ b/Tools/scripts/extract_features.py @@ -55,6 +55,7 @@ class ExtractFeatures(object): ('AP_COMPASS_{type}_ENABLED', r'AP_Compass_(?P.*)::read\b',), ('AP_COMPASS_ICM20948_ENABLED', r'AP_Compass_AK09916::probe_ICM20948',), + ('AP_COMPASS_DRONECAN_HIRES_ENABLED', r'AP_Compass_DroneCAN::handle_magnetic_field_hires',), ('AP_AIS_ENABLED', 'AP_AIS::AP_AIS',),