From 81a8ee3a2e03a24da13cc0bcc4cf3a7d51f188a6 Mon Sep 17 00:00:00 2001 From: 2hwk <15316958+2hwk@users.noreply.github.com> Date: Sun, 8 Jan 2023 00:08:10 +0800 Subject: [PATCH] fix(efb): landing calculator widget runway shows correct runway heading (#7674) * fix(efb): landing calculator widget runway shows 36 instead of 00 when heading is below 5 degrees * chore: changelog.md --- .github/CHANGELOG.md | 6 +++--- .../EFB/Performance/Widgets/RunwayVisualizationWidget.tsx | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/CHANGELOG.md b/.github/CHANGELOG.md index e923ee90f94..52101aa76e2 100644 --- a/.github/CHANGELOG.md +++ b/.github/CHANGELOG.md @@ -19,9 +19,9 @@ 1. [EFB] Fix and improve pushback system and add API documentation - @frankkopp (Frank Kopp) 1. [RMP] RMPs navigation backup - Julian Sebline (Julian Sebline#8476 on Discord) 1. [SEC] Fix GND SPLR logic, add missing GND SPLR partial extension condition - @lukecologne (luke) -1. [FMGC] Improved importing flight plans from MSFS World Map - @frankkopp (Frank Kopp) +1. [FMGC] Improved importing flight plans from MSFS World Map - @frankkopp (Frank Kopp) 1. [EFB] Added boarding time indication to Payload page - @ChristianLutzCL (Christian Lutz) @frankkopp (Frank Kopp) - +1. [EFB] Show correct runway numbers in landing calculator's runway widget when heading is between 0-5 degrees - @2hwk (2Cas#1022) ## 0.9.0 1. [MODEL] Add Wheel Chocks and GSE Safety Cones - @bouveng (Johan Bouveng) @@ -1156,4 +1156,4 @@ 1. [DCDU] Fixed MSG- and MSG+ button labels - @tyler58546 (tyler58546) 1. [ISIS] Fixed issue where ISIS was allowing a bug to be set while in the OFF state - Patrick Macken (@Pat M on Discord) -1. [EFB] Added estimated boarding time to Payload screen - @ChristianLutzCL (Christian Lutz) \ No newline at end of file +1. [EFB] Added estimated boarding time to Payload screen - @ChristianLutzCL (Christian Lutz) diff --git a/src/instruments/src/EFB/Performance/Widgets/RunwayVisualizationWidget.tsx b/src/instruments/src/EFB/Performance/Widgets/RunwayVisualizationWidget.tsx index e42ce3b5674..6d24af4b35d 100644 --- a/src/instruments/src/EFB/Performance/Widgets/RunwayVisualizationWidget.tsx +++ b/src/instruments/src/EFB/Performance/Widgets/RunwayVisualizationWidget.tsx @@ -46,7 +46,7 @@ interface RunwayNumberProps { } const RunwayNumber = ({ heading }: RunwayNumberProps) => { - const displayedHeading = heading === 360 || heading === 0 ? 360 : heading! % 360; + const displayedHeading = (heading! % 360 < 5) ? 360 : heading! % 360; return (