Skip to content

Commit

Permalink
Merge branch 'master' into feat/a380-fix-info
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjozork authored Jan 5, 2025
2 parents a9cd915 + 19343d7 commit d9fea49
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .github/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,8 @@
1. [A380X/EFB] Improved Aircraft Presets configuration for the A380X - @frankkopp (cdr_maverick)
1. [A32NX/AMU] Enable VHF3 audio, and allow switching off VHF1 - @tracernz (Mike)
1. [A380X/FMS] Add basic FIX INFO functionality - @Benjozork (Benjamin Dupont)
1. [A380X/PFD] Fix font colours on metric altitude display - @MrJigs7 (MrJigs.)
1. [A380X/MFD] Fixed the altitude prediction not rounding to the nearest 10 on the FPLN page - @bulenteroglu (senolitam)

## 0.12.0

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
DisplayComponent,
FSComponent,
MappedSubject,
MathUtils,
NodeReference,
Subject,
Subscribable,
Expand Down Expand Up @@ -1452,7 +1453,8 @@ class FplnLegLine extends DisplayComponent<FplnLegLineProps> {
} else if (!isBelowTransAlt) {
altStr = <span>{`FL${Math.round(data.altitudePrediction / 100).toString()}`}</span>;
} else {
altStr = <span>{data.altitudePrediction.toFixed(0)}</span>;
const roundedAltitude = MathUtils.round(data.altitudePrediction, 10).toFixed(0);
altStr = <span>{roundedAltitude}</span>;
}
}
if (data.hasAltitudeConstraint && data.altitudePrediction) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -952,7 +952,7 @@ class MetricAltIndicator extends DisplayComponent<{ bus: EventBus }> {
<text
ref={this.metricAltText}
id="MetricAltText"
class="FontMedium Cyan MiddleAlign"
class="FontMedium Green MiddleAlign"
x="128.64708"
y="145.86191"
>
Expand All @@ -962,7 +962,7 @@ class MetricAltIndicator extends DisplayComponent<{ bus: EventBus }> {
<text
id="MetricAltTargetText"
ref={this.metricAltTargetText}
class="FontSmallest Green MiddleAlign"
class="FontSmallest Cyan MiddleAlign"
x="94.088852"
y="37.926617"
>
Expand Down

0 comments on commit d9fea49

Please sign in to comment.