-
-
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.
feat: polar heading/track part 1 (#7633)
* feat(adiru): polar heading/track * feat(font): diamond for eis font * feat(nd): true ref Still work to be done around radio nav indications. * feat(pfd): true ref Still QFU dagger to be done (I think) * fix(nd): rect vis * fix(pfd): true flag flashes at slat extension * feat(nd): true ref for navaids * fix(nd): svg vis attr always gets me * doc: changelog and pb simvar * fix(nd): adjust to 320 ref * fix(adiru): add new tests and fix old tests * fix(ND): adjust true indications based on new refs * fix(fcu): awful hack for AP in hdg/trk when changing true ref * fix: review feedback Co-authored-by: David Walschots <[email protected]> * doc: simvars Co-authored-by: David Walschots <[email protected]>
- Loading branch information
1 parent
010bd3e
commit 82f9ad7
Showing
41 changed files
with
1,026 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.