mirror of
https://github.com/iNavFlight/inav-configurator.git
synced 2025-07-25 17:25:14 +03:00
minor fix on output mapping
This commit is contained in:
parent
c41129b156
commit
0bb8c1521b
2 changed files with 5 additions and 5 deletions
|
@ -133,11 +133,10 @@ let ServoMixerRuleCollection = function () {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let unique = [...new Set(out)];
|
|
||||||
|
|
||||||
return unique.sort(function(a, b) {
|
let minIndex = Math.min(...out);
|
||||||
return a-b;
|
let maxIndex = Math.max(...out);
|
||||||
});
|
return Array.from({ length: maxIndex - minIndex + 1 }, (_, index) => minIndex + index);
|
||||||
}
|
}
|
||||||
|
|
||||||
self.getNextUnusedIndex = function() {
|
self.getNextUnusedIndex = function() {
|
||||||
|
|
|
@ -170,8 +170,9 @@ TABS.mixer.initialize = function (callback, scrollPosition) {
|
||||||
motors.push(outputPad);
|
motors.push(outputPad);
|
||||||
} else {
|
} else {
|
||||||
let servo = servoRules.getServoMixRuleFromTarget(omIndex[1]);
|
let servo = servoRules.getServoMixRuleFromTarget(omIndex[1]);
|
||||||
|
if (servo == null) {continue;}
|
||||||
let divID = "servoPreview" + omIndex[1];
|
let divID = "servoPreview" + omIndex[1];
|
||||||
|
|
||||||
switch (parseInt(servo.getInput())) {
|
switch (parseInt(servo.getInput())) {
|
||||||
case INPUT_STABILIZED_PITCH:
|
case INPUT_STABILIZED_PITCH:
|
||||||
case STABILIZED_PITCH_POSITIVE:
|
case STABILIZED_PITCH_POSITIVE:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue