Skip to content

Commit

Permalink
Merge branch 'master' into feature/gsx-integration
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucky38i committed Jan 17, 2023
2 parents f11b2b8 + 986fd65 commit c2e6ff5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/fmgc/src/flightplanning/LegsProcedure.ts
Expand Up @@ -280,7 +280,7 @@ export class LegsProcedure {
// find a leg with the reference navaid for the procedure
for (let i = this._legs.length - 1; i >= 0; i--) {
if (this._legs[i].originIcao.trim().length > 0) {
const recNavaid: RawVor = this.getLoadedFacility(currentLeg.originIcao) as RawVor;
const recNavaid: RawVor = this.getLoadedFacility(this._legs[i].originIcao) as RawVor;
if (recNavaid && recNavaid.magneticVariation !== undefined) {
return 360 - recNavaid.magneticVariation;
}
Expand Down
2 changes: 1 addition & 1 deletion src/systems/a380_systems/src/navigation.rs
Expand Up @@ -54,7 +54,7 @@ impl A380RadioAltimeters {
radio_altimeter_3: A380RadioAltimeter::new(
context,
3,
ElectricalBusType::AlternatingCurrent(2),
ElectricalBusType::AlternatingCurrentEssential,
AntennaInstallation::new(
Length::new::<foot>(14.75) - Length::new::<meter>(4.27),
Length::new::<meter>(15.90),
Expand Down

0 comments on commit c2e6ff5

Please sign in to comment.