Skip to content

Commit 75c4c67

Browse files
committed
feat(fms): SEC F-PLN initial work
FBW PR 9627 fix(mcdu): missing subsystems add missing fixes fixes fix: fuel pred
1 parent 5cff54d commit 75c4c67

36 files changed

Lines changed: 3278 additions & 1742 deletions

.eslintignore

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,4 @@ hdw-**/bundles/*
1212
build-**/out/*
1313
build-**/src/*
1414

15-
**/src/base/**/html_ui/Pages/**/math.js
16-
**/src/systems/fmgc/src/flightplanning/DirectTo.ts
17-
**/src/systems/fmgc/src/flightplanning/FixNamingScheme.ts
18-
**/src/systems/fmgc/src/flightplanning/FlightPlanAsoboSync.ts
19-
**/src/systems/fmgc/src/flightplanning/FlightPlanManager.ts
20-
**/src/systems/fmgc/src/flightplanning/FlightPlanSegment.ts
21-
**/src/systems/fmgc/src/flightplanning/GeoMath.ts
22-
**/src/systems/fmgc/src/flightplanning/GPS.ts
23-
**/src/systems/fmgc/src/flightplanning/LegsProcedure.ts
24-
**/src/systems/fmgc/src/flightplanning/ManagedFlightPlan.ts
25-
**/src/systems/fmgc/src/flightplanning/ProcedureDetails.ts
26-
**/src/systems/fmgc/src/flightplanning/RawDataMapper.ts
27-
**/src/systems/fmgc/src/flightplanning/SegmentedFlightPlan.ts
28-
**/src/systems/fmgc/src/flightplanning/WorldMagneticModel.ts
29-
**/src/systems/fmgc/src/utils/LzUtf8.js
30-
**/src/systems/fmgc/src/flightplanning/new/test/*
15+
**/src/systems/fmgc/src/utils/LzUtf8.js

flybywire

Submodule flybywire updated 98 files

hdw-a339x-common/src/systems/instruments/src/NavigationDisplay.ts

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -120,52 +120,54 @@ export type VdSymbol = Omit<InternalFmsSymbol, 'radials' | 'radii'>;
120120
*
121121
* **NOTE:** this does not necessarily represent the current function of a transmitted flight plan. Those groups are sometimes used for other purposes than their name
122122
* refers to, for example the DASHED flight plan being used to transmit the non-offset path of an active flight plan with an offset applied.
123+
*
124+
* The value of each group is used to determine the drawing order. Low values are drawn first, high values last.
123125
*/
124126
export enum EfisVectorsGroup {
125127
/**
126128
* Solid green line
127129
*/
128-
ACTIVE,
130+
ACTIVE = 2,
129131

130132
/**
131133
* Dashed green line
132134
*/
133-
DASHED,
135+
DASHED = 3,
134136

135137
/**
136138
* Dashed green line
137139
*/
138-
OFFSET,
140+
OFFSET = 4,
139141

140142
/**
141143
* Dashed yellow line
142144
*/
143-
TEMPORARY,
145+
TEMPORARY = 5,
144146

145147
/**
146148
* Dimmed white line
147149
*/
148-
SECONDARY,
150+
SECONDARY = 0,
149151

150152
/**
151153
* Dashed dimmed white line
152154
*/
153-
SECONDARY_DASHED,
155+
SECONDARY_DASHED = 1,
154156

155157
/**
156158
* Solid cyan line
157159
*/
158-
MISSED,
160+
MISSED = 6,
159161

160162
/**
161163
* Dashed cyan line
162164
*/
163-
ALTERNATE,
165+
ALTERNATE = 7,
164166

165167
/**
166168
* Continuous yellow line
167169
*/
168-
ACTIVE_EOSID,
170+
ACTIVE_EOSID = 8,
169171
}
170172

171173
export interface NdTrafficData {

hdw-a339x-common/src/typings/fmgc.d.ts

Lines changed: 0 additions & 26 deletions
This file was deleted.

hdw-a339x-common/src/typings/types.d.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import {
44
SelectedNavaidType as SelectedNavaidType_,
55
SelectedNavaidMode as SelectedNavaidMode_,
66
A320FlightPlanPerformanceData as A320FlightPlanPerformanceData_,
7+
FlightPlanUtils as FlightPlanUtils_,
78
} from '../../../build-a339x/src/systems/fmgc/src';
89
import {
910
NavigationDatabase as Database,
@@ -13,8 +14,8 @@ import { FlightPlanIndex as Index } from '../../../build-a339x/src/systems/fmgc/
1314
import { FlightPhaseManager as FlightPhaseManager_ } from '../../../build-a339x/src/systems/fmgc/src';
1415
import { WaypointFactory as WaypointFactory_ } from '../../../build-a339x/src/systems/fmgc/src';
1516
import { WaypointEntryUtils as WaypointEntryUtils_ } from '../../../build-a339x/src/systems/fmgc/src';
17+
import { CoRouteUplinkAdapter as CoRouteUplinkAdapter_ } from "../../../build-a339x/src/systems/fmgc/src";
1618
import { SimBriefUplinkAdapter as SimBriefUplinkAdapter_ } from '../../../build-a339x/src/systems/fmgc/src';
17-
import { ApproachUtils as ApproachUtils_ } from '../../../build-a339x/src/systems/fmgc/src';
1819

1920
declare global {
2021
type NauticalMiles = number;
@@ -91,10 +92,14 @@ declare global {
9192

9293
const FlightPhaseManager: typeof FlightPhaseManager_;
9394

95+
const FlightPlanUtils: typeof FlightPlanUtils_
96+
9497
const WaypointFactory: typeof WaypointFactory_;
9598

9699
const WaypointEntryUtils: typeof WaypointEntryUtils_;
97100

101+
const CoRouteUplinkAdapter: typeof CoRouteUplinkAdapter_
102+
98103
const SimBriefUplinkAdapter: typeof SimBriefUplinkAdapter_;
99104
}
100105
}

hdw-a339x/docs/a330-simvars.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1997,10 +1997,6 @@ In the variables below, {number} should be replaced with one item in the set: {
19971997
- L
19981998
- R
19991999

2000-
- A32NX_FM_VNAV_TRIGGER_STEP_DELETED
2001-
- Bool
2002-
- Indicates whether to trigger a step deleted message on the MCDU
2003-
20042000
- `A32NX_FM{number}_BACKBEAM_SELECTED`
20052001
- Bool
20062002
- Indicates to the FG that a localiser back beam is tuned.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[*.{js,jsx,ts,tsx}]
2+
indent_size = 4
3+
tab_width = 4

hdw-a339x/src/systems/extras-host/modules/flightplan_sync/FlightPlanAsoboSync.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// @ts-strict-ignore
12
// Copyright (c) 2021-2023 FlyByWire Simulations
23
//
34
// SPDX-License-Identifier: GPL-3.0
@@ -206,7 +207,7 @@ export class FlightPlanAsoboSync {
206207
}
207208
}
208209

209-
await rpcClient.uplinkInsert();
210+
await rpcClient.uplinkInsert(FlightPlanIndex.Active);
210211
}
211212
} catch (e) {
212213
console.error('Error in loading FlightPlan from MSFS', e);

0 commit comments

Comments
 (0)