From 10da45c1ebbbe4f5dff87e9c74006a39fe48f53b Mon Sep 17 00:00:00 2001 From: Mark Haslinghuis Date: Sun, 26 Dec 2021 03:54:41 +0100 Subject: [PATCH] Fix auto_factor tooltip Fix target help --- locales/en/messages.json | 6 +++++- src/js/tabs/receiver.js | 4 ++++ src/tabs/receiver.html | 2 +- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/locales/en/messages.json b/locales/en/messages.json index 34ba1797..189b89ea 100644 --- a/locales/en/messages.json +++ b/locales/en/messages.json @@ -1729,7 +1729,11 @@ "description": "Auto Factor parameter for RC smoothing" }, "receiverRcSmoothingAutoFactorHelp": { - "message": "Adjusts the Auto factor calculation, 10 is the default factor to delay ratio. Increasing the number will smooth RC inputs more, while also adding delay. This may be useful for unreliable RC connections or for cinematic flying.
Be careful with numbers approaching 50, input delay will become noticeable.
Use the CLI command rc_smoothing_info while TX and RX are powered to see the automatically calculated RC smoothing cutoffs. ", + "message": "Adjusts the Auto factor calculation, 10 is the default factor to delay ratio. Increasing the number will smooth RC inputs more, while also adding delay. This may be useful for unreliable RC connections or for cinematic flying.
Be careful with numbers approaching 50, input delay will become noticeable.
Use the CLI command rc_smoothing_info while TX and RX are powered to see the automatically calculated RC smoothing cutoffs.", + "description": "Auto Factor parameter help message" + }, + "receiverRcSmoothingAutoFactorHelp2": { + "message": "Adjusts auto RC smoothing. 30 is the default. Higher values smooth RC inputs more - e.g. 60 for HD freestyle or 90-120 for cinematic flying. Note: Values over 50 will cause appreciable stick delay. Lower values, eg 20-25, will transfer some of the RC control steps into the motor signals, slightly increasing motor heat, but will reduce RC delay slightly. This may be useful for racing.", "description": "Auto Factor parameter help message" }, "receiverRcFeedforwardTypeSelect": { diff --git a/src/js/tabs/receiver.js b/src/js/tabs/receiver.js index c11d805c..b2ce9600 100644 --- a/src/js/tabs/receiver.js +++ b/src/js/tabs/receiver.js @@ -631,6 +631,10 @@ TABS.receiver.initialize = function (callback) { $('.tab-receiver .rcSmoothing-auto-factor').hide(); } + if (semver.gte(FC.CONFIG.apiVersion, API_VERSION_1_44)) { + $('.receiverRcSmoothingAutoFactorHelp').attr('title', i18n.getMessage("receiverRcSmoothingAutoFactorHelp2")); + } + updateInterpolationView(); } else { $('.tab-receiver .rcInterpolation').show(); diff --git a/src/tabs/receiver.html b/src/tabs/receiver.html index 02ebe992..86ac8087 100644 --- a/src/tabs/receiver.html +++ b/src/tabs/receiver.html @@ -314,7 +314,7 @@ -
+