1
0
Fork 0
mirror of https://github.com/iNavFlight/inav-configurator.git synced 2025-07-13 19:40:22 +03:00

MP version 2.0

cleaning some console.log()
This commit is contained in:
ArnoTlse 2021-06-15 23:28:12 +02:00
parent 258b92cd54
commit 91ff7efe69
2 changed files with 0 additions and 6 deletions

View file

@ -318,7 +318,6 @@ let WaypointCollection = function () {
lJumptTargetAttached.push(element.getNumber()); lJumptTargetAttached.push(element.getNumber());
} }
}); });
console.log("lJumptTargetAttached ", lJumptTargetAttached);
return (lJumptTargetAttached.length != 0 && lJumptTargetAttached != 'undefined') return (lJumptTargetAttached.length != 0 && lJumptTargetAttached != 'undefined')
} }
@ -424,7 +423,6 @@ let WaypointCollection = function () {
else { else {
samples = 1024; samples = 1024;
} }
console.log(samples);
if (globalSettings.mapProviderType == 'bing') { if (globalSettings.mapProviderType == 'bing') {
if (point2measure.length >1) { if (point2measure.length >1) {
const response = await fetch('http://dev.virtualearth.net/REST/v1/Elevation/Polyline?points='+point2measure+'&heights=ellipsoid&samples='+String(samples+1)+'&key='+globalSettings.mapApiKey); const response = await fetch('http://dev.virtualearth.net/REST/v1/Elevation/Polyline?points='+point2measure+'&heights=ellipsoid&samples='+String(samples+1)+'&key='+globalSettings.mapApiKey);

View file

@ -1050,8 +1050,6 @@ TABS.mission_control.initialize = function (callback) {
alert(chrome.i18n.getMessage('MissionPlannerJumpSettingsCheck')); alert(chrome.i18n.getMessage('MissionPlannerJumpSettingsCheck'));
} }
else if (mission.getPoiList().length != 0 && mission.getPoiList()) { else if (mission.getPoiList().length != 0 && mission.getPoiList()) {
console.log("mission.getPoiList() ",mission.getPoiList());
console.log(mission.convertJumpNumberToWaypoint(Number($(this).val())-1));
if (mission.getPoiList().includes(mission.convertJumpNumberToWaypoint(Number($(this).val())-1))) { if (mission.getPoiList().includes(mission.convertJumpNumberToWaypoint(Number($(this).val())-1))) {
$(this).val(1); $(this).val(1);
alert(chrome.i18n.getMessage('MissionPlannerJump3SettingsCheck')); alert(chrome.i18n.getMessage('MissionPlannerJump3SettingsCheck'));
@ -1730,7 +1728,6 @@ TABS.mission_control.initialize = function (callback) {
$('#pointP3').on('change', function (event) { $('#pointP3').on('change', function (event) {
if (selectedMarker) { if (selectedMarker) {
selectedMarker.setP3( $('#pointP3').prop("checked") ? 1.0 : 0.0); selectedMarker.setP3( $('#pointP3').prop("checked") ? 1.0 : 0.0);
console.log($('#pointP3').prop("checked"));
if ($('#pointP3').prop("checked")) { if ($('#pointP3').prop("checked")) {
(async () => { (async () => {
const elevationAtWP = await selectedMarker.getElevation(globalSettings); const elevationAtWP = await selectedMarker.getElevation(globalSettings);
@ -2231,7 +2228,6 @@ TABS.mission_control.initialize = function (callback) {
}; };
let y_missionElevation = altPoint2measure.map((x,i) => x / 100 + HOME.getAlt()*(1-refPoint2measure[i])); let y_missionElevation = altPoint2measure.map((x,i) => x / 100 + HOME.getAlt()*(1-refPoint2measure[i]));
let y_elevationReference = refPoint2measure.map((x,i) => (x == 1 ? "WGS84" : "Take-off Home")); let y_elevationReference = refPoint2measure.map((x,i) => (x == 1 ? "WGS84" : "Take-off Home"));
console.log(y_elevationReference);
var trace_missionHeight = { var trace_missionHeight = {
x: lengthMission, x: lengthMission,
y: y_missionElevation , y: y_missionElevation ,