From 1e80964505c857ea6a64895f1731b166c3800e71 Mon Sep 17 00:00:00 2001 From: BravoMike99 <119708186+BravoMike99@users.noreply.github.com> Date: Fri, 20 Sep 2024 02:12:06 +0100 Subject: [PATCH] feat(a380/fws): transponder standby ecam message (#8941) * feat(a380/fws): add surv xpdr stby ecam message * only check for one active transponder --- .../EcamMessages/AbnormalSensed/ata34.tsx | 7 +++++++ .../systems/FlightWarningSystem/FwsAbnormalSensed.ts | 10 ++++++++++ .../systems/FlightWarningSystem/FwsCore.ts | 5 ++--- 3 files changed, 19 insertions(+), 3 deletions(-) diff --git a/fbw-a380x/src/systems/instruments/src/MsfsAvionicsCommon/EcamMessages/AbnormalSensed/ata34.tsx b/fbw-a380x/src/systems/instruments/src/MsfsAvionicsCommon/EcamMessages/AbnormalSensed/ata34.tsx index b93e7e0b1d8..184058e3882 100644 --- a/fbw-a380x/src/systems/instruments/src/MsfsAvionicsCommon/EcamMessages/AbnormalSensed/ata34.tsx +++ b/fbw-a380x/src/systems/instruments/src/MsfsAvionicsCommon/EcamMessages/AbnormalSensed/ata34.tsx @@ -768,4 +768,11 @@ export const EcamAbnormalSensedAta34: { [n: number]: AbnormalProcedure } = { sensed: true, items: [], // not implemented }, + // SURVEILLANCE + 341800037 :{ + title: '\x1b<4m\x1b4mSURV\x1bm XPDR STBY', + sensed: true, + items: [] + } + }; diff --git a/fbw-a380x/src/systems/systems-host/systems/FlightWarningSystem/FwsAbnormalSensed.ts b/fbw-a380x/src/systems/systems-host/systems/FlightWarningSystem/FwsAbnormalSensed.ts index 154c55a0d99..b67218b6eef 100644 --- a/fbw-a380x/src/systems/systems-host/systems/FlightWarningSystem/FwsAbnormalSensed.ts +++ b/fbw-a380x/src/systems/systems-host/systems/FlightWarningSystem/FwsAbnormalSensed.ts @@ -2006,5 +2006,15 @@ export class FwsAbnormalSensed { inopSysApprLdg: () => ['320300007', '320300022', '340300028', '310300001', '220300009', '220300010', '220300021'], info: () => ['220200007', '220200008', '220200009'], }, + // SURVEILLANCE + 341800037: { + flightPhaseInhib: [1, 3, 4, 5, 6, 7, 10, 12], + simVarIsActive: this.fws.xpdrStby, + notActiveWhenFaults: [], + whichItemsToShow: () => [], + whichItemsChecked: () => [], + failure: 2, + sysPage: -1, + }, }; } diff --git a/fbw-a380x/src/systems/systems-host/systems/FlightWarningSystem/FwsCore.ts b/fbw-a380x/src/systems/systems-host/systems/FlightWarningSystem/FwsCore.ts index d244f1e69d4..b3b8e9614ce 100644 --- a/fbw-a380x/src/systems/systems-host/systems/FlightWarningSystem/FwsCore.ts +++ b/fbw-a380x/src/systems/systems-host/systems/FlightWarningSystem/FwsCore.ts @@ -2903,10 +2903,9 @@ export class FwsCore implements Instrument { this.gpwsGsOff.set(SimVar.GetSimVarValue('L:A32NX_GPWS_GS_OFF', 'Bool')); this.gpwsSysOff.set(SimVar.GetSimVarValue('L:A32NX_GPWS_SYS_OFF', 'Bool')); - // fix me use active transponder + // fix me check for fault condition when implemented const transponder1State = SimVar.GetSimVarValue('TRANSPONDER STATE:1', 'Enum'); - const transponder2State = SimVar.GetSimVarValue('TRANSPONDER STATE:2', 'Enum'); - this.xpdrStby.set(transponder1State === 1 || transponder2State === 1); + this.xpdrStby.set(transponder1State === 1); this.xpdrAltReporting.set( this.aircraftOnGround.get() ? this.xpdrAltReportingRequest.get()