diff --git a/tabs/pid_tuning.html b/tabs/pid_tuning.html index 579e211063..1756967ffb 100755 --- a/tabs/pid_tuning.html +++ b/tabs/pid_tuning.html @@ -468,7 +468,7 @@ - + @@ -481,7 +481,7 @@ - + diff --git a/tabs/pid_tuning.js b/tabs/pid_tuning.js index 19ee2962e1..22587e4772 100755 --- a/tabs/pid_tuning.js +++ b/tabs/pid_tuning.js @@ -257,13 +257,16 @@ TABS.pid_tuning.initialize = function (callback) { $('input[name="dtermSetpoint-number"]').val(ADVANCED_TUNING.dtermSetpointWeight / 100); $('input[name="dtermSetpoint-range"]').val(ADVANCED_TUNING.dtermSetpointWeight / 100); - if (semver.gte(CONFIG.flightControllerVersion, '3.0.1')) { - $('.pid_filter input[name="gyroNotch2Frequency"]').val(FILTER_CONFIG.gyro_soft_notch_hz_2); - $('.pid_filter input[name="gyroNotch2Cutoff"]').val(FILTER_CONFIG.gyro_soft_notch_cutoff_2); - } } else { $('.pid_filter .newFilter').hide(); } + + if (semver.gte(CONFIG.flightControllerVersion, '3.0.1')) { + $('.pid_filter input[name="gyroNotch2Frequency"]').val(FILTER_CONFIG.gyro_soft_notch_hz_2); + $('.pid_filter input[name="gyroNotch2Cutoff"]').val(FILTER_CONFIG.gyro_soft_notch_cutoff_2); + } else { + $('.pid_filter .gyroNotch2').hide(); + } } function form_to_pid_and_rc() {