mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-26 17:55:24 +03:00
Rebase to master
This commit is contained in:
parent
393be634b9
commit
611190603f
1 changed files with 27 additions and 22 deletions
|
@ -362,6 +362,7 @@ TuningSliders.updatePidSlidersDisplay = function() {
|
||||||
$('#sliderPidsModeSelect').val(this.sliderPidsMode);
|
$('#sliderPidsModeSelect').val(this.sliderPidsMode);
|
||||||
} else {
|
} else {
|
||||||
this.pidSlidersUnavailable = false;
|
this.pidSlidersUnavailable = false;
|
||||||
|
|
||||||
this.calculateNewPids(true);
|
this.calculateNewPids(true);
|
||||||
|
|
||||||
FC.PID_NAMES.forEach(function (elementPid, indexPid) {
|
FC.PID_NAMES.forEach(function (elementPid, indexPid) {
|
||||||
|
@ -369,6 +370,7 @@ TuningSliders.updatePidSlidersDisplay = function() {
|
||||||
|
|
||||||
pidElements.each(function (indexInput) {
|
pidElements.each(function (indexInput) {
|
||||||
const val = parseInt($(this).val());
|
const val = parseInt($(this).val());
|
||||||
|
|
||||||
if (indexPid < 3 && indexInput < 3) {
|
if (indexPid < 3 && indexInput < 3) {
|
||||||
if (val !== FC.PIDS[indexPid][indexInput]) {
|
if (val !== FC.PIDS[indexPid][indexInput]) {
|
||||||
TuningSliders.pidSlidersUnavailable = true;
|
TuningSliders.pidSlidersUnavailable = true;
|
||||||
|
@ -378,6 +380,7 @@ TuningSliders.updatePidSlidersDisplay = function() {
|
||||||
const dMinRoll = (val !== FC.ADVANCED_TUNING.dMinRoll) && indexPid === 0;
|
const dMinRoll = (val !== FC.ADVANCED_TUNING.dMinRoll) && indexPid === 0;
|
||||||
const dMinPitch = (val !== FC.ADVANCED_TUNING.dMinPitch) && indexPid === 1;
|
const dMinPitch = (val !== FC.ADVANCED_TUNING.dMinPitch) && indexPid === 1;
|
||||||
const dMinYaw = (val !== FC.ADVANCED_TUNING.dMinYaw) && indexPid === 2;
|
const dMinYaw = (val !== FC.ADVANCED_TUNING.dMinYaw) && indexPid === 2;
|
||||||
|
|
||||||
if (dMinRoll || dMinPitch || dMinYaw) {
|
if (dMinRoll || dMinPitch || dMinYaw) {
|
||||||
TuningSliders.pidSlidersUnavailable = true;
|
TuningSliders.pidSlidersUnavailable = true;
|
||||||
}
|
}
|
||||||
|
@ -386,12 +389,14 @@ TuningSliders.updatePidSlidersDisplay = function() {
|
||||||
const feedforwardRoll = (val !== FC.ADVANCED_TUNING.feedforwardRoll) && indexPid === 0;
|
const feedforwardRoll = (val !== FC.ADVANCED_TUNING.feedforwardRoll) && indexPid === 0;
|
||||||
const feedforwardPitch = (val !== FC.ADVANCED_TUNING.feedforwardPitch) && indexPid === 1;
|
const feedforwardPitch = (val !== FC.ADVANCED_TUNING.feedforwardPitch) && indexPid === 1;
|
||||||
const feedforwardYaw = (val !== FC.ADVANCED_TUNING.feedforwardYaw) && indexPid === 2;
|
const feedforwardYaw = (val !== FC.ADVANCED_TUNING.feedforwardYaw) && indexPid === 2;
|
||||||
|
|
||||||
if (feedforwardRoll || feedforwardPitch || feedforwardYaw) {
|
if (feedforwardRoll || feedforwardPitch || feedforwardYaw) {
|
||||||
TuningSliders.pidSlidersUnavailable = true;
|
TuningSliders.pidSlidersUnavailable = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
});
|
||||||
|
|
||||||
if ($('input[id="useIntegratedYaw"]').is(':checked')) {
|
if ($('input[id="useIntegratedYaw"]').is(':checked')) {
|
||||||
this.pidSlidersUnavailable = true;
|
this.pidSlidersUnavailable = true;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue