1
0
Fork 0
mirror of https://github.com/iNavFlight/inav-configurator.git synced 2025-07-15 20:35:19 +03:00

Fix some minor issues on mixer tab

This commit is contained in:
Pawel Spychalski (DzikuVx) 2019-12-09 17:55:33 +01:00
parent cf696de656
commit 4ebb8fb3ff
3 changed files with 22 additions and 3 deletions

View file

@ -82,5 +82,20 @@ let ServoMixerRuleCollection = function () {
return count;
};
self.getUsedServoIndexes = function () {
let out = [];
for (let ruleIndex in data) {
if (data.hasOwnProperty(ruleIndex)) {
let rule = data[ruleIndex];
out.push(rule.getTarget());
}
}
return jQuery.unique(out).sort(function(a, b){
return a-b;
});
}
return self;
};