1
0
Fork 0
mirror of https://github.com/iNavFlight/inav-configurator.git synced 2025-07-23 08:15:19 +03:00
This commit is contained in:
Scavanger 2024-04-01 14:44:39 -03:00
commit ca13eefa1b
32 changed files with 2988 additions and 796 deletions

View file

@ -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') {