Skip to content

Commit

Permalink
fix(a380/fws): refuel panel door event (#9857)
Browse files Browse the repository at this point in the history
  • Loading branch information
BravoMike99 authored Feb 13, 2025
1 parent df1324b commit 93e994a
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 155 deletions.

This file was deleted.

4 changes: 2 additions & 2 deletions fbw-a380x/src/systems/systems-host/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import {
ArincEventBus,
BtvSimvarPublisher,
FailuresConsumer,
MsfsFlightModelPublisher,
PilotSeatPublisher,
VhfComIndices,
} from '@flybywiresim/fbw-sdk';
Expand All @@ -46,7 +47,6 @@ import {
CpiomAvailableSimvars,
} from 'instruments/src/MsfsAvionicsCommon/providers/CpiomAvailablePublisher';
import { A380Failure } from '@failures';
import { InteractivePointsPublisher } from 'instruments/src/MsfsAvionicsCommon/providers/InteractivePointsPublisher';

CpiomAvailableSimvarPublisher;
class SystemsHost extends BaseInstrument {
Expand Down Expand Up @@ -116,7 +116,7 @@ class SystemsHost extends BaseInstrument {

private readonly cpiomAvailablePublisher = new CpiomAvailableSimvarPublisher(this.bus);

private readonly interactivePointsPublisher = new InteractivePointsPublisher(this.bus);
private readonly interactivePointsPublisher = new MsfsFlightModelPublisher(this.bus);

private readonly fws1ResetPbStatus = ConsumerSubject.create(this.sub.on('a380x_reset_panel_fws1'), false);
private readonly fws2ResetPbStatus = ConsumerSubject.create(this.sub.on('a380x_reset_panel_fws2'), false);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ import {
Arinc429Word,
FailuresConsumer,
FrequencyMode,
MsfsFlightModelEvents,
NXLogicConfirmNode,
NXLogicMemoryNode,
NXLogicPulseNode,
Expand Down Expand Up @@ -61,7 +62,6 @@ import { Mle, Mmo, VfeF1, VfeF1F, VfeF2, VfeF3, VfeFF, Vle, Vmo } from '@shared/
import { FwsAuralVolume, FwsSoundManager } from 'systems-host/systems/FlightWarningSystem/FwsSoundManager';
import { FwcFlightPhase, FwsFlightPhases } from 'systems-host/systems/FlightWarningSystem/FwsFlightPhases';
import { A380Failure } from '@failures';
import { InteractivePointEvents } from 'instruments/src/MsfsAvionicsCommon/providers/InteractivePointsPublisher';
import { FuelSystemEvents } from 'instruments/src/MsfsAvionicsCommon/providers/FuelSystemPublisher';

export function xor(a: boolean, b: boolean): boolean {
Expand All @@ -86,7 +86,7 @@ export enum FwcAuralWarning {

export class FwsCore {
public readonly sub = this.bus.getSubscriber<
PseudoFwcSimvars & StallWarningEvents & MfdSurvEvents & FuelSystemEvents & KeyEvents & InteractivePointEvents
PseudoFwcSimvars & StallWarningEvents & MfdSurvEvents & FuelSystemEvents & KeyEvents & MsfsFlightModelEvents
>();

private subs: Subscription[] = [];
Expand Down Expand Up @@ -964,7 +964,7 @@ export class FwsCore {

private readonly fuelOnBoard = ConsumerSubject.create(this.sub.on('fuel_on_board'), 0);

private readonly refuelPanel = ConsumerSubject.create(this.sub.on('interactive_point_open_18'), 0);
private readonly refuelPanel = ConsumerSubject.create(this.sub.on('msfs_interactive_point_open_18'), 0);

private readonly fuelingInitiated = ConsumerSubject.create(this.sub.on('fuel_refuel_started_by_user'), false);

Expand Down Expand Up @@ -1730,8 +1730,6 @@ export class FwsCore {
),
);

SimVar.SetSimVarValue('L:A32NX_STATUS_LEFT_LINE_8', 'string', '000000001');

const ecamMemoKeys = Object.keys(EcamMemos);
Object.keys(this.memos.ewdToLdgMemos).forEach((key) => {
this.memos.ewdToLdgMemos[key].codesToReturn.forEach((code) => {
Expand Down
108 changes: 0 additions & 108 deletions fbw-a380x/src/systems/systems-host/systems/FuelSystemPublisher.ts

This file was deleted.

0 comments on commit 93e994a

Please sign in to comment.