Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(fms): flight planning version 2 #7692

Merged
merged 570 commits into from
Jun 14, 2024
Merged
Show file tree
Hide file tree
Changes from 223 commits
Commits
Show all changes
570 commits
Select commit Hold shift + click to select a range
4380fca
Remove `MagVar` class
BlueberryKing Feb 5, 2024
702cdc2
Fix no disco for waypoint insertion before destination
BlueberryKing Feb 5, 2024
61f5d09
Fix being able to clear PPOS
BlueberryKing Feb 5, 2024
548ad23
fix: cleanup docker images for more space
Saschl Feb 6, 2024
19722e6
Remove deleted import
BlueberryKing Feb 7, 2024
5a76afd
Merge branch 'fms-v2' of https://github.com/flybywiresim/aircraft int…
BlueberryKing Feb 7, 2024
e9d385d
Improve airway entry perf by filtering at db level
BlueberryKing Feb 8, 2024
20bb626
Fix typo in constraint parsing
BlueberryKing Feb 8, 2024
42a95f9
Port AIRPORT key functionality
BlueberryKing Feb 8, 2024
50e7eb4
Remove unnecessary navdata workaround
BlueberryKing Feb 9, 2024
2b14603
Remove accidental CSS changes
BlueberryKing Feb 9, 2024
8998ae4
Use 0 as default origin altitude
BlueberryKing Feb 9, 2024
6cf601d
Rename to more meaningful name
BlueberryKing Feb 9, 2024
b49986b
Only transmit fixinfos of active flightplan
BlueberryKing Feb 9, 2024
027e4c2
Treat "at" speed constraints as "atOrBelow"
BlueberryKing Feb 9, 2024
87e4de1
Fix inaccurate comments
BlueberryKing Feb 9, 2024
10b4fcf
Use more appropriate name
BlueberryKing Feb 9, 2024
3ba2cdd
Keep using `Avionics.Utils.bearingDistanceToCoordinates` for now
BlueberryKing Feb 9, 2024
de362de
Fix typo
BlueberryKing Feb 9, 2024
a046146
Remove unused code
BlueberryKing Feb 9, 2024
c676717
Fix DIR to waypoint bug
BlueberryKing Feb 10, 2024
6040424
Move DIR to logic out of page rendering code
BlueberryKing Feb 10, 2024
1946eea
Remove debugging code
BlueberryKing Feb 10, 2024
263ec39
Fix AIRPORT button
BlueberryKing Feb 10, 2024
55c5a97
Fix VNAV not resetting after landing
BlueberryKing Feb 10, 2024
62c0cf0
Port forced turn indications
BlueberryKing Feb 10, 2024
ec845c5
Fix turn area exceedance message logic
BlueberryKing Feb 10, 2024
4914c12
Fix toggle overfly function in non active flightplan
BlueberryKing Feb 10, 2024
cb54571
Keep database format for altitude constraints
BlueberryKing Feb 11, 2024
8602787
Remove unnecessary speed constraint abstraction layer
BlueberryKing Feb 11, 2024
683da10
Remove unused constraint properties on TF leg
BlueberryKing Feb 11, 2024
1270e3b
Remove unclear comment
BlueberryKing Feb 11, 2024
107c60c
Filter out approach to missing runways
BlueberryKing Feb 11, 2024
6e9557e
Change to simpler FROM/TO deletion stopgap logic
BlueberryKing Feb 11, 2024
4240eea
Keep upstream leg when stringing arrival to upstream
BlueberryKing Feb 12, 2024
c874b44
Fix typo in FROM/TO validation
BlueberryKing Feb 12, 2024
420431d
Fix ILS frequency display after first arrival selection
BlueberryKing Feb 12, 2024
ccb91d0
Allow selection of arrival without runway
BlueberryKing Feb 12, 2024
85106e4
String XI to XF
BlueberryKing Feb 12, 2024
5882ca7
Remove XI if leg added after it
BlueberryKing Feb 12, 2024
80ab251
Fix typecheck
BlueberryKing Feb 12, 2024
b36bcb8
Fix airport/runway altitude shown in flight plan
BlueberryKing Feb 13, 2024
84c1622
Merge branch 'master' into fms-v2
BlueberryKing Feb 14, 2024
56fc126
Delete alternate flight plan after NEW DEST
BlueberryKing Feb 16, 2024
ad3ee14
Ensure DIR to leg is not in missed approach
BlueberryKing Feb 16, 2024
4f8b1a1
Use TF leg after truncating duplicate waypoint
BlueberryKing Feb 16, 2024
f412c8a
Merge remote-tracking branch 'upstream/master' into fms-v2
BlueberryKing Feb 17, 2024
5cd9d0c
Fix performance data rounding
BlueberryKing Feb 17, 2024
99c60bb
Only change out of GA phase with new destination
BlueberryKing Feb 17, 2024
6e8214b
Make approach transition names unique
BlueberryKing Feb 18, 2024
e0c25c8
Merge remote-tracking branch 'upstream/master' into fms-v2
BlueberryKing Feb 18, 2024
87483c7
fix: clock build
Saschl Feb 18, 2024
bcc1ffd
fix: weather request manual entry
Saschl Feb 19, 2024
038c58d
Ignore null legs in distance calculation
BlueberryKing Feb 22, 2024
2483b07
Merge remote-tracking branch 'upstream/master' into fms-v2
BlueberryKing Feb 22, 2024
0ad6151
Identify procedures by id over ident
BlueberryKing Feb 22, 2024
f42e80c
fix: clock build pt 2
Saschl Feb 22, 2024
87a40b4
Merge branch 'fms-v2' of https://github.com/flybywiresim/aircraft int…
BlueberryKing Feb 23, 2024
8bf9a2c
Merge remote-tracking branch 'upstream/master' into fms-v2
BlueberryKing Feb 23, 2024
d80da7c
Adjust flypad imports
BlueberryKing Feb 24, 2024
a058620
Merge remote-tracking branch 'upstream/master' into fms-v2
BlueberryKing Feb 24, 2024
ac12e93
sync and serialization fixes
Benjozork Feb 25, 2024
3bc75e4
fix: efb build
Saschl Feb 25, 2024
5c9d8dd
Fix first departure leg runway check
BlueberryKing Feb 26, 2024
ddfe067
Fix linting issues
BlueberryKing Feb 26, 2024
2256fab
Don't override runway idents
BlueberryKing Feb 27, 2024
6c7f1e2
Fix leftover procedure identification inconsistencies
BlueberryKing Feb 29, 2024
e33356e
Export `getAlongTrackDistanceTo`
BlueberryKing Feb 29, 2024
6177948
Merge remote-tracking branch 'upstream/master' into fms-v2
BlueberryKing Feb 29, 2024
69da905
Merge remote-tracking branch 'upstream/master' into fms-v2
BlueberryKing Mar 4, 2024
c7a5da4
Fix some more linting issues
BlueberryKing Mar 4, 2024
b0302ed
Port basic atsu flightplan synchronisation code
BlueberryKing Mar 4, 2024
a3769df
Merge branch 'master' into fms-v2
aguther Mar 7, 2024
8ae0d0e
Fix lint even harder
BlueberryKing Mar 7, 2024
a642b2f
Fix departure page layout
BlueberryKing Mar 8, 2024
de10dce
Fix alternate destination being copied to active
BlueberryKing Mar 9, 2024
d949208
Do not try to string MANUAL legs
BlueberryKing Mar 9, 2024
3677241
Merge remote-tracking branch 'upstream/master' into fms-v2
BlueberryKing Mar 9, 2024
5caf2b6
Fix single waypoint SID imports again
BlueberryKing Mar 10, 2024
9c80196
Merge remote-tracking branch 'upstream/master' into fms-v2
BlueberryKing Mar 11, 2024
20c9d31
Merge branch 'master' into fms-v2
aguther Mar 17, 2024
5683499
feat: fms-v2 msfs sync (#8508)
Saschl Mar 18, 2024
3612c22
fix: approach mapping, off by one error and runway selection
Saschl Mar 20, 2024
17f190b
remove flightPlanTest
Saschl Mar 20, 2024
c0cadfa
fix: typing errors
Saschl Mar 20, 2024
bbfa446
fix: destination runways without secondary designator
Saschl Mar 20, 2024
985f247
fix: lint
Saschl Mar 20, 2024
981209b
fix(sync): use sensible defaults if mapping fails
Saschl Mar 20, 2024
e9fbdd1
fix: init issue after fixing other init issue
Saschl Mar 20, 2024
e366799
Fix wrong FD leg ident
BlueberryKing Mar 22, 2024
48ffe17
Improve arrival and departure pages
BlueberryKing Mar 22, 2024
4221c75
Handle explicit NO SID, NO STAR, etc. selection
BlueberryKing Mar 22, 2024
7947117
Refactor MPR selection
BlueberryKing Mar 22, 2024
65339fe
Merge remote-tracking branch 'upstream/master' into fms-v2
BlueberryKing Mar 22, 2024
a833eff
Merge branch 'fms-v2' of https://github.com/flybywiresim/aircraft int…
BlueberryKing Mar 22, 2024
803deb3
Fix missing disco after leg deletion in alternate
BlueberryKing Mar 22, 2024
1123df5
Remove arrival procedures after changing alternate
BlueberryKing Mar 22, 2024
5217910
Dump entire alternate plan when changing altn dest
BlueberryKing Mar 23, 2024
5aef002
feat: load MSFS flightplan in "SAVE" mode too
Saschl Mar 23, 2024
5c0c395
Remove commented code
BlueberryKing Mar 23, 2024
b06c814
Merge branch 'fms-v2' of https://github.com/flybywiresim/aircraft int…
BlueberryKing Mar 23, 2024
fe481af
Remove FacilityCache console logging
BlueberryKing Mar 23, 2024
efe2b80
Highlight entire row for selected approach
BlueberryKing Mar 23, 2024
f4c88d4
Allow repeated constraints in F-PLN page
BlueberryKing Mar 23, 2024
fa049ce
Remove duplicate code
BlueberryKing Mar 24, 2024
b94ea8d
Fix deletion of leg after CI at segment boundary
BlueberryKing Mar 24, 2024
eda1abe
Implement basic support for XI IF XF leg combination
BlueberryKing Mar 24, 2024
e89dcdc
Disable SEC fpln functionality for now
BlueberryKing Mar 24, 2024
3877dea
Disable fms-v2 tests until they are fixed
BlueberryKing Mar 24, 2024
08ce72d
improve error handling and runway designatorChars
Saschl Mar 24, 2024
f4c05d2
make loading and saving more resilient
Saschl Mar 25, 2024
458a304
Disable inoperative buttons
BlueberryKing Mar 25, 2024
6d5e164
Remove debugger statement
BlueberryKing Mar 25, 2024
1f30c2f
Fix WAYPOINT page entry
BlueberryKing Mar 25, 2024
f4b29ed
Fix missing error message after waypoint insertion
BlueberryKing Mar 25, 2024
053bb8d
fix: potential bogus comparison
Saschl Mar 26, 2024
7bcf973
Rebuild arrival after setting all alternate procedures
BlueberryKing Mar 26, 2024
465795f
Handle missing geometry leg again
BlueberryKing Mar 27, 2024
e61e69b
Reset managed speed constraint after GA
BlueberryKing Mar 27, 2024
c6f4283
Merge remote-tracking branch 'upstream/master' into fms-v2
BlueberryKing Mar 31, 2024
093e635
Increase VM leg size
BlueberryKing Apr 1, 2024
123b8d5
Make MRP side dependent
BlueberryKing Apr 1, 2024
0a98fa1
Remove dead code
BlueberryKing Apr 1, 2024
bb6517d
Fix AIRPORT button getting stuck
BlueberryKing Apr 1, 2024
6f946a8
Fix references to dead functions
BlueberryKing Apr 1, 2024
0ab07be
Merge remote-tracking branch 'upstream/master' into fms-v2
BlueberryKing Apr 1, 2024
bd91f97
Merge remote-tracking branch 'upstream/master' into fms-v2
BlueberryKing Apr 2, 2024
00d070d
Fix typo
BlueberryKing Apr 2, 2024
f68bf26
Remove TODO for clarity
BlueberryKing Apr 2, 2024
ac51467
Sync cruise step deletion
BlueberryKing Apr 2, 2024
56265ab
Re-add licence identifier
BlueberryKing Apr 2, 2024
dc12ff8
Move `WaypointConstraintType`
BlueberryKing Apr 2, 2024
d9878d6
fix: do not transmit empty vectors if not needed
Saschl Apr 2, 2024
5dc361d
Encode MRP in ARINC429
BlueberryKing Apr 5, 2024
71cd446
Merge remote-tracking branch 'upstream/master' into fms-v2
BlueberryKing Apr 5, 2024
5e3be0f
Update comment
BlueberryKing Apr 6, 2024
0e1dab7
Remove unused arguments
BlueberryKing Apr 6, 2024
1519ca3
Fix wrong TO waypoint for runways
BlueberryKing Apr 6, 2024
676a3bb
Fix EFB build again
BlueberryKing Apr 7, 2024
0415b78
fix: efb ts config
2hwk Apr 7, 2024
ce17f8d
Merge branch 'master' into fms-v2
2hwk Apr 8, 2024
75bda12
fix: revert optimization until better solution found
Saschl Apr 8, 2024
e630f51
fix: new allocation optimisation for efis vector sync
2hwk Apr 8, 2024
57813f6
refactor: undefined -> null
2hwk Apr 8, 2024
1f38dc2
Add null check
BlueberryKing Apr 8, 2024
9dfce4c
Remove JS FMCDataManager
BlueberryKing Apr 8, 2024
912c66b
fix: hotfix for departure page issue with selecting new dep runway
2hwk Apr 9, 2024
a2f37ea
fix: only set atc crz flight level when defined, remove console logs
Saschl Apr 9, 2024
83083f4
Change runway ident format
BlueberryKing Apr 9, 2024
39c7f36
Merge branch 'fms-v2' of https://github.com/flybywiresim/aircraft int…
BlueberryKing Apr 9, 2024
5f29b35
fix: fpln sync after recent changes
Saschl Apr 9, 2024
ea0f79c
Remove SID when changing runway
BlueberryKing Apr 10, 2024
65a848b
Remove arrival when changing approach
BlueberryKing Apr 10, 2024
6d4814d
fix: text alignment for constraints (font still needs work)
2hwk Apr 12, 2024
f73824f
ci: Rename workflows from 'PR' to more descriptive names (#8614)
alepouna Apr 8, 2024
57e9a4f
feat(flight_model): Add drag from landing lights (#8554)
crocket63 Apr 9, 2024
203ff6d
refactor: Fadec rewrite using Cpp framework (#8547)
frankkopp Apr 11, 2024
7bc0448
fix(fadec): flex temp unit conversion (#8617)
Saschl Apr 11, 2024
fd04390
Show NOT ALLOWED upon procedure reselection
BlueberryKing Apr 12, 2024
bdf8be2
Merge legs after certain disco deletions
BlueberryKing Apr 12, 2024
ed220a1
Fix circling approach not showing up
BlueberryKing Apr 12, 2024
0d1041d
fix: Fixed bug in checklist to not display previous checklists as com…
frankkopp Apr 11, 2024
91e2e0e
Fix ND not updating after TMPY deletion
BlueberryKing Apr 13, 2024
d4f99f2
Merge remote-tracking branch 'upstream/master' into fms-v2
BlueberryKing Apr 13, 2024
c2dd86e
Fix disco deletion
BlueberryKing Apr 13, 2024
e8351e0
Show NOT ALLOWED upon procedure reselection
BlueberryKing Apr 12, 2024
89293b8
Merge legs after certain disco deletions
BlueberryKing Apr 12, 2024
d57cbb8
Fix circling approach not showing up
BlueberryKing Apr 12, 2024
6fb38bc
Fix ND not updating after TMPY deletion
BlueberryKing Apr 13, 2024
7fbe4c8
Fix disco deletion
BlueberryKing Apr 13, 2024
c3efdd0
fix: don't throw null true bearing when parsing discont
2hwk Apr 14, 2024
e32577e
fix: check for null vs truthiness
2hwk Apr 14, 2024
8e42ab0
Merge branch 'fms-v2' of https://github.com/flybywiresim/aircraft int…
BlueberryKing Apr 14, 2024
56ad887
fix: use strict !==
2hwk Apr 14, 2024
7157cf2
Merge branch 'fms-v2' of https://github.com/flybywiresim/aircraft int…
BlueberryKing Apr 14, 2024
3b091b5
Fix FREQ not shown after deduplicating airway fixes
BlueberryKing Apr 14, 2024
6934d42
Port tropopause uplink
BlueberryKing Apr 14, 2024
fa18ae1
Show NOT ALLOWED when attempting to clr ZFW/ZFWCG
BlueberryKing Apr 14, 2024
fef527e
Remove unused import
BlueberryKing Apr 14, 2024
ed18556
HIde circling approaches
BlueberryKing Apr 16, 2024
26c6788
Show CLB or DES prompt when necessary
BlueberryKing Apr 16, 2024
f6a8905
Show NO TRANS when explicitly selected
BlueberryKing Apr 16, 2024
9b45d77
Show ENTRY for pilot constructed points on PROG page
BlueberryKing Apr 16, 2024
fd6bdaf
Filter STARs when only runway selected
BlueberryKing Apr 17, 2024
f89abf0
Revert "Show NO TRANS when explicitly selected"
BlueberryKing Apr 17, 2024
9e8c368
Fix NO SID, NO STAR selection not working
BlueberryKing Apr 18, 2024
b308e77
Improve automatic NONE selection
BlueberryKing Apr 18, 2024
c0fc48d
Improve automatic NONE trans selection
BlueberryKing Apr 18, 2024
5e7cb17
Handle missing airways during uplink
BlueberryKing Apr 20, 2024
76e2435
Merge remote-tracking branch 'upstream/master' into fms-v2
BlueberryKing Apr 20, 2024
d09f7a1
feat(fms): fm legs
tracernz Apr 22, 2024
0e70176
fix(fms): to wpt details for fm leg
tracernz Apr 22, 2024
8659650
Fix trans lvl being reset when changing runway
BlueberryKing Apr 22, 2024
a95a6bd
Fix runway formatting on PERF page
BlueberryKing Apr 22, 2024
e2762e1
feat(utils): add angle normalise functions
tracernz Apr 23, 2024
4c25e19
fix(fms): fix vor station declination
tracernz Apr 23, 2024
47a32a8
fix: handle "at or below" constraint
Saschl Apr 25, 2024
b3502a9
Merge branch 'master' into fms-v2
BlueberryKing Apr 25, 2024
8704ace
chore: update fms-v2 workflow
Saschl Apr 25, 2024
2fb16d5
Merge remote-tracking branch 'fbw/master' into fms-v2
Saschl Apr 25, 2024
357854d
fix: 380 fadec build
Saschl Apr 25, 2024
3157ad7
fix(fms): cf leg interpretation
tracernz Apr 27, 2024
2f5dae9
fix(fms): idf sids => also sids starting with cf leg
tracernz Apr 27, 2024
571401a
feat(fms): fa leg v0.0.1
tracernz Apr 27, 2024
80781a4
Merge branch 'refs/heads/master' into fms-v2
Benjozork Apr 27, 2024
f44dae8
fix: eslint ref
Benjozork Apr 27, 2024
715d22a
style: run lint after merge
Benjozork Apr 27, 2024
e7bf4b2
chore: fix lint
Benjozork Apr 27, 2024
a3c167b
chore: fix lint
Benjozork Apr 27, 2024
39634ee
Treat missed approach legs as climb constraints
BlueberryKing Apr 27, 2024
8aee5c4
Fix missed approach track not being shown
BlueberryKing Apr 28, 2024
8922551
Merge branch 'fms-v2' of https://github.com/flybywiresim/aircraft int…
BlueberryKing Apr 28, 2024
bdd35b8
Allow SID without runway
BlueberryKing Apr 28, 2024
e357ffc
fix(fms): navaid selection fallback
tracernz Apr 29, 2024
3224a52
Fix missed approach path going dashed on landing
BlueberryKing Apr 30, 2024
3a6379c
Allow leg insertion at flight plan end
BlueberryKing Apr 30, 2024
c3ec4cc
Fix FM leg distance computation
BlueberryKing Apr 30, 2024
072a0bc
Prevent leg insertion after MANUAL
BlueberryKing May 1, 2024
f5d58b9
Fix distance to destination on XM leg
BlueberryKing May 2, 2024
e0f0625
Improve uplink error handling
BlueberryKing May 5, 2024
aaf6eba
Show ILS frequency for runway with LOC approach
BlueberryKing May 5, 2024
cd29045
Always show solid flight plan line in preflight phase
BlueberryKing May 5, 2024
ba82921
Fix cruise step deletion
BlueberryKing May 5, 2024
09b9c3b
Don't show EFIS approach message for runway-only
BlueberryKing May 5, 2024
b35b6f4
Keep holds when stringing
BlueberryKing May 6, 2024
9dba379
Fix crash when changing departure runway
BlueberryKing May 8, 2024
7c5cdbf
Do not send constraints to PFD in GA phase
BlueberryKing May 11, 2024
8a83cfd
Check for active plan on active leg symbol
BlueberryKing May 11, 2024
79f2d42
Delete constraint until MAP when going around
BlueberryKing May 12, 2024
63d1b51
Mark AF as computed after computation
BlueberryKing May 12, 2024
740e2db
Fix turn direction indicator in alternate plan
BlueberryKing May 19, 2024
17af616
Merge remote-tracking branch 'upstream/master' into fms-v2
BlueberryKing May 20, 2024
3ab2585
Fix PROG page crash when entering from/to after takeoff
BlueberryKing May 20, 2024
4084876
Don't show ENTER DEST DATA without from/to
BlueberryKing May 20, 2024
a52df47
fix: costindex -> cruiseFlightLevel
Saschl May 22, 2024
098e600
fix(fms): nav db info
tracernz May 26, 2024
7fce7e6
Fix sequencing of overshot legs
BlueberryKing Jun 2, 2024
3aa5d38
Replace `GetAirportByIdent` calls
BlueberryKing Jun 2, 2024
bec6257
Merge branch 'master' into fms-v2
Saschl Jun 4, 2024
c4da6d4
Fix missed approach display logic in non PLAN mode
BlueberryKing Jun 7, 2024
f58ee40
Fix DIR TO waypoint in hold
BlueberryKing Jun 7, 2024
cb0a14b
Treat HX legs equally
BlueberryKing Jun 8, 2024
471769e
Fix premature deceleration to hold speed
BlueberryKing Jun 9, 2024
0341c50
Fix crash with bad navdata
BlueberryKing Jun 9, 2024
def0484
Merge remote-tracking branch 'fbw/master' into fms-v2
Saschl Jun 9, 2024
31a4112
fix: mark FA leg as computed
Saschl Jun 9, 2024
6333d25
Improve arrival selection error handling
BlueberryKing Jun 10, 2024
b93989c
Delete TMPY on error during procedure selection
BlueberryKing Jun 11, 2024
644f5c2
Handle missing alternate during uplink gracefully
BlueberryKing Jun 11, 2024
a9a5cdb
Merge branch 'master' into fms-v2
Saschl Jun 14, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ fbw-a32nx/src/systems/fmgc/src/flightplanning/ManagedFlightPlan.ts
fbw-a32nx/src/systems/fmgc/src/flightplanning/ProcedureDetails.ts
fbw-a32nx/src/systems/fmgc/src/flightplanning/RawDataMapper.ts
fbw-a32nx/src/systems/fmgc/src/flightplanning/SegmentedFlightPlan.ts
fbw-a32nx/src/systems/fmgc/src/flightplanning/WaypointBuilder.ts
fbw-a32nx/src/systems/fmgc/src/flightplanning/WorldMagneticModel.ts
fbw-a32nx/src/systems/fmgc/src/utils/LzUtf8.js
target/*
Expand Down
44 changes: 44 additions & 0 deletions .github/workflows/fms-v2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: fms-v2
on:
push:
branches:
- fms-v2

jobs:
build:
# Prevent running this on forks
if: github.repository_owner == 'flybywiresim'
runs-on: ubuntu-latest
env:
A32NX_PRODUCTION_BUILD: 1
A32NX_INSTRUMENTS_BUILD_WORKERS: 2
BUILD_DIR_NAME: fms-v2
steps:
- name: Checkout source
uses: actions/checkout@v2
- name: Set BUILT_DATE_TIME
run: echo "BUILT_DATE_TIME=$(date -u -Iseconds)" >> $GITHUB_ENV
- name: Create .env file
run: |
echo A32NX_PRODUCTION_BUILD=1 >> .env
echo CLIENT_ID=${{ secrets.NAVIGRAPH_CLIENT_ID }} >> .env
echo CLIENT_SECRET=${{ secrets.NAVIGRAPH_CLIENT_SECRET }} >> .env
echo CHARTFOX_SECRET=${{ secrets.CHARTFOX_SECRET }} >> .env
echo SENTRY_DSN=${{ secrets.SENTRY_DSN }} >> .env
echo BUILD_DIR_NAME=${{ env.BUILD_DIR_NAME }} >> .env
echo LOCALAZY_READ_KEY=${{ secrets.LOCALAZY_READ_KEY }} >> .env
- name: Build A32NX
run: |
./scripts/dev-env/run.sh ./scripts/setup.sh
./scripts/dev-env/run.sh ./scripts/build_a32nx.sh --no-tty -j 4
rm -rf fbw-a32nx/src
- name: Build ZIP files
run: |
df -h
./scripts/dev-env/run.sh node ./scripts/fragment_a32nx.js
- name: Upload to CloudFlare CDN
env:
CLOUDFLARE_BUCKET_PASSWORD: ${{ secrets.CLOUDFLARE_BUCKET_PASSWORD }}
CDN_BUCKET_DESTINATION: addons/a32nx/fms-v2
run: |
./scripts/cf-cdn.sh $CDN_BUCKET_DESTINATION ./fbw-a32nx/out/build-modules
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (c) 2021-2023 FlyByWire Simulations
//
// SPDX-License-Identifier: GPL-3.0

const A32NX_Util = {};

let nxNotificationsListener;
Expand Down Expand Up @@ -171,17 +175,17 @@ A32NX_Util.getIsaTempDeviation = (alt = Simplane.getAltitude(), sat = Simplane.g

/**
* Get the magvar to use for radials from a wp.
* @param {WayPoint} wp The waypoint.
* @param {VhfNavaid} facility The waypoint.
*/
A32NX_Util.getRadialMagVar = (wp) => {
if (wp.infos.icao.charAt(0) === "V") {
if (wp.infos.magneticVariation !== undefined) {
return 360 - wp.infos.magneticVariation;
}
}

return Facilities.getMagVar(wp.infos.coordinates.lat, wp.infos.coordinates.long);
}
A32NX_Util.getRadialMagVar = (facility) => {
if (facility.subSectionCode === 0 /* VhfNavaid */) {
if (facility.stationDeclination !== undefined) {
return 360 - facility.stationDeclination;
BlueberryKing marked this conversation as resolved.
Show resolved Hide resolved
}
}

return Facilities.getMagVar(facility.location.lat, facility.location.long);
};

/**
* Utility class to throttle instrument updates
Expand Down
Loading
Loading