1
0
Fork 0
mirror of https://github.com/iNavFlight/inav-configurator.git synced 2025-07-16 04:45:18 +03:00

MP version 1.4

Mission Distance computation corrected
This commit is contained in:
ArnoTlse 2021-05-13 14:51:42 +02:00 committed by Pawel Spychalski (DzikuVx)
parent d1dc9aab26
commit ed5cc1b1b3

View file

@ -359,8 +359,8 @@ let WaypointCollection = function () {
nLoop = -1;
}
if ( (jumpDict[self.getWaypoint(nStart).getNumber()]["n"]>=jumpDict[self.getWaypoint(nStart).getNumber()]["nLoop"] || jumpDict[self.getWaypoint(nStart).getNumber()]["nLoop"] ==0) ) {
jumpDict[self.getWaypoint(nStart).getNumber()]["n"] = 0;
nStart++;
//jumpDict[self.getWaypoint(nStart).getNumber()]["n"] = 0;
}
else {
jumpDict[self.getWaypoint(nStart).getNumber()]["n"] = jumpDict[self.getWaypoint(nStart).getNumber()]["n"]+1;
@ -388,7 +388,7 @@ let WaypointCollection = function () {
}
oldCoord = coord;
});
console.log("lengthLine ", lengthLine);
//console.log("lengthLine ", lengthLine);
return lengthLine.map(cumulativeSum);
}
}