Skip to content

Commit

Permalink
Merge pull request #2249 from Scavanger/Gyro-Lpf-Slider-Fix
Browse files Browse the repository at this point in the history
Dynamic Gyro LPF Fix
  • Loading branch information
mmosca authored Nov 16, 2024
2 parents 1a291dc + 1c38aef commit ffdf110
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 38 deletions.
4 changes: 0 additions & 4 deletions js/defaults_dialog_entries.js
Original file line number Diff line number Diff line change
Expand Up @@ -192,10 +192,6 @@ var defaultsDialogData = [
/*
Dynamic gyro LPF
*/
{
key: "gyro_use_dyn_lpf",
value: "ON"
},
{
key: "gyro_dyn_lpf_min_hz",
value: 85
Expand Down
6 changes: 0 additions & 6 deletions locale/en/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -1683,12 +1683,6 @@
"pidTuning_Manual_Yaw": {
"message": "Yaw (%)"
},
"pidTuning_gyro_use_dyn_lpf": {
"message": "Dynamic gyro LPF"
},
"pidTuning_gyro_use_dyn_lpf_help": {
"message": "When enabled, main gyro LPF frequency is automatically adjusted based on the current throttle position. When disabled, static LPF cutoff frequency is used."
},
"pidTuning_gyro_dyn_lpf_min_hz": {
"message": "Dynamic gyro LPF min. cutoff"
},
Expand Down
6 changes: 0 additions & 6 deletions locale/uk/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -1670,12 +1670,6 @@
"pidTuning_Manual_Yaw": {
"message": "Рискання (%)"
},
"pidTuning_gyro_use_dyn_lpf": {
"message": "Динамічний НЧФ гіроскопа"
},
"pidTuning_gyro_use_dyn_lpf_help": {
"message": "Коли увімкнено, основна частота LPF гіроскопа автоматично коригується на основі поточного положення тяги. Коли вимкнено, використовується статична частота зрізу LPF."
},
"pidTuning_gyro_dyn_lpf_min_hz": {
"message": "Динамічний ФНЧ гіроскопа, мін. частота зрізу"
},
Expand Down
11 changes: 1 addition & 10 deletions tabs/pid_tuning.html
Original file line number Diff line number Diff line change
Expand Up @@ -647,15 +647,6 @@ <h3 data-i18n="pidTuning_RateDynamics_Weight"></h3>
<div class="cf_column not-for-ez-tune">
<table class="settings-table settings-table--filtering not-for-ez-tune">
<tbody>
<tr>
<th data-i18n="pidTuning_gyro_use_dyn_lpf" style="height: 24px;"></th>
<td>
<div class="pidTuning_select">
<input id="gyro_use_dyn_lpf" type="checkbox" class="toggle update_preview" data-setting="gyro_use_dyn_lpf"/>
<div for="gyro_use_dyn_lpf" class="helpicon cf_tip" data-i18n_title="pidTuning_gyro_use_dyn_lpf_help"></div>
</div>
</td>
</tr>
<tr class="for_static_gyro_lpf">
<th data-i18n="pidTuning_gyro_main_lpf_hz"></th>
<td>
Expand Down Expand Up @@ -706,7 +697,7 @@ <h3 data-i18n="pidTuning_RateDynamics_Weight"></h3>
<th data-i18n="pidTuning_MatrixFilterType"></th>
<td>
<div class="pidTuning_select">
<select id="matrixFilterType" data-setting="dynamic_gyro_notch_mode" />
<select id="matrixFilterType" data-setting="dynamic_gyro_notch_mode">
<div for="matrixFilterType" class="helpicon cf_tip" data-i18n_title="pidTuning_MatrixFilterTypeHelp"></div>
</div>
</td>
Expand Down
12 changes: 0 additions & 12 deletions tabs/pid_tuning.js
Original file line number Diff line number Diff line change
Expand Up @@ -450,18 +450,6 @@ TABS.pid_tuning.initialize = function (callback) {
mspHelper.savePidData(send_rc_tuning_changes);
});

$('#gyro_use_dyn_lpf').on('change', function () {

if ($(this).is(':checked')) {
$('.for_dynamic_gyro_lpf').show();
$('.for_static_gyro_lpf').hide();
} else {
$('.for_dynamic_gyro_lpf').hide();
$('.for_static_gyro_lpf').show();
}

}).trigger('change');

GUI.content_ready(callback);
}
};
Expand Down

0 comments on commit ffdf110

Please sign in to comment.