From 275d5d15a36939f80809b86e4533c3633f7ea6d0 Mon Sep 17 00:00:00 2001 From: Michael Keller Date: Wed, 7 Sep 2016 07:51:47 +1200 Subject: [PATCH] Added 'Super Rates' title, reverted pterm setpoint weight range. --- _locales/en/messages.json | 3 +++ tabs/pid_tuning.html | 2 +- tabs/pid_tuning.js | 7 +++++++ 3 files changed, 11 insertions(+), 1 deletion(-) 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);