-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6a3284e
commit 560d669
Showing
8 changed files
with
185 additions
and
42 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
7 changes: 7 additions & 0 deletions
7
fbw-a380x/src/systems/instruments/src/OIT/OisInternalPublisher.ts
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,7 @@ | ||
// Copyright (c) 2025 FlyByWire Simulations | ||
// SPDX-License-Identifier: GPL-3.0 | ||
|
||
export interface OisInternalData { | ||
/** SYNCHRO AVIONICS is pressed (transmitted to EFB overlay) */ | ||
synchroAvncs: boolean; | ||
} |
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
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,15 @@ | ||
import { initialState, setSimbriefData, SimbriefData } from '@flybywiresim/flypad'; | ||
import { PayloadAction } from '@reduxjs/toolkit'; | ||
|
||
export function simbriefDataFromFms( | ||
simBriefData: SimbriefData, | ||
origin?: string, | ||
destination?: string, | ||
altn?: string, | ||
): PayloadAction<SimbriefData> { | ||
const state = Object.assign({}, simBriefData ?? initialState.data); | ||
state.departingAirport = origin ?? state.departingAirport; | ||
state.arrivingAirport = destination ?? state.arrivingAirport; | ||
state.altIcao = altn ?? state.altIcao; | ||
return setSimbriefData(state); | ||
} |
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