From 32fd6dc7c7a5371d9187814dfa80a53b7df9db17 Mon Sep 17 00:00:00 2001 From: rmaia <9812730+rmaia3d@users.noreply.github.com> Date: Wed, 27 Mar 2024 17:40:03 -0300 Subject: [PATCH] Tools: add extended RC link stats OSD fields Adds RSSI dBm, SNR, LQ, Tx power and active antenna OSD fields --- Tools/scripts/build_options.py | 1 + Tools/scripts/extract_features.py | 1 + 2 files changed, 2 insertions(+) diff --git a/Tools/scripts/build_options.py b/Tools/scripts/build_options.py index deba79a140..ebb2248eaf 100644 --- a/Tools/scripts/build_options.py +++ b/Tools/scripts/build_options.py @@ -110,6 +110,7 @@ BUILD_OPTIONS = [ Feature('OSD', 'PLUSCODE', 'HAL_PLUSCODE_ENABLE', 'Enable PlusCode', 0, 'OSD'), Feature('OSD', 'OSD_PARAM', 'OSD_PARAM_ENABLED', 'Enable OSD param', 0, 'OSD'), Feature('OSD', 'OSD_SIDEBARS', 'HAL_OSD_SIDEBAR_ENABLE', 'Enable Scrolling Sidebars', 0, 'OSD'), + Feature('OSD', 'OSD_EXTENDED_LINK_STATS', 'AP_OSD_LINK_STATS_EXTENSIONS_ENABLED', 'Enable OSD panels with extended link stats data', 0, "OSD,RC_CRSF"), # noqa Feature('VTX', 'VIDEO_TX', 'AP_VIDEOTX_ENABLED', 'Enable VideoTX control', 0, None), Feature('VTX', 'SMARTAUDIO', 'AP_SMARTAUDIO_ENABLED', 'Enable SmartAudio VTX Contol', 0, "VIDEO_TX"), diff --git a/Tools/scripts/extract_features.py b/Tools/scripts/extract_features.py index 9742db0a61..5c54076fa2 100755 --- a/Tools/scripts/extract_features.py +++ b/Tools/scripts/extract_features.py @@ -243,6 +243,7 @@ class ExtractFeatures(object): ('HAL_BUTTON_ENABLED', 'AP_Button::update'), ('HAL_LOGGING_ENABLED', 'AP_Logger::init'), ('HAL_ENABLE_DRONECAN_DRIVERS', r'AP_DroneCAN::init'), + ('AP_OSD_LINK_STATS_EXTENSIONS_ENABLED', r'AP_OSD_Screen::draw_rc_tx_power'), ] def progress(self, msg):