Tools: add and use AP_CUSTOMROTATIONS_ENABLED

also add to build_options.py
This commit is contained in:
Peter Barker 2024-02-29 15:39:18 +11:00 committed by Peter Barker
parent bff8688ac9
commit 40a0e06db3
2 changed files with 2 additions and 0 deletions

View File

@ -315,6 +315,7 @@ BUILD_OPTIONS = [
Feature('Other', 'DRONECAN_SERIAL', 'AP_DRONECAN_SERIAL_ENABLED', 'Enable DroneCAN virtual serial ports', 0, None),
Feature('Other', 'Buttons', 'HAL_BUTTON_ENABLED', 'Enable Buttons', 0, None),
Feature('Other', 'Logging', 'HAL_LOGGING_ENABLED', 'Enable Logging', 0, None),
Feature('Other', 'CUSTOM_ROTATIONS', 'AP_CUSTOMROTATIONS_ENABLED', 'Enable Custom Rotations', 0, None),
# MAVLink section for mavlink features and/or message handling,
# rather than for e.g. mavlink-based sensor drivers

View File

@ -244,6 +244,7 @@ class ExtractFeatures(object):
('HAL_LOGGING_ENABLED', 'AP_Logger::Init'),
('AP_COMPASS_CALIBRATION_FIXED_YAW_ENABLED', 'AP_Compass::mag_cal_fixed_yaw'),
('COMPASS_LEARN_ENABLED', 'CompassLearn::update'),
('AP_CUSTOMROTATIONS_ENABLED', 'AP_CustomRotation::init'),
]
def progress(self, msg):