@fboes/aerofly-patterns
Advanced tools
Comparing version 2.3.7 to 2.3.8
# Changelog | ||
# 2.3.9 | ||
- Added `--no-guides` parameter to remove guides from missions | ||
# 2.3.8 | ||
- Added new cloud properties | ||
# 2.3.7 | ||
@@ -4,0 +12,0 @@ |
@@ -16,2 +16,4 @@ // @ts-check | ||
} from "@fboes/aerofly-custom-missions"; | ||
import { AeroflyMissionTargetPlane } from "@fboes/aerofly-custom-missions"; | ||
import { Vector } from "@fboes/geojson"; | ||
@@ -194,2 +196,3 @@ /** | ||
flightSetting: "cruise", | ||
difficulty: 0.5 + index * 0.01, | ||
aircraft: { | ||
@@ -218,2 +221,11 @@ name: s.aircraft.aeroflyCode, | ||
if (this.configuration.noGuides) { | ||
const targetPosition = s.aircraft.position.getPointBy(new Vector(1, s.aircraft.heading)); | ||
mission.finish = new AeroflyMissionTargetPlane( | ||
targetPosition.longitude, | ||
targetPosition.latitude, | ||
s.aircraft.heading, | ||
); | ||
} | ||
return mission; | ||
@@ -220,0 +232,0 @@ }); |
@@ -74,2 +74,7 @@ // @ts-check | ||
}, | ||
"no-guides": { | ||
type: "boolean", | ||
default: false, | ||
description: "Try to remove virtual guides from missions.", | ||
}, | ||
directory: { | ||
@@ -191,2 +196,7 @@ type: "boolean", | ||
/** | ||
* @type {boolean} if guides should be removed from missions | ||
*/ | ||
this.noGuides = Boolean(values["no-guides"]); | ||
/** | ||
* @type {boolean} | ||
@@ -193,0 +203,0 @@ */ |
@@ -244,3 +244,3 @@ // @ts-check | ||
} | ||
if(this.activeRunway?.dimension[0] && this.activeRunway.dimension[0] <= 2000) { | ||
if (this.activeRunway?.dimension[0] && this.activeRunway.dimension[0] <= 2000) { | ||
tags.push("short_runway"); | ||
@@ -247,0 +247,0 @@ } |
{ | ||
"name": "@fboes/aerofly-patterns", | ||
"version": "2.3.7", | ||
"version": "2.3.8", | ||
"description": "Landegerät - Create landing pattern lessons for Aerofly FS 4.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
96673
2742