Skip to content
This repository has been archived by the owner on Dec 29, 2023. It is now read-only.

Commit

Permalink
fix(msfs): other offset thr (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
tracernz authored Jul 30, 2023
1 parent bc50d64 commit 1180877
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client/backends/Msfs/Mapping.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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...
Expand Down

0 comments on commit 1180877

Please sign in to comment.