forked from flybywiresim/aircraft
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(fws): Sound scheduling for FWS, triple click on capability downgr…
…ade (flybywiresim#9555) * Implement FwsSoundManager * add altitude callouts * a380x fixes * move PseudoFWC to systems-host; Implement AP + A/THR disconnect logic * fix triple clicks * fix a320/a380 differences * review fixes * BravoMike's review findings * fix AUTO_THROTTLE_DISCONNECT * single chime for A/THR OFF memo * another event forward * update a32nx sounds * change single chime back to a32nx variant * consider land armed for CAT 2 -> CAT 1 downgrades * don't break before event emission :) * Revert "update a32nx sounds" This reverts commit 4833704. * replace exec calculator code with simconnect call * add athr disconnect event, improve sendEvent call (no this) * first cavcharge fix * remove sound elec bus dependency * keep showing AP OFF alert unless AP re-engaged or flight is restarted * listen to ATS discrete word * pause before triple click * timing update * use FMGC discrete for AP engagement * add THR LEVERS ... MOVE * Don't instantly interrupt when continuous, only when higher prio * ECAM warning: Separate sound from AP OFF fault line * A380X: adapt timing, play first cav charge for at least 0.3s * fix alt c chord * a380x: fix short c-chord
- Loading branch information
1 parent
cb7b806
commit 22b5854
Showing
26 changed files
with
2,262 additions
and
1,298 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
fbw-a32nx/src/systems/instruments/src/MsfsAvionicsCommon/providers/PseudoFwcPublisher.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
// Copyright (c) 2021-2023 FlyByWire Simulations | ||
// | ||
// SPDX-License-Identifier: GPL-3.0 | ||
|
||
import { EventBus, SimVarDefinition, SimVarValueType, SimVarPublisher } from '@microsoft/msfs-sdk'; | ||
|
||
export type PseudoFwcSimvars = { | ||
engine1Master: number; | ||
engine2Master: number; | ||
engine3Master: number; | ||
engine4Master: number; | ||
fmgc1DiscreteWord3: number; | ||
fmgc2DiscreteWord3: number; | ||
fmgc1DiscreteWord4: number; | ||
fmgc2DiscreteWord4: number; | ||
}; | ||
|
||
export class PseudoFwcSimvarPublisher extends SimVarPublisher<PseudoFwcSimvars> { | ||
private static simvars = new Map<keyof PseudoFwcSimvars, SimVarDefinition>([ | ||
['engine1Master', { name: 'A:FUELSYSTEM VALVE SWITCH:1', type: SimVarValueType.Bool }], | ||
['engine2Master', { name: 'A:FUELSYSTEM VALVE SWITCH:2', type: SimVarValueType.Bool }], | ||
['engine3Master', { name: 'A:FUELSYSTEM VALVE SWITCH:3', type: SimVarValueType.Bool }], | ||
['engine4Master', { name: 'A:FUELSYSTEM VALVE SWITCH:4', type: SimVarValueType.Bool }], | ||
['fmgc1DiscreteWord3', { name: 'L:A32NX_FMGC_1_DISCRETE_WORD_3', type: SimVarValueType.Number }], | ||
['fmgc2DiscreteWord3', { name: 'L:A32NX_FMGC_2_DISCRETE_WORD_3', type: SimVarValueType.Number }], | ||
['fmgc1DiscreteWord4', { name: 'L:A32NX_FMGC_1_DISCRETE_WORD_4', type: SimVarValueType.Number }], | ||
['fmgc2DiscreteWord4', { name: 'L:A32NX_FMGC_2_DISCRETE_WORD_4', type: SimVarValueType.Number }], | ||
]); | ||
|
||
public constructor(bus: EventBus) { | ||
super(PseudoFwcSimvarPublisher.simvars, bus); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.