forked from flybywiresim/aircraft
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Added a parameter with the A32NX version to the flyPad simBrief…
… URL (flybywiresim#8472) * Added a source parameter with the A32NX version to the simBrief URL * Commented the getAirframeType function * Added the aircraft name to the version as a prefix * Loading the correct aircraft type build info * Catch error if build info file cannot be loaded (a380x issue only) * Changed parameter name to client on Navigraph's suggestion * Reverted accidental change * Changed comment * Adding aircraft type check independent from Efb based on Aircraft Name simvar. * Commenting * Using shared sdk import * Removed debug output
- Loading branch information
Showing
6 changed files
with
60 additions
and
18 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// Copyright (c) 2023-2024 FlyByWire Simulations | ||
// SPDX-License-Identifier: GPL-3.0 | ||
|
||
/** | ||
* Determine the aircraft type using the Aircraft Title SimVar. | ||
* @returns {string} - the aircraft type (a32nx, a380x, other) | ||
*/ | ||
export function getAircraftType(): string { | ||
const aircraftName :string = SimVar.GetSimVarValue('TITLE', 'string'); | ||
let aircraft: string; | ||
if (aircraftName.includes('A320')) { | ||
aircraft = 'a32nx'; | ||
} else if (aircraftName.includes('A380')) { | ||
aircraft = 'a380x'; | ||
} else { | ||
aircraft = 'other'; | ||
} | ||
return aircraft; | ||
} |
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 |
---|---|---|
@@ -1,27 +1,28 @@ | ||
export * from './navigraph'; | ||
export * from './ApproachUtils'; | ||
export * from './arinc429'; | ||
export * from './Arinc429ConsumerSubject'; | ||
export * from './Arinc429RegisterSubject'; | ||
export * from './ArincConsumer'; | ||
export * from './ArincEventBus'; | ||
export * from './ArincEventBusSubscriber'; | ||
export * from './ata'; | ||
export * from './Constants'; | ||
export * from './FmMessages'; | ||
export * from './GenericDataListenerSync'; | ||
export * from './MathUtils'; | ||
export * from './PathVector'; | ||
export * from './RunwayUtils'; | ||
export * from './UpdateThrottler'; | ||
export * from './aircraftTypeCheck'; | ||
export * from './arinc429'; | ||
export * from './array'; | ||
export * from './ata'; | ||
export * from './bitFlags'; | ||
export * from './config'; | ||
export * from './Constants'; | ||
export * from './GenericDataListenerSync'; | ||
export * from './FmMessages'; | ||
export * from './logic'; | ||
export * from './MathUtils'; | ||
export * from './navdata'; | ||
export * from './navigraph'; | ||
export * from './notification'; | ||
export * from './parseMetar'; | ||
export * from './PathVector'; | ||
export * from './persistence'; | ||
export * from './popup'; | ||
export * from './RunwayUtils'; | ||
export * from './simvar'; | ||
export * from './units'; | ||
export * from './UpdateThrottler'; |
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