From 76ce5f14e02dad8f0138547fec7d8c45034bf49f Mon Sep 17 00:00:00 2001 From: I547291 Date: Mon, 25 Sep 2023 15:55:17 +0200 Subject: [PATCH 1/3] fix: show preselected speed and mach accordingly --- fbw-a32nx/src/systems/instruments/src/PFD/FMA.tsx | 2 +- fbw-a32nx/src/systems/instruments/src/PFD/PFD.svg | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/fbw-a32nx/src/systems/instruments/src/PFD/FMA.tsx b/fbw-a32nx/src/systems/instruments/src/PFD/FMA.tsx index 97ba8e30897..dcd0db3bc27 100644 --- a/fbw-a32nx/src/systems/instruments/src/PFD/FMA.tsx +++ b/fbw-a32nx/src/systems/instruments/src/PFD/FMA.tsx @@ -629,7 +629,7 @@ class AB3Cell extends DisplayComponent { if (this.athrModeMessage === 0) { if (this.speedPreselVal !== -1 && this.machPreselVal === -1) { const text = Math.round(this.speedPreselVal); - this.textSub.set(`SPEED SEL ${text}`); + this.textSub.set(`SPEED SEL: ${text}`); } else if (this.machPreselVal !== -1 && this.speedPreselVal === -1) { this.textSub.set(`MACH SEL ${this.machPreselVal.toFixed(2)}`); } else if (this.machPreselVal === -1 && this.speedPreselVal === -1) { diff --git a/fbw-a32nx/src/systems/instruments/src/PFD/PFD.svg b/fbw-a32nx/src/systems/instruments/src/PFD/PFD.svg index e99d3577ad3..95ed964ef59 100644 --- a/fbw-a32nx/src/systems/instruments/src/PFD/PFD.svg +++ b/fbw-a32nx/src/systems/instruments/src/PFD/PFD.svg @@ -1347,7 +1347,7 @@ id="tspan1385" x="35.434673" y="21.656223" - style="font-size:6px;text-align:center;text-anchor:middle;stroke-width:0.264583">SPEED SEL 210 + style="font-size:6px;text-align:center;text-anchor:middle;stroke-width:0.264583">SPEED SEL: 210 Date: Mon, 25 Sep 2023 17:29:34 +0200 Subject: [PATCH 2/3] fix: update MACH SEL as well --- fbw-a32nx/src/systems/instruments/src/PFD/FMA.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fbw-a32nx/src/systems/instruments/src/PFD/FMA.tsx b/fbw-a32nx/src/systems/instruments/src/PFD/FMA.tsx index dcd0db3bc27..b8f6f863660 100644 --- a/fbw-a32nx/src/systems/instruments/src/PFD/FMA.tsx +++ b/fbw-a32nx/src/systems/instruments/src/PFD/FMA.tsx @@ -631,7 +631,7 @@ class AB3Cell extends DisplayComponent { const text = Math.round(this.speedPreselVal); this.textSub.set(`SPEED SEL: ${text}`); } else if (this.machPreselVal !== -1 && this.speedPreselVal === -1) { - this.textSub.set(`MACH SEL ${this.machPreselVal.toFixed(2)}`); + this.textSub.set(`MACH SEL: ${this.machPreselVal.toFixed(2)}`); } else if (this.machPreselVal === -1 && this.speedPreselVal === -1) { this.textSub.set(''); } From 994aa663b7226525f5e25052f15c76abf20d4d8c Mon Sep 17 00:00:00 2001 From: aaronschweig Date: Fri, 29 Sep 2023 13:02:14 +0200 Subject: [PATCH 3/3] fix: remove the space --- fbw-a32nx/src/systems/instruments/src/PFD/FMA.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fbw-a32nx/src/systems/instruments/src/PFD/FMA.tsx b/fbw-a32nx/src/systems/instruments/src/PFD/FMA.tsx index b8f6f863660..94ae28fda40 100644 --- a/fbw-a32nx/src/systems/instruments/src/PFD/FMA.tsx +++ b/fbw-a32nx/src/systems/instruments/src/PFD/FMA.tsx @@ -629,9 +629,9 @@ class AB3Cell extends DisplayComponent { if (this.athrModeMessage === 0) { if (this.speedPreselVal !== -1 && this.machPreselVal === -1) { const text = Math.round(this.speedPreselVal); - this.textSub.set(`SPEED SEL: ${text}`); + this.textSub.set(`SPEED SEL:${text}`); } else if (this.machPreselVal !== -1 && this.speedPreselVal === -1) { - this.textSub.set(`MACH SEL: ${this.machPreselVal.toFixed(2)}`); + this.textSub.set(`MACH SEL:${this.machPreselVal.toFixed(2)}`); } else if (this.machPreselVal === -1 && this.speedPreselVal === -1) { this.textSub.set(''); }