1
0
Fork 0
mirror of https://github.com/iNavFlight/inav-configurator.git synced 2025-07-19 06:15:11 +03:00

Waypoint OOP version 2.5

This commit is contained in:
ArnoTlse 2021-04-17 11:46:57 +02:00
parent 8b6e4cb934
commit 4ddbc9a823
6 changed files with 31 additions and 1 deletions

View file

@ -321,6 +321,16 @@ let WaypointCollection = function () {
console.log("lJumptTargetAttached ", lJumptTargetAttached);
return (lJumptTargetAttached.length != 0 && lJumptTargetAttached != 'undefined')
}
self.getPoiList = function() {
let poiList = [];
data.forEach(function (element) {
if (element.getAction() == MWNP.WPTYPE.SET_POI) {
poiList.push(element.getNumber());
}
});
return poiList;
}
return self;
};