Skip to content

Commit

Permalink
feat(fbw): add flight controls system for the A380 (#7598)
Browse files Browse the repository at this point in the history
* First prototype

* feat(fbw): add A380 FBW WASM

* export aileron lvars

* disable in ground mode

* Added spoiler panels

* feat(efcs): add first version of PRIM

* feat(fbw): add PRIM client data

* fix(fbw): invert hyd switches, rename PRIM lvars

* feat(efcs): add prim bus and client data

* feat(efcs): add PRIM discrete output assignment

* feat(efcs): add initial master PRIM selection logic and output logic

* refactor(fbw): remove some no longer needed lvars

* fix(fbw): use PRIM bus struct for client data

* feat(ailerons): read FBW commands for all ailerons

* feat(hyd): add A380 Elevator system

* feat(hyd): A380 rudder system

* fix(hyd): invert rudder command

* fix(hyd): remove erroneous 100 factor from rudder

* added ailerons EHA actuators

* forcing EHA in elec mode when active

* feat(athr): add ATHR 4 engines compatability

* feat(efcs): more adjustments to PRIM, add data to PRIM bus

* feat(efcs): add control surface position input

* feat(efcs): add speedbrakes, adjust gnd splr logic

* fix(hyd): swap incorrect outward vs inward actuator position index

* feat(efcs): add initial aileron, elevator and THS servoing logic

* feat(efcs): add initial rudder servoing logic

* feat(efcs): add 3rd RA, assign correct RAs to PRIMs

* updated test profile

* temporarily comment flight controls tests

* outward aileron panels tests

* more outward panel tests

* Update mod.rs

* fix eha power supply

* add actuators debug info

* finished aileron panels tests

* Update mod.rs

* spoilers ebha

* added spoilers

* feat(hyd): add elevator EHAs

* fix(efcs): don't negate spoiler EBHA enable

* feat(hyd): add rudder EBHAs

* feat(hyd): use correct max deflections for elevator and ailerons

* fix(efcs): remove no longer need 1/3 factor of lateral normal law, add IRDC bus input provision to PRIM

* fix rudder pressure source

* Update ailerons.rs

* removed unused spoiler vars

* fix(efcs): move look2_pbin after merge

* rudder actuator to real specs

* elevator travel

* elevator flow and force data to 20 tons max load

* elevator surfaces updated

* fixed rudder flow

* Update mod.rs

* chore(hyd): add rudder actuator description, improve elevator description

* fuck

* yooo

* compiles except tests

* revert to o1

* ingame tuning

* Update linear_actuator.rs

* Update linear_actuator.rs

* Update linear_actuator.rs

* Update linear_actuator.rs

* Update linear_actuator.rs

* feat(efcs): add control surface status/pos computation

* aileron/spoilers tuning

* flow reduction for 380 actuators

* faster core hyds simpler hyd solve loop

* accumulator params now generic

* more edp punch

* test margin

* update edps

* Update linear_actuator.rs

removed console output

* clippy

* refactor(fbw): rename x_fbw to fbw_x to better group folders

* refactor(fbw): move common files to own folder

* refactor(fbw): update include paths for common folder

* refactor(fbw): change fadec inih include path to common dir

* fix(fbw): use correct watch paths for igniter

* fix(fbw): make a320 and a380 build.sh executable

* fix(fdr2csv): update paths to changed directories

* fix(fbw): remove unneeded change of include paths

Co-authored-by: davydecorps <[email protected]>
  • Loading branch information
lukecologne and crocket63 authored Dec 17, 2022
1 parent 33ef173 commit 8b99292
Show file tree
Hide file tree
Showing 272 changed files with 47,886 additions and 1,491 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ node_modules
!igniter.config.mjs
.igniter
/src/fdr2csv/*.exe
/src/fbw/obj/
/src/fbw_a320/obj/
/src/fbw_a380/obj/
/src/fdr2csv/build/
/src/presets/obj/
/src/flypad-backend/obj/
Expand Down
8 changes: 3 additions & 5 deletions .vscode/c_cpp_properties.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,9 @@
"${MSFS_SDK}/WASM/include",
"${MSFS_SDK}/WASM/wasi-sysroot/include",
"${MSFS_SDK}/SimConnect SDK/include",
"${workspaceFolder}/src/fbw/src",
"${workspaceFolder}/src/fbw/src/inih",
"${workspaceFolder}/src/fbw/src/interface",
"${workspaceFolder}/src/fbw/src/model",
"${workspaceFolder}/src/fbw/src/zlib"
"${workspaceFolder}/src/fbw_common/src/**",
"${workspaceFolder}/src/fbw_a320/src/**",
"${workspaceFolder}/src/fbw_a380/src/**"
],
"defines": [
"_MSFS_WASM=1",
Expand Down
Loading

0 comments on commit 8b99292

Please sign in to comment.