From 1f297b923846178a8bbbee8c070f349725290fbc Mon Sep 17 00:00:00 2001 From: rmaia <9812730+rmaia3d@users.noreply.github.com> Date: Wed, 28 Feb 2024 11:28:01 -0300 Subject: [PATCH] Tools: add CRSF expanded 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 3cf264ce3ec993..df83215fedd0c5 100644 --- a/Tools/scripts/build_options.py +++ b/Tools/scripts/build_options.py @@ -110,6 +110,7 @@ def __init__(self, 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_CRSF_LINK_STATS', 'AP_OSD_CRSF_EXTENSIONS_ENABLED', 'Enable OSD panels for CRSF expanded link stats data', 0, "OSD,RC_CRSF"), 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 5a8665bf7faf7c..236e48e08b4842 100755 --- a/Tools/scripts/extract_features.py +++ b/Tools/scripts/extract_features.py @@ -244,6 +244,7 @@ def __init__(self, filename, nm="arm-none-eabi-nm", strings="strings"): ('HAL_LOGGING_ENABLED', 'AP_Logger::Init'), ('AP_COMPASS_CALIBRATION_FIXED_YAW_ENABLED', 'AP_Compass::mag_cal_fixed_yaw'), ('COMPASS_LEARN_ENABLED', 'CompassLearn::update'), + ('AP_OSD_CRSF_EXTENSIONS_ENABLED', r'AP_OSD_Screen::draw_crsf_tx_power'), ] def progress(self, msg):