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: polar heading/track part 1 flybywiresim#7633 @2d51cdf
commit 2d51cdf Author: Michael Corcoran <[email protected]> Date: Tue Jan 3 02:45:23 2023 +1300 doc: simvars commit 1e22a04 Author: Michael Corcoran <[email protected]> Date: Thu Dec 22 23:02:48 2022 +1300 fix: review feedback Co-authored-by: David Walschots <[email protected]> commit 22212d6 Author: Michael Corcoran <[email protected]> Date: Wed Dec 21 23:17:17 2022 +1300 fix(fcu): awful hack for AP in hdg/trk when changing true ref commit e745f46 Author: Michael Corcoran <[email protected]> Date: Wed Dec 21 22:03:15 2022 +1300 fix(ND): adjust true indications based on new refs commit ab90e3c Author: Michael Corcoran <[email protected]> Date: Fri Dec 9 19:52:09 2022 +1300 fix(adiru): add new tests and fix old tests commit e5a3565 Author: Michael Corcoran <[email protected]> Date: Thu Dec 8 22:03:39 2022 +1300 fix(nd): adjust to 320 ref commit 2d7d386 Author: Michael Corcoran <[email protected]> Date: Thu Dec 8 21:45:12 2022 +1300 doc: changelog and pb simvar commit f104d5a Author: Michael Corcoran <[email protected]> Date: Wed Dec 7 22:43:47 2022 +1300 fix(nd): svg vis attr always gets me commit 4e39c35 Author: Michael Corcoran <[email protected]> Date: Wed Dec 7 21:52:39 2022 +1300 feat(nd): true ref for navaids commit 9756890 Author: Michael Corcoran <[email protected]> Date: Tue Dec 6 22:37:24 2022 +1300 fix(pfd): true flag flashes at slat extension commit 7db3ba6 Author: Michael Corcoran <[email protected]> Date: Mon Dec 5 23:02:02 2022 +1300 fix(nd): rect vis commit 3a1caad Author: Michael Corcoran <[email protected]> Date: Mon Dec 5 22:46:57 2022 +1300 feat(pfd): true ref Still QFU dagger to be done (I think) commit c67cbf5 Author: Michael Corcoran <[email protected]> Date: Mon Dec 5 22:44:29 2022 +1300 feat(nd): true ref Still work to be done around radio nav indications. commit dc707ef Author: Michael Corcoran <[email protected]> Date: Mon Dec 5 22:41:23 2022 +1300 feat(font): diamond for eis font commit 7db9163 Author: Michael Corcoran <[email protected]> Date: Sun Dec 4 02:23:15 2022 +1300 feat(adiru): polar heading/track
- Loading branch information
Showing
41 changed files
with
1,025 additions
and
221 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Binary file modified
BIN
+128 Bytes
(100%)
flybywire-aircraft-a320-neo/html_ui/Fonts/ECAMFontRegular.ttf
Binary file not shown.
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,28 @@ | ||
import { Arinc429Word } from '@shared/arinc429'; | ||
import { LateralMode } from '@shared/autopilot'; | ||
import { FmgcComponent } from './FmgcComponent'; | ||
|
||
// Note the logic for this is different on A330/350/380 | ||
|
||
export class FcuSync implements FmgcComponent { | ||
private trueRef = false; | ||
|
||
// eslint-disable-next-line no-empty-function | ||
init(): void {} | ||
|
||
update(_deltaTime: number): void { | ||
const irMaint = Arinc429Word.fromSimVarValue('L:A32NX_ADIRS_IR_1_MAINT_WORD'); | ||
const trueRefPb = SimVar.GetSimVarValue('L:A32NX_PUSH_TRUE_REF', 'bool'); | ||
|
||
const trueRef = (irMaint.getBitValueOr(15, false) || trueRefPb) && !irMaint.getBitValueOr(2, false); | ||
|
||
if (trueRef !== this.trueRef) { | ||
this.trueRef = trueRef; | ||
SimVar.SetSimVarValue('L:A32NX_FMGC_TRUE_REF', 'boolean', trueRef); | ||
const activeMode = SimVar.GetSimVarValue('L:A32NX_FMA_LATERAL_MODE', 'number'); | ||
if (activeMode === LateralMode.HDG || activeMode === LateralMode.TRACK) { | ||
SimVar.SetSimVarValue('L:A32NX_FM_HEADING_SYNC', 'boolean', true); | ||
} | ||
} | ||
} | ||
} |
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
Oops, something went wrong.