Skip to content

Commit

Permalink
Use Arinc429Register everywhere
Browse files Browse the repository at this point in the history
  • Loading branch information
BlueberryKing committed Sep 27, 2023
1 parent f93ae56 commit 3e246cd
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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;

Expand All @@ -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) => {
Expand Down

0 comments on commit 3e246cd

Please sign in to comment.