Auto merged - #2531 at Sun, 01 Aug 2021 02:17:07 GMT
Disable feedforward switch action for old versions10.8-maintenance
commit
03794c6699
|
@ -60,3 +60,8 @@
|
|||
height: 10px;
|
||||
width: 10px;
|
||||
}
|
||||
|
||||
.switchery-disabled {
|
||||
pointer-events: none;
|
||||
opacity: 0.3;
|
||||
}
|
||||
|
|
|
@ -329,7 +329,7 @@ TABS.pid_tuning.initialize = function (callback) {
|
|||
// Feedforward column
|
||||
$('#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)) {
|
||||
|
@ -531,6 +531,8 @@ TABS.pid_tuning.initialize = function (callback) {
|
|||
$('.feedforwardOption').hide();
|
||||
$('.vbatSagCompensation').hide();
|
||||
$('.thrustLinearization').hide();
|
||||
$('.feedforwardGroupCheckbox').addClass('switchery-disabled');
|
||||
$('input[id="feedforwardGroup"]').prop('checked', true);
|
||||
}
|
||||
|
||||
$('input[id="useIntegratedYaw"]').change(function() {
|
||||
|
|
|
@ -514,7 +514,7 @@
|
|||
</tr>
|
||||
|
||||
<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">
|
||||
<div class="helpicon cf_tip" i18n_title="pidTuningFeedforwardGroupHelp"></div>
|
||||
<span i18n="pidTuningFeedforwardGroup"></span>
|
||||
|
|
Loading…
Reference in New Issue