Skip to content

Commit 5a13439

Browse files
committed
fix integrated yaw usage
move code to pidtuning.js fix tuningsliders
1 parent 41747c6 commit 5a13439

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/js/tabs/pid_tuning.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -547,6 +547,10 @@ TABS.pid_tuning.initialize = function (callback) {
547547

548548
$('input[id="useIntegratedYaw"]').change(function() {
549549
const checked = $(this).is(':checked');
550+
if (semver.gte(FC.CONFIG.apiVersion, API_VERSION_1_44)) {
551+
this.sliderPidsMode = 0;
552+
}
553+
$('#pid_main .pid_data input').prop('disabled', !checked);
550554
$('#pidTuningIntegratedYawCaution').toggle(checked);
551555
}).change();
552556

0 commit comments

Comments
 (0)