mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-21 15:25:22 +03:00
Add dynamic notch disabled warning
This commit is contained in:
parent
b39f7df5f7
commit
065d7176f3
3 changed files with 14 additions and 0 deletions
|
@ -3126,6 +3126,9 @@
|
||||||
"pidTuningDynamicNotchFilterHelp": {
|
"pidTuningDynamicNotchFilterHelp": {
|
||||||
"message": "Dynamic Notch Filter tracks peak motors noise frequency and places one or two notch filters with their center at that frequency."
|
"message": "Dynamic Notch Filter tracks peak motors noise frequency and places one or two notch filters with their center at that frequency."
|
||||||
},
|
},
|
||||||
|
"pidTuningDynamicNotchFilterDisabledWarning": {
|
||||||
|
"message": "<span class=\"message-negative\">Warning:</span> Dynamic Notch Filter is disabled, please enable it as a feature in the Configuration tab to show related settings."
|
||||||
|
},
|
||||||
"pidTuningDynamicNotchRange": {
|
"pidTuningDynamicNotchRange": {
|
||||||
"message": "Dynamic Notch Filter Range"
|
"message": "Dynamic Notch Filter Range"
|
||||||
},
|
},
|
||||||
|
|
|
@ -1819,9 +1819,15 @@ TABS.pid_tuning.updateFilterWarning = function() {
|
||||||
var dtermDynamicLowpassEnabled = $('input[id="dtermLowpassDynEnabled"]').is(':checked');
|
var dtermDynamicLowpassEnabled = $('input[id="dtermLowpassDynEnabled"]').is(':checked');
|
||||||
var dtermLowpass1Enabled = $('input[id="dtermLowpassEnabled"]').is(':checked');
|
var dtermLowpass1Enabled = $('input[id="dtermLowpassEnabled"]').is(':checked');
|
||||||
var warning_e = $('#pid-tuning .filterWarning');
|
var warning_e = $('#pid-tuning .filterWarning');
|
||||||
|
var warningDynamicNotch_e = $('#pid-tuning .dynamicNotchWarning');
|
||||||
if (!(gyroDynamicLowpassEnabled || gyroLowpass1Enabled) || !(dtermDynamicLowpassEnabled || dtermLowpass1Enabled)) {
|
if (!(gyroDynamicLowpassEnabled || gyroLowpass1Enabled) || !(dtermDynamicLowpassEnabled || dtermLowpass1Enabled)) {
|
||||||
warning_e.show();
|
warning_e.show();
|
||||||
} else {
|
} else {
|
||||||
warning_e.hide();
|
warning_e.hide();
|
||||||
}
|
}
|
||||||
|
if (FEATURE_CONFIG.features.isEnabled('DYNAMIC_FILTER')) {
|
||||||
|
warningDynamicNotch_e.hide();
|
||||||
|
} else {
|
||||||
|
warningDynamicNotch_e.show();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -696,6 +696,11 @@
|
||||||
<p i18n="filterWarning"></p>
|
<p i18n="filterWarning"></p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="note dynamicNotchWarning">
|
||||||
|
<div class="note_spacer">
|
||||||
|
<p i18n="pidTuningDynamicNotchFilterDisabledWarning"></p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="cf_column two_columns">
|
<div class="cf_column two_columns">
|
||||||
<div class="gui_box grey topspacer pid_filter two_columns_first">
|
<div class="gui_box grey topspacer pid_filter two_columns_first">
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue