mirror of
https://github.com/iNavFlight/inav-configurator.git
synced 2025-07-16 21:05:28 +03:00
MP version 1.4
Mission Distance computation corrected
This commit is contained in:
parent
d1dc9aab26
commit
ed5cc1b1b3
1 changed files with 2 additions and 2 deletions
|
@ -359,8 +359,8 @@ let WaypointCollection = function () {
|
||||||
nLoop = -1;
|
nLoop = -1;
|
||||||
}
|
}
|
||||||
if ( (jumpDict[self.getWaypoint(nStart).getNumber()]["n"]>=jumpDict[self.getWaypoint(nStart).getNumber()]["nLoop"] || jumpDict[self.getWaypoint(nStart).getNumber()]["nLoop"] ==0) ) {
|
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++;
|
nStart++;
|
||||||
//jumpDict[self.getWaypoint(nStart).getNumber()]["n"] = 0;
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
jumpDict[self.getWaypoint(nStart).getNumber()]["n"] = jumpDict[self.getWaypoint(nStart).getNumber()]["n"]+1;
|
jumpDict[self.getWaypoint(nStart).getNumber()]["n"] = jumpDict[self.getWaypoint(nStart).getNumber()]["n"]+1;
|
||||||
|
@ -388,7 +388,7 @@ let WaypointCollection = function () {
|
||||||
}
|
}
|
||||||
oldCoord = coord;
|
oldCoord = coord;
|
||||||
});
|
});
|
||||||
console.log("lengthLine ", lengthLine);
|
//console.log("lengthLine ", lengthLine);
|
||||||
return lengthLine.map(cumulativeSum);
|
return lengthLine.map(cumulativeSum);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue