1
0
Fork 0
mirror of https://github.com/iNavFlight/inav-configurator.git synced 2025-07-26 01:35:23 +03:00

Improved filters

This commit is contained in:
Pawel Spychalski (DzikuVx) 2019-11-22 13:34:51 +01:00
parent 28bb794dff
commit 21c8c856f9
2 changed files with 17 additions and 3 deletions

View file

@ -276,6 +276,14 @@
<div class="cf_column">
<table class="rate-tpa rate-tpa--filtering">
<tbody>
<tr>
<th>Gyro Dynamic Filters</th>
<td>
<div style="padding-left: 1em; line-height: 28px;">
<input type="checkbox" data-bit="5" class="feature toggle" name="DYNAMIC_FILTERS" title="DYNAMIC_FILTERS" id="feature-5">
</div>
</td>
</tr>
<tr class="requires-v2_2">
<th data-i18n="gyro_lpf_type"></th>
<td>

View file

@ -1,4 +1,4 @@
/*global chrome*/
/*global chrome,helper,mspHelper*/
'use strict';
TABS.pid_tuning = {
@ -14,7 +14,8 @@ TABS.pid_tuning.initialize = function (callback) {
mspHelper.loadPidData,
mspHelper.loadINAVPidConfig,
mspHelper.loadPidAdvanced,
mspHelper.loadFilterConfig
mspHelper.loadFilterConfig,
mspHelper.loadBfConfig
];
loadChain.push(mspHelper.loadRateProfileData);
@ -108,6 +109,7 @@ TABS.pid_tuning.initialize = function (callback) {
localize();
helper.tabs.init($('.tab-pid_tuning'));
helper.features.updateUI($('.tab-pid_tuning'), BF_CONFIG.features);
hideUnusedPids(CONFIG.activeSensors);
@ -224,7 +226,11 @@ TABS.pid_tuning.initialize = function (callback) {
});
}
mspHelper.savePidData(send_rc_tuning_changes);
helper.features.reset();
helper.features.fromUI($('.tab-pid_tuning'));
helper.features.execute(function () {
mspHelper.savePidData(send_rc_tuning_changes);
});
});
GUI.content_ready(callback);