mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-21 07:15:15 +03:00
Added support for 6 rateprofiles.
This commit is contained in:
parent
aa97cf452e
commit
039c55402e
2 changed files with 14 additions and 5 deletions
|
@ -1093,8 +1093,14 @@ TABS.pid_tuning.checkUpdateProfile = function (updateRateProfile) {
|
||||||
|
|
||||||
if (GUI.active_tab === 'pid_tuning') {
|
if (GUI.active_tab === 'pid_tuning') {
|
||||||
if (semver.gte(CONFIG.apiVersion, "1.20.0")
|
if (semver.gte(CONFIG.apiVersion, "1.20.0")
|
||||||
&& CONFIG.numProfiles === 2) {
|
&& CONFIG.numProfiles === 2) {
|
||||||
$('.tab-pid_tuning select[name="profile"] .profile3').hide();
|
$('.tab-pid_tuning select[name="profile"] .profile3').hide();
|
||||||
|
}
|
||||||
|
|
||||||
|
if (semver.lt(CONFIG.apiVersion, "1.37.0")) {
|
||||||
|
$('.tab-pid_tuning select[name="rate_profile"] .RateProfile4').hide();
|
||||||
|
$('.tab-pid_tuning select[name="rate_profile"] .RateProfile5').hide();
|
||||||
|
$('.tab-pid_tuning select[name="rate_profile"] .RateProfile6').hide();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!self.updating && !self.dirty) {
|
if (!self.updating && !self.dirty) {
|
||||||
|
|
|
@ -21,9 +21,12 @@
|
||||||
<div class="head" i18n="pidTuningRateProfile"></div>
|
<div class="head" i18n="pidTuningRateProfile"></div>
|
||||||
<div class="bottomarea">
|
<div class="bottomarea">
|
||||||
<select name="rate_profile">
|
<select name="rate_profile">
|
||||||
<option value="0">Rateprofile 1</option>
|
<option value="0" class="RateProfile1">Rateprofile 1</option>
|
||||||
<option value="1">Rateprofile 2</option>
|
<option value="1" class="RateProfile2">Rateprofile 2</option>
|
||||||
<option value="2">Rateprofile 3</option>
|
<option value="2" class="RateProfile3">Rateprofile 3</option>
|
||||||
|
<option value="3" class="RateProfile4">Rateprofile 4</option>
|
||||||
|
<option value="4" class="RateProfile5">Rateprofile 5</option>
|
||||||
|
<option value="5" class="RateProfile6">Rateprofile 6</option>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue