1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-21 23:35:22 +03:00

Disable feedforward switch action for old versions

This commit is contained in:
Asizon 2021-07-08 16:10:44 +02:00
parent 5fb3007a17
commit 63e3130aae
3 changed files with 9 additions and 2 deletions

View file

@ -60,3 +60,8 @@
height: 10px; height: 10px;
width: 10px; width: 10px;
} }
.switchery-disabled {
pointer-events: none;
opacity: 0.3;
}

View file

@ -329,7 +329,7 @@ TABS.pid_tuning.initialize = function (callback) {
// Feedforward column // Feedforward column
$('#pid_main tr :nth-child(6)').hide(); $('#pid_main tr :nth-child(6)').hide();
$('#pid-tuning .feedforwardTransition').hide(); $('#pid-tuning .feedforwardGroup').hide();
} }
if (semver.gte(FC.CONFIG.apiVersion, API_VERSION_1_41)) { if (semver.gte(FC.CONFIG.apiVersion, API_VERSION_1_41)) {
@ -531,6 +531,8 @@ TABS.pid_tuning.initialize = function (callback) {
$('.feedforwardOption').hide(); $('.feedforwardOption').hide();
$('.vbatSagCompensation').hide(); $('.vbatSagCompensation').hide();
$('.thrustLinearization').hide(); $('.thrustLinearization').hide();
$('.feedforwardGroupCheckbox').addClass('switchery-disabled');
$('input[id="feedforwardGroup"]').prop('checked', true);
} }
$('input[id="useIntegratedYaw"]').change(function() { $('input[id="useIntegratedYaw"]').change(function() {

View file

@ -514,7 +514,7 @@
</tr> </tr>
<tr class="feedforwardGroup"> <tr class="feedforwardGroup">
<td><input type="checkbox" id="feedforwardGroup" class="toggle" /></td> <td class="feedforwardGroupCheckbox"><input type="checkbox" id="feedforwardGroup" class="toggle" /></td>
<td colspan="2"> <td colspan="2">
<div class="helpicon cf_tip" i18n_title="pidTuningFeedforwardGroupHelp"></div> <div class="helpicon cf_tip" i18n_title="pidTuningFeedforwardGroupHelp"></div>
<span i18n="pidTuningFeedforwardGroup"></span> <span i18n="pidTuningFeedforwardGroup"></span>