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:
parent
8b6e4cb934
commit
4ddbc9a823
6 changed files with 31 additions and 1 deletions
|
@ -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;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue