Skip to content

Commit

Permalink
feat(a380/fws): transponder standby ecam message (#8941)
Browse files Browse the repository at this point in the history
* feat(a380/fws): add surv xpdr stby ecam message

* only check for one active transponder
  • Loading branch information
BravoMike99 committed Sep 20, 2024
1 parent c8c6b9f commit 1e80964
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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: []
}

};
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
};
}
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 1e80964

Please sign in to comment.