mirror of
https://github.com/iNavFlight/inav-configurator.git
synced 2025-07-13 11:29:53 +03:00
Bug fixes, added active mission setting,
This commit is contained in:
parent
7f45ec5d68
commit
cc05ab4f44
5 changed files with 103 additions and 57 deletions
|
@ -149,7 +149,7 @@ let WaypointCollection = function () {
|
|||
data = tmpData;
|
||||
};
|
||||
|
||||
self.update = function (bMWPfile=false, bReverse=false) {
|
||||
self.update = function (singleMission = true, bMWPfile=false, bReverse=false) {
|
||||
let oldWPNumber = 0;
|
||||
let optionIdx = 0;
|
||||
let idx = 0;
|
||||
|
@ -180,7 +180,8 @@ let WaypointCollection = function () {
|
|||
optionIdx = 0;
|
||||
idx++;
|
||||
}
|
||||
if (!(bMWPfile && bReverse)) {
|
||||
|
||||
if (singleMission) {
|
||||
if (element.getNumber() == self.get().length - 1) {
|
||||
element.setEndMission(0xA5);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue