From 11808775969f6286c57411966967c3d8c86e8afa Mon Sep 17 00:00:00 2001 From: Michael Corcoran Date: Sun, 30 Jul 2023 21:33:35 +1200 Subject: [PATCH] fix(msfs): other offset thr (#21) --- src/client/backends/Msfs/Mapping.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/backends/Msfs/Mapping.ts b/src/client/backends/Msfs/Mapping.ts index 24c29dc..1b708be 100644 --- a/src/client/backends/Msfs/Mapping.ts +++ b/src/client/backends/Msfs/Mapping.ts @@ -207,7 +207,7 @@ export class MsfsMapping { const thresholdDistance = primary ? msRunway.primaryThresholdLength : msRunway.secondaryThresholdLength; const startLocation = placeBearingDistance({ lat: msRunway.latitude, long: msRunway.longitude }, this.oppositeBearing(bearing), startDistance / 1852); const thresholdLocation = { - ...(thresholdDistance > 0 ? placeBearingDistance(startLocation, this.oppositeBearing(bearing), thresholdDistance / 1852) : startLocation), + ...(thresholdDistance > 0 ? placeBearingDistance(startLocation, bearing, thresholdDistance / 1852) : startLocation), alt: (primary ? msRunway.primaryElevation : msRunway.secondaryElevation) * 3.28084, }; // TODO we could get this from approach data...