mirror of
https://github.com/iNavFlight/inav-configurator.git
synced 2025-07-23 08:15:19 +03:00
Merge branch 'master' of https://github.com/iNavFlight/inav-configurator into Electron
This commit is contained in:
commit
ca13eefa1b
32 changed files with 2988 additions and 796 deletions
|
@ -1,7 +1,7 @@
|
|||
/*global $*/
|
||||
'use strict';
|
||||
|
||||
var Waypoint = function (number, action, lat, lon, alt=0, p1=0, p2=0, p3=0, endMission=0, isUsed=true, isAttached=false, attachedId="") {
|
||||
let Waypoint = function (number, action, lat, lon, alt=0, p1=0, p2=0, p3=0, endMission=0, isUsed=true, isAttached=false, attachedId="", multiMissionIdx = 0) {
|
||||
|
||||
var self = {};
|
||||
let layerNumber = "undefined";
|
||||
|
@ -136,6 +136,14 @@ var Waypoint = function (number, action, lat, lon, alt=0, p1=0, p2=0, p3=0, endM
|
|||
attachedNumber = data;
|
||||
};
|
||||
|
||||
self.setMultiMissionIdx = function(data) {
|
||||
multiMissionIdx = data;
|
||||
}
|
||||
|
||||
self.getMultiMissionIdx = function() {
|
||||
return multiMissionIdx;
|
||||
}
|
||||
|
||||
self.getElevation = async function (globalSettings) {
|
||||
let elevation = "N/A";
|
||||
if (globalSettings.mapProviderType == 'bing') {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue