From 1cbb1d2ecb09fc2f48a674f24001582ab9c51965 Mon Sep 17 00:00:00 2001 From: Saschl Date: Fri, 22 Dec 2023 10:17:03 +0100 Subject: [PATCH] fix: type and lint errors --- .../fmgc/src/flightplanning/new/rpc/FlightPlanRpcClient.ts | 4 ++-- fbw-a32nx/src/systems/instruments/src/PFD/.eslintrc.js | 2 +- .../src/systems/instruments/src/ND/FmsSymbolsPublisher.ts | 3 +++ fbw-common/src/systems/instruments/src/ND/ND.tsx | 6 +++--- 4 files changed, 9 insertions(+), 6 deletions(-) diff --git a/fbw-a32nx/src/systems/fmgc/src/flightplanning/new/rpc/FlightPlanRpcClient.ts b/fbw-a32nx/src/systems/fmgc/src/flightplanning/new/rpc/FlightPlanRpcClient.ts index 64422618476..fa456e968fc 100644 --- a/fbw-a32nx/src/systems/fmgc/src/flightplanning/new/rpc/FlightPlanRpcClient.ts +++ b/fbw-a32nx/src/systems/fmgc/src/flightplanning/new/rpc/FlightPlanRpcClient.ts @@ -201,8 +201,8 @@ export class FlightPlanRpcClient

implements return this.callFunctionViaRpc('revertHoldToComputed', at, planIndex, alternate); } - enableAltn(atIndexInAlternate: number, planIndex: number): Promise { - return this.callFunctionViaRpc('enableAltn', atIndexInAlternate, planIndex); + enableAltn(atIndexInAlternate: number, cruiseLevel: number, planIndex: number): Promise { + return this.callFunctionViaRpc('enableAltn', atIndexInAlternate, cruiseLevel, planIndex); } setPilotEnteredAltitudeConstraintAt(atIndex: number, isDescentConstraint: boolean, constraint?: AltitudeConstraint, planIndex?: FlightPlanIndex, alternate?: boolean): Promise { diff --git a/fbw-a32nx/src/systems/instruments/src/PFD/.eslintrc.js b/fbw-a32nx/src/systems/instruments/src/PFD/.eslintrc.js index 12f09be1db6..6fd0979d8af 100644 --- a/fbw-a32nx/src/systems/instruments/src/PFD/.eslintrc.js +++ b/fbw-a32nx/src/systems/instruments/src/PFD/.eslintrc.js @@ -2,7 +2,7 @@ module.exports = { - extends: '../../../.eslintrc.js', + extends: '../../../../.eslintrc.js', // overrides airbnb, use sparingly rules: { 'react/no-unknown-property': 'off', 'react/style-prop-object': 'off' }, diff --git a/fbw-common/src/systems/instruments/src/ND/FmsSymbolsPublisher.ts b/fbw-common/src/systems/instruments/src/ND/FmsSymbolsPublisher.ts index 662f0b8b448..ebd2f743f6b 100644 --- a/fbw-common/src/systems/instruments/src/ND/FmsSymbolsPublisher.ts +++ b/fbw-common/src/systems/instruments/src/ND/FmsSymbolsPublisher.ts @@ -9,5 +9,8 @@ export interface FmsSymbolsData { vectorsActive: PathVector[], vectorsDashed: PathVector[], vectorsTemporary: PathVector[], + vectorsMissed: PathVector[], + vectorsAlternate: PathVector[], + vectorsSecondary: PathVector[], traffic: NdTraffic[], } diff --git a/fbw-common/src/systems/instruments/src/ND/ND.tsx b/fbw-common/src/systems/instruments/src/ND/ND.tsx index c1f0dca49de..16138873c2c 100644 --- a/fbw-common/src/systems/instruments/src/ND/ND.tsx +++ b/fbw-common/src/systems/instruments/src/ND/ND.tsx @@ -5,9 +5,9 @@ import { ClockEvents, ConsumerSubject, DisplayComponent, EventBus, FSComponent, MappedSubject, Subject, Subscribable, VNode } from '@microsoft/msfs-sdk'; import { clampAngle } from 'msfs-geo'; -import { LnavStatus } from 'instruments/src/ND/shared/LnavStatus'; -import { VnavStatus } from 'instruments/src/ND/shared/VnavStatus'; -import { SelectedHeadingBug } from 'instruments/src/ND/pages/arc/SelectedHeadingBug'; +import { SelectedHeadingBug } from './pages/arc/SelectedHeadingBug'; +import { VnavStatus } from './shared/VnavStatus'; +import { LnavStatus } from './shared/LnavStatus'; import { CrossTrackError } from './shared/CrossTrackError'; import { RadioNeedle } from './shared/RadioNeedle'; import { GenericFmsEvents } from './types/GenericFmsEvents';