Skip to content

Commit

Permalink
Add TOO STEEP PATH AHEAD message to A380X
Browse files Browse the repository at this point in the history
  • Loading branch information
BlueberryKing committed Jan 1, 2025
1 parent ce0ea25 commit 01585c3
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -890,6 +890,7 @@ export class FlightManagementComputer implements FmcInterface {
this.acInterface.updatePerfSpeeds();
this.acInterface.updateWeights();
this.acInterface.toSpeedsChecks();
this.acInterface.checkTooSteepPath();

const toFlaps = this.fmgc.getTakeoffFlapsSetting();
if (toFlaps) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1780,6 +1780,24 @@ export class FmcAircraftInterface {

return SimVar.SetSimVarValue('L:A32NX_FM_LS_COURSE', 'number', course);
}

private hasTooSteepPathAhead = false;

checkTooSteepPath() {
const hasTooSteepPathAhead = this.fmc.guidanceController?.vnavDriver?.shouldShowTooSteepPathAhead();

if (hasTooSteepPathAhead !== this.hasTooSteepPathAhead) {
this.hasTooSteepPathAhead = hasTooSteepPathAhead;

if (hasTooSteepPathAhead) {
this.fmc.addMessageToQueue(
NXSystemMessages.tooSteepPathAhead,
() => !this.fmc.guidanceController?.vnavDriver?.shouldShowTooSteepPathAhead(),
undefined,
);
}
}
}
}

class FmArinc429OutputWord extends Arinc429Word {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ export const NXSystemMessages = {
stepAboveMaxFl: new TypeIIMessage('STEP ABOVE MAX FL'),
stepAhead: new TypeIIMessage('STEP AHEAD'),
stepDeleted: new TypeIIMessage('STEP DELETED'),
tooSteepPathAhead: new TypeIIMessage('TOO STEEP PATH AHEAD'),
};

export const NXFictionalMessages = {
Expand Down

0 comments on commit 01585c3

Please sign in to comment.