From 9975692c293192c9c1d2e9e0b5109e6434d24471 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sat, 2 Sep 2023 16:37:56 +1000 Subject: [PATCH] Tools: added build options for himark servos and hobbywing ESCs --- Tools/scripts/build_options.py | 2 ++ Tools/scripts/extract_features.py | 3 +++ 2 files changed, 5 insertions(+) diff --git a/Tools/scripts/build_options.py b/Tools/scripts/build_options.py index f54d48fbaab2d0..f4f36df0a3d25c 100644 --- a/Tools/scripts/build_options.py +++ b/Tools/scripts/build_options.py @@ -335,6 +335,8 @@ def __init__(self, Feature('Actuators', 'SBUS Output', 'AP_SBUSOUTPUT_ENABLED', 'Enable SBUS Output on serial ports', 0, None), Feature('Actuators', 'FETTecOneWire', 'AP_FETTEC_ONEWIRE_ENABLED', 'Enable FETTec OneWire ESCs', 0, None), Feature('Actuators', 'KDECAN', 'AP_KDECAN_ENABLED', 'KDE Direct KDECAN ESC', 0, None), + Feature('Actuators', 'HimarkServo', 'AP_DRONECAN_HIMARK_SERVO_ENABLED', 'Enable Himark DroneCAN servos', 0, None), + Feature('Actuators', 'HobbywingESC', 'AP_DRONECAN_HOBBYWING_ESC_ENABLED', 'Enable Hobbywing DroneCAN ESCs', 0, None), Feature('Precision Landing', 'PrecLand', 'AC_PRECLAND_ENABLED', 'Enable Precision Landing support', 0, None), Feature('Precision Landing', 'PrecLand - Companion', 'AC_PRECLAND_COMPANION_ENABLED', 'Enable Companion-Supported Precision Landing support', 0, "PrecLand"), # noqa diff --git a/Tools/scripts/extract_features.py b/Tools/scripts/extract_features.py index 55f31e566e60ae..c8a3f5091f7d27 100755 --- a/Tools/scripts/extract_features.py +++ b/Tools/scripts/extract_features.py @@ -212,6 +212,9 @@ def __init__(self, filename, nm="arm-none-eabi-nm"): ('AP_MAVLINK_BATTERY2_ENABLED', 'GCS_MAVLINK::send_battery2'), ('AP_MAVLINK_MSG_MOUNT_CONTROL_ENABLED', 'AP_Mount::handle_mount_control'), ('AP_MAVLINK_MSG_MOUNT_CONFIGURE_ENABLED', 'AP_Mount::handle_mount_configure'), + + ('AP_DRONECAN_HIMARK_SERVO_ENABLED', 'AP_DroneCAN::SRV_send_himark'), + ('AP_DRONECAN_HOBBYWING_ESC_ENABLED', 'AP_DroneCAN::hobbywing_ESC_update()'), ] def progress(self, msg):