Skip to content

Commit

Permalink
Raise PID profile count
Browse files Browse the repository at this point in the history
  • Loading branch information
haslinghuis committed Aug 5, 2022
1 parent 1c77543 commit cb32aa4
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/js/tabs/pid_tuning.js
Expand Up @@ -1464,19 +1464,28 @@ pid_tuning.initialize = function (callback) {
numberOfProfiles = 2;
}

if (semver.gte(FC.CONFIG.apiVersion, API_VERSION_1_45)) {
numberOfProfiles = 4;
}

const profileElements = [];
for (let i=0; i<numberOfProfiles; i++) {
for (let i = 0; i < numberOfProfiles; i++) {
profileElements.push(i18n.getMessage("pidTuningProfileOption",[(i + 1)]));
}
return profileElements;
}

function loadRateProfilesList() {
let numberOfRateProfiles = 6;

if (semver.lt(FC.CONFIG.apiVersion, API_VERSION_1_37)) {
numberOfRateProfiles = 3;
}

if (semver.gte(FC.CONFIG.apiVersion, API_VERSION_1_45)) {
numberOfRateProfiles = 4;
}

const rateProfileElements = [];
for (let i=0; i<numberOfRateProfiles; i++) {
rateProfileElements.push(i18n.getMessage("pidTuningRateProfileOption",[(i + 1)]));
Expand Down

0 comments on commit cb32aa4

Please sign in to comment.