1
0
Fork 0
mirror of https://github.com/iNavFlight/inav-configurator.git synced 2025-07-24 16:55:22 +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

@ -53,7 +53,7 @@ let OutputMappingCollection = function () {
self.getOutputTable = function (isMR, motors, servos) {
let currentMotorIndex = 1,
currentServoIndex = 0,
timerMap = getTimerMap(isMR, motors, servos),
timerMap = getTimerMap(isMR, motors, servos.length),
outputMap = [],
offset = getFirstOutputOffset();
@ -67,7 +67,7 @@ let OutputMappingCollection = function () {
outputMap[i] = "Motor " + currentMotorIndex;
currentMotorIndex++;
} else if (assignment == OUTPUT_TYPE_SERVO) {
outputMap[i] = "Servo " + currentServoIndex;
outputMap[i] = "Servo " + servos[currentServoIndex];
currentServoIndex++;
}