diff --git a/src/css/switchery_custom.css b/src/css/switchery_custom.css index 4a9d86e9..d7fe6cd8 100644 --- a/src/css/switchery_custom.css +++ b/src/css/switchery_custom.css @@ -60,3 +60,8 @@ height: 10px; width: 10px; } + +.switchery-disabled { + pointer-events: none; + opacity: 0.3; +} diff --git a/src/js/tabs/pid_tuning.js b/src/js/tabs/pid_tuning.js index 84c23130..ed2f0d63 100644 --- a/src/js/tabs/pid_tuning.js +++ b/src/js/tabs/pid_tuning.js @@ -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() { diff --git a/src/tabs/pid_tuning.html b/src/tabs/pid_tuning.html index 2993c0b4..1c988321 100644 --- a/src/tabs/pid_tuning.html +++ b/src/tabs/pid_tuning.html @@ -514,7 +514,7 @@