diff --git a/_locales/en/messages.json b/_locales/en/messages.json index d67b4be9..0cabebbc 100755 --- a/_locales/en/messages.json +++ b/_locales/en/messages.json @@ -856,6 +856,9 @@ "pidTuningRate": { "message": "Rate" }, + "pidTuningSuperRate": { + "message": "Super Rate" + }, "pidTuningRatesPreview": { "message": "Rates Preview" }, diff --git a/tabs/pid_tuning.html b/tabs/pid_tuning.html index 7b20a448..50110e2e 100755 --- a/tabs/pid_tuning.html +++ b/tabs/pid_tuning.html @@ -305,7 +305,7 @@ - +
diff --git a/tabs/pid_tuning.js b/tabs/pid_tuning.js index 5877b9ea..b72c9389 100755 --- a/tabs/pid_tuning.js +++ b/tabs/pid_tuning.js @@ -236,6 +236,13 @@ TABS.pid_tuning.initialize = function (callback) { $('.pid_tuning input[name="rc_rate_yaw"]').hide(); } + if (semver.gte(CONFIG.flightControllerVersion, "3.0.0") + || semver.gte(CONFIG.flightControllerVersion, "2.8.0") && BF_CONFIG.features.isEnabled('SUPEREXPO_RATES')) { + $('#pid-tuning .rate').text(chrome.i18n.getMessage("pidTuningSuperRate")); + } else { + $('#pid-tuning .rate').text(chrome.i18n.getMessage("pidTuningRate")); + } + if (semver.gte(CONFIG.flightControllerVersion, '3.0.0')) { $('.pid_filter input[name="gyroNotchFrequency"]').val(FILTER_CONFIG.gyro_soft_notch_hz); $('.pid_filter input[name="gyroNotchCutoff"]').val(FILTER_CONFIG.gyro_soft_notch_cutoff);