1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-25 01:05:15 +03:00

fix integrated yaw usage

move code to pidtuning.js

fix tuningsliders
This commit is contained in:
Asizon 2021-11-07 10:22:17 +01:00
parent 41747c65b6
commit 5a13439897

View file

@ -547,6 +547,10 @@ TABS.pid_tuning.initialize = function (callback) {
$('input[id="useIntegratedYaw"]').change(function() {
const checked = $(this).is(':checked');
if (semver.gte(FC.CONFIG.apiVersion, API_VERSION_1_44)) {
this.sliderPidsMode = 0;
}
$('#pid_main .pid_data input').prop('disabled', !checked);
$('#pidTuningIntegratedYawCaution').toggle(checked);
}).change();