Skip to content

Commit

Permalink
fix(ND): Track line not visible in GA TRK or RWY TRK modes (#9474) (#…
Browse files Browse the repository at this point in the history
…9513)

* fix: added trackline for RWY, RWY TRK and GA TRK lateral modes

* update CHANGELOG.md
  • Loading branch information
ta-dzik authored Nov 16, 2024
1 parent fa46681 commit e34fe14
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
1. [A32NX/FMGC] Implemented simulated FMGC computers - @lukecologne (luke)
1. [A32NX/FMGC] Implemented simulated FCU computers - @lukecologne (luke)
1. [A380X/ENGINES] Corrected ENG4 throttle variable typo - @rthom91 (Randy Thom)
1. [ND] Fixed track line not visible in GA TRK, RWY TRK and RWY modes - @ta-dzik (ta_dzik)

## 0.12.0

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,12 @@ export class TrackLine extends DisplayComponent<TrackLineProps> {
const lateralArmed = this.lateralArmedSub.get();

const shouldShowLine =
(lateralMode === LateralMode.NONE || lateralMode === LateralMode.HDG || lateralMode === LateralMode.TRACK) &&
(lateralMode === LateralMode.NONE ||
lateralMode === LateralMode.HDG ||
lateralMode === LateralMode.TRACK ||
lateralMode === LateralMode.RWY ||
lateralMode === LateralMode.RWY_TRACK ||
lateralMode === LateralMode.GA_TRACK) &&
!isArmed(lateralArmed, ArmedLateralMode.NAV);

if (wrongNDMode || headingInvalid || trackInvalid || !shouldShowLine) {
Expand Down

0 comments on commit e34fe14

Please sign in to comment.