From 3e246cd3f3478751501b02acc6f7dcd2c986e9d7 Mon Sep 17 00:00:00 2001 From: BBK <22713769+BlueberryKing@users.noreply.github.com> Date: Wed, 27 Sep 2023 22:11:11 +0200 Subject: [PATCH] Use `Arinc429Register` everywhere --- .../instruments/src/PFD/AttitudeIndicatorHorizon.tsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/fbw-a32nx/src/systems/instruments/src/PFD/AttitudeIndicatorHorizon.tsx b/fbw-a32nx/src/systems/instruments/src/PFD/AttitudeIndicatorHorizon.tsx index 9c5bf3b6909..8ff35a83088 100644 --- a/fbw-a32nx/src/systems/instruments/src/PFD/AttitudeIndicatorHorizon.tsx +++ b/fbw-a32nx/src/systems/instruments/src/PFD/AttitudeIndicatorHorizon.tsx @@ -3,7 +3,7 @@ // SPDX-License-Identifier: GPL-3.0 import { ClockEvents, ConsumerSubject, DisplayComponent, FSComponent, MappedSubject, Subject, Subscribable, VNode } from '@microsoft/msfs-sdk'; -import { Arinc429Word, Arinc429WordData } from '@flybywiresim/fbw-sdk'; +import { Arinc429Register, Arinc429Word, Arinc429WordData } from '@flybywiresim/fbw-sdk'; import { Arinc429RegisterSubject } from 'instruments/src/MsfsAvionicsCommon/Arinc429RegisterSubject'; import { DmcLogicEvents } from '../MsfsAvionicsCommon/providers/DmcPublisher'; @@ -309,9 +309,9 @@ class RadioAltAndDH extends DisplayComponent<{ bus: ArincEventBus, filteredRadio private radioAltitude = new Arinc429Word(0); - private transAltAr = Arinc429Word.empty(); + private transAltAr = Arinc429Register.empty(); - private transLvlAr = Arinc429Word.empty(); + private transLvlAr = Arinc429Register.empty(); private fmgcFlightPhase = 0; @@ -335,11 +335,11 @@ class RadioAltAndDH extends DisplayComponent<{ bus: ArincEventBus, filteredRadio }); sub.on('fmTransAltRaw').whenChanged().handle((ta) => { - this.transAltAr = new Arinc429Word(ta); + this.transAltAr.set(ta); }); sub.on('fmTransLvlRaw').whenChanged().handle((tl) => { - this.transLvlAr = new Arinc429Word(tl); + this.transLvlAr.set(tl); }); sub.on('fmgcFlightPhase').whenChanged().handle((fp) => {