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

Flypad weight balance #5

Open
wants to merge 39 commits into
base: Payload-API
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
db6cb81
build: update flyPadOS 3 localization (#7620)
github-actions[bot] Dec 27, 2022
18f7db2
feat(hyd): Simple hydraulic temperature simulation (#7573)
crocket63 Dec 27, 2022
dae7341
fix: Fixed additional issues which prevented ACE to work (#7668)
frankkopp Dec 28, 2022
248fe73
feat(hyd): changed gear lever mechanism / added gear door drag (#7390)
crocket63 Dec 29, 2022
07f20ce
feat(rmp): RMP navigation tuning (#7241)
juliansebline Dec 29, 2022
0673106
feat(sec): ground spoiler logic improvements (#7653)
lukecologne Dec 29, 2022
79afede
feat(hyd): faster core hydraulics solver (#7635)
crocket63 Dec 30, 2022
b0f9c7b
fix: Improve import flight plan from MSFS World Map (#7646)
frankkopp Dec 31, 2022
592f561
ci: upload to cloudflare in master and stable pipelines (#7680)
Benjozork Dec 31, 2022
ca06c90
fix: cf-cdn.sh permissions (#7681)
Benjozork Dec 31, 2022
2b2721a
feat(efb): Add estimated boarding time (#7583)
ChristianLutzCL Jan 2, 2023
07674ec
fix: Update to all language files to fix github action for language u…
frankkopp Jan 4, 2023
81a8ee3
fix(efb): landing calculator widget runway shows correct runway headi…
2hwk Jan 7, 2023
5140532
fix: Fixed sound, cones and chocks which depend on LIGHT BEACON (ON))…
frankkopp Jan 9, 2023
010bd3e
refactor: port SD to full react-based instrument (#7345)
Saschl Jan 10, 2023
82f9ad7
feat: polar heading/track part 1 (#7633)
tracernz Jan 11, 2023
26f09d7
fix: Update landing gear drag (#7660)
donstim Jan 11, 2023
48e77b2
fix: enable parking brake so aircraft won't move during pre flight ci…
Saschl Jan 11, 2023
1e1c416
fix: Move cg further aft (#7691)
donstim Jan 11, 2023
bafb78c
feat(atsu): Coupled atsu and DATALINK STATUS page (#7656)
StenAfMARS Jan 11, 2023
233ba9b
feat: flexible engines mounting (#7676)
crocket63 Jan 13, 2023
f7c81e9
refactor: use custom hook instead of breaking rules of hooks
2hwk Jan 13, 2023
6b30582
Revert "refactor: use custom hook instead of breaking rules of hooks"
2hwk Jan 13, 2023
444a8ec
feat(efb): wip payload v2 - working efb broken a32nx_boarding
2hwk Jan 13, 2023
64bf512
feat(boarding): mix emptying and loading seats
2hwk Jan 13, 2023
d90a177
meta: changelog and simvars documentation
2hwk Jan 13, 2023
0199278
refactor: first attempt at refactoring wasm to remove total_rows LVars
2hwk Jan 13, 2023
bbd5ba5
fix: efb cargo fix, c++ bitwise fix, a32nx_boarding.js init fixes
2hwk Jan 13, 2023
a1d5a6c
chore: removed cout console log
2hwk Jan 13, 2023
f87cfd5
meta: comments
2hwk Jan 13, 2023
e0b16bd
fix(efb): simbrief load not working on first attempt
2hwk Jan 13, 2023
9a26829
meta: fix lint
2hwk Jan 13, 2023
2397165
fix: remove comments
2hwk Jan 13, 2023
03fa266
fix: lint
2hwk Jan 13, 2023
c6f6d40
fix: rust test lint
2hwk Jan 13, 2023
8b19239
fix: rust tests and wrong name
2hwk Jan 13, 2023
dc248a4
fix(hyd): improve lgciu state machine (#7685)
crocket63 Jan 13, 2023
dc81f48
feat: Add aircraft version check and user message when using old vers…
frankkopp Jan 14, 2023
d010594
refactor: refer to loadsheet json for pax and cargo station simvars/b…
2hwk Jan 13, 2023
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
14 changes: 14 additions & 0 deletions .github/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,24 @@
1. [ADIRU] Implemented wind speed computation from TAS/GS/HDG - @tracernz (Mike)
1. [FMGC] Show proper transition names and final approach slope from AAU1 - @tracernz (Mike)
1. [FMGC] Don't accept blank input or / for hold distance - @tracernz (Mike)
1. [HYD] Faster core hydraulics solver - @Crocket63 (crocket)
1. [ATSU] Fix LSK6L not returning to ATSU DATALINK page in ATC MENU - @BravoMike99 (Bruno_pt99#5802)
1. [HYD] Trimmable physical assemblies - @Crocket63 (crocket)
1. [HYD] Simulation of the rudder mechanical assembly and yaw dampers - @Crocket63 (crocket)
1. [HYD] Simple temperature simulation - @Crocket63 (crocket)
1. [FLIGHTMODEL] Reduced flap induced drag - @donstim (donbikes#4084)
1. [EFB] Fix and improve pushback system and add API documentation - @frankkopp (Frank Kopp)
1. [RMP] RMPs navigation backup - Julian Sebline (Julian Sebline#8476 on Discord)
1. [SEC] Fix GND SPLR logic, add missing GND SPLR partial extension condition - @lukecologne (luke)
1. [FMGC] Improved importing flight plans from MSFS World Map - @frankkopp (Frank Kopp)
1. [EFB] Added boarding time indication to Payload page - @ChristianLutzCL (Christian Lutz) @frankkopp (Frank Kopp)
1. [EFB] Show correct runway numbers in landing calculator's runway widget when heading is between 0-5 degrees - @2hwk (2Cas#1022)
1. [ADIRU/ND/PFD] Initial support for polar navigation - @tracernz (Mike)
1. [FLIGHTMODEL] Update gear drag - @donstim (donbikes#4084)
1. [FLIGHT MODEL/EFB] Modified empty weight cg and loading station/fuel tank locations - @donstim (donbikes#4084)
1. [HYD] Fix gear sequence starting when failing prox sensor - @Crocket63 (crocket)
1. [MISC] Added aircraft version check and uer notification - @frankkopp (Frank Kopp)
1. [EFB] Allow payload page passenger seating to be manipulated by external apps & WASM via LocalVars - @2hwk (2Cas#1022)

## 0.9.0

Expand Down Expand Up @@ -70,6 +83,7 @@
1. [FMGC] Fix inbound leg time for holds - @tracernz (Mike)
1. [MCDU] Improved visuals of Init-A and Init-B page - @derl30n (Leon)
1. [MODEL] Added new animated gear gravity extension handle- @tyler58546 (tyler58546), @MoreRightRudder (Mike), @Crocket63 (crocket), @Lantarius
1. [HYD] Custom Lvar for gear lever to fix ground collision bug - @Crocket63 (crocket)
1. [HYD] Randomised per actuator flow restrictions at plane init - @Crocket63 (crocket)
1. [MCDU] Hide stored elements on A/C Status when there are none - @tracernz (Mike)
1. [FMGC] Fix ident for CD legs - @tracernz (Mike)
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,12 @@ jobs:
run: |
./scripts/cdn.sh $BUNNY_BUCKET_DESTINATION ./build-modules
./scripts/cdn.sh $BUNNY_BUCKET_DESTINATION ./${{ env.BUILD_DIR_NAME }}
- name: Upload to CloudFlare CDN
env:
CLOUDFLARE_BUCKET_PASSWORD: ${{ secrets.CLOUDFLARE_BUCKET_PASSWORD }}
CDN_BUCKET_DESTINATION: addons/a32nx/master
run: |
./scripts/cf-cdn.sh $CDN_BUCKET_DESTINATION ./build-modules
- name: Delete old GitHub Pre-Release assets
uses: mknejp/delete-release-assets@v1
with:
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,12 @@ jobs:
run: |
./scripts/cdn.sh $BUNNY_BUCKET_DESTINATION ./build-modules
./scripts/cdn.sh $BUNNY_BUCKET_DESTINATION ./${{ env.BUILD_DIR_NAME }}
- name: Upload to CloudFlare CDN
env:
CLOUDFLARE_BUCKET_PASSWORD: ${{ secrets.CLOUDFLARE_BUCKET_PASSWORD }}
CDN_BUCKET_DESTINATION: addons/a32nx/stable
run: |
./scripts/cf-cdn.sh $CDN_BUCKET_DESTINATION ./build-modules
- name: Delete old GitHub Pre-Release assets
uses: mknejp/delete-release-assets@v1
with:
Expand Down
12 changes: 12 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,18 @@
"y:/external/src/": "${workspaceFolder}/src/",
"z:/external/src/": "${workspaceFolder}/src/",
}
},
{
"name": "Rust Test Debugger",
"type": "cppvsdbg",
"request": "launch",
"program": "${workspaceFolder}/target/debug/",
"args": [],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [],
"externalConsole": true,
"preLaunchTask": "cargo test build",
}
]
}
13 changes: 13 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,19 @@
"kind": "build",
"isDefault": true
}
},
{
"label": "Build Rust Tests",
"type": "shell",
"command": "cargo test build",
"options": {
"cwd": "${workspaceFolder}"
},
"problemMatcher": [],
"group": {
"kind": "build",
"isDefault": false
}
}
]
}
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

157 changes: 137 additions & 20 deletions docs/a320-simvars.md
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,10 @@
- Number
- The current mode of the right radio management panel.

- A32NX_RMP_{L,R}_NAV_BUTTON_SELECTED
- Bool
- Whether the NAV push button on the corresponding RMP is pushed or not.

- A32NX_RMP_L_VHF2_STANDBY
- Hz
- The VHF 2 standby frequency for the left RMP.
Expand All @@ -408,6 +412,42 @@
- Hz
- The VHF 3 standby frequency for the right RMP.

- A32NX_RMP_{L,R}_SAVED_ACTIVE_FREQUENCY_VOR
- Hz
- The VOR active frequency that is saved for display for the left/right RMP.

- A32NX_RMP_{L,R}_SAVED_ACTIVE_FREQUENCY_ILS
- Hz
- The ILS active frequency that is saved for display for the left/right RMP.

- A32NX_RMP_{L,R}_SAVED_ACTIVE_FREQUENCY_ADF
- Hz
- The ADF active frequency that is saved for display for the left/right RMP.

- A32NX_RMP_{L,R}_SAVED_STANDBY_FREQUENCY_VOR
- Hz
- The VOR standby frequency that is saved for display for the left/right RMP.

- A32NX_RMP_{L,R}_SAVED_STANDBY_FREQUENCY_ILS
- Hz
- The ILS standby frequency that is saved for display for the left/right RMP.

- A32NX_RMP_{L,R}_SAVED_STANDBY_FREQUENCY_ADF
- Hz
- The ADF standby frequency that is saved for display for the left/right RMP.

- A32NX_RMP_{L,R}_SAVED_COURSE_VOR
- Number
- The VOR course tuned via the left/right RMP

- A32NX_RMP_{L,R}_SAVED_COURSE_ILS
- Number
- The ILS course tuned via the left/right RMP

- A32NX_RMP_ILS_TUNED
- Bool
- If the ILS is tuned via the RMP

- A32NX_TO_CONFIG_FLAPS_ENTERED
- Bool
- True if the pilot has entered a FLAPS value in the PERF TAKE OFF takeoff
Expand Down Expand Up @@ -809,6 +849,14 @@
- BLUE
- YELLOW

- A32NX_HYD_{loop_name}_RESERVOIR_OVHT
- Boolean
- Reservoir of {loop_name} hydraulic circuit is overheating
- {loop_name}
- GREEN
- BLUE
- YELLOW

- A32NX_HYD_{loop_name}_EDPUMP_ACTIVE
- Bool
- Engine driven pump of {loop_name} hydraulic circuit is active
Expand Down Expand Up @@ -888,6 +936,13 @@
- BLUE
- YELLOW

- A32NX_HYD_{loop_name}_EPUMP_OVHT
- Bool
- Electric pump of {loop_name} hydraulic circuit is overheating
- {loop_name}
- BLUE
- YELLOW

- A32NX_HYD_{loop_name}_PUMP_1_FIRE_VALVE_OPENED
- Bool
- Engine driven pump of {loop_name} hydraulic circuit can receive hydraulic fluid
Expand Down Expand Up @@ -1032,6 +1087,15 @@
GOAROUND | 6
DONE | 7

- A32NX_FMGC_RADIONAV_TUNING_MODE
- Enum
- Hold the FMGCs current tuning mode
Value | Meaning
--- | ---
0 | AUTO
1 | MANUAL
2 | REMOTE VIA RMPs

- A32NX_FLAPS_HANDLE_INDEX
- Number
- Indicates the physical flaps handle position
Expand Down Expand Up @@ -1336,23 +1400,28 @@
- 2
- 3

- A32NX_PAX_TOTAL_ROWS_{rows}
- Number
- Indicates the current number of pax in the selected rows
- {rows}
- 1_6
- 7_13
- 14_21
- 22_29
- A32NX_BOARDING_STARTED_BY_USR
- Bool
- Indicates current pax/cargo loading state

- A32NX_PAX_TOTAL_ROWS_{rows}_DESIRED
- Number
- Indicates the target number of pax in the selected rows
- A32NX_PAX_FLAGS_{station}
- Bitwise
- Indicates the current pax in the selected rows (max 53 bits)
- Read-Only!
- {station}
- A
- B
- C
- D

- A32NX_PAX_FLAGS_{station}_DESIRED
- Bitwise
- Indicates the target number of pax in the selected rows (max 53 bits)
- {rows}
- 1_6
- 7_13
- 14_21
- 22_29
- A
- B
- C
- D

- PAYLOAD STATION WEIGHT:{stationIndex}
- Number (Kilograms)
Expand Down Expand Up @@ -1432,6 +1501,7 @@ In the variables below, {number} should be replaced with one item in the set: {
- 0 is CAPT, 1 is NORM, 2 is F/O

- A32NX_ADIRS_ADIRU_{number}_STATE
- Deprecated: use A32NX_ADIRS_IR_{number}_MAINT_WORD instead.
- Enum
- The Inertial Reference alignment state.
Description | Value
Expand All @@ -1441,6 +1511,7 @@ In the variables below, {number} should be replaced with one item in the set: {
Aligned | 2

- A32NX_ADIRS_REMAINING_IR_ALIGNMENT_TIME
- Deprecated: use A32NX_ADIRS_IR_{number}_MAINT_WORD instead.
- Seconds
- The remaining alignment duration. Zero seconds when the system is aligned or the system is not aligning.

Expand Down Expand Up @@ -1494,15 +1565,15 @@ In the variables below, {number} should be replaced with one item in the set: {

- A32NX_ADIRS_IR_{number}_HEADING
- Arinc429Word<Degrees>
- The inertial heading of the aircraft.
- The magnetic heading of the aircraft (true in polar region).

- A32NX_ADIRS_IR_{number}_TRUE_HEADING
- Arinc429Word<Degrees>
- The true inertial heading of the aircraft.

- A32NX_ADIRS_IR_{number}_TRACK
- Arinc429Word<Degrees>
- The inertial track of the aircraft.
- The magnetic track of the aircraft (true in polar region).

- A32NX_ADIRS_IR_{number}_TRUE_TRACK
- Arinc429Word<Degrees>
Expand Down Expand Up @@ -1588,10 +1659,44 @@ In the variables below, {number} should be replaced with one item in the set: {
- Arinc429Word<Degrees per second>
- The roll rate (φ^dot) of the aircraft

- A32NX_ADIRS_IR_{number}_MAINT_WORD
- Arinc429Word<flags>
- Indicates state of the IR
Bit | Meaning
--- | ---
0 | ALIGNMENT_NOT_READY
1 | REV_ATT_MODE
2 | NAV_MODE
3 | VALID_SET_HEADING
4 | ATTITUDE_INVALID
5 | DC_FAIL
6 | ON_DC
7 | ADR_FAULT
8 | IR_FAULT
9 | DC_FAIL_ON_DC
10 | ALIGN_FAULT
11 | NO_IRS_INITIAL
12 | EXCESS_MOTION_ERROR
13 | ADR_IR_FAULT
14 | EXTREME_LATITUDE
15,16,17 | ALIGN_7_10_MINUTES
16,17 | ALIGN_6_MINUTES
15,17 | ALIGN_5_MINUTES
16 | ALIGN_4_MINUTES
15,16 | ALIGN_3_MINUTES
16 | ALIGN_2_MINUTES
15 | ALIGN_1_MINUTES
18 | COMPUTED_LATITUDE_MISCOMPARE

- A32NX_ADIRS_USES_GPS_AS_PRIMARY
- Deprecated, this is an FM function, not ADIRU
- Bool
- Whether or not the GPS is used as the primary means of navigation/position determination.

- A32NX_PUSH_TRUE_REF
- Bool
- True reference pushbutton status

## Radio Receivers

- A32NX_RADIO_RECEIVER_USAGE_ENABLED
Expand Down Expand Up @@ -3225,6 +3330,18 @@ In the variables below, {number} should be replaced with one item in the set: {
- Indicates the position of the gear emergency extension crank handle from 0 to 300 (3 turns)
- Percent

- A32NX_GEAR_LEVER_POSITION_REQUEST
- Indicates that the pilot tries to move the gear lever (1=down)
- Boolean

- A32NX_GEAR_HANDLE_POSITION
- Indicates the actual position of the gear handle
- Percent over 100

- A32NX_GEAR_HANDLE_HITS_LOCK_SOUND
- Indicates that gear lever just hit the baulk lock mechanism
- Boolean

## ATC (ATA 34)

- A32NX_TRANSPONDER_MODE
Expand Down Expand Up @@ -3330,21 +3447,21 @@ In the variables below, {number} should be replaced with one item in the set: {
- Boolean
- Read/Write
- Whether the pushback system is enabled
- Further conditions are "Pushback Tug Attached" and "Aircraft On Ground" otherwise the system
- Further conditions are "Pushback Tug Attached" and "Aircraft On Ground" otherwise the system
has no impact on the aircraft

- A32NX_PUSHBACK_SPD_FACTOR
- Number
- Read/Write
- Determines the speed of the pushback tug from -100% to 100%
- Determines the speed of the pushback tug from -100% to 100%
- {number}
- -1.0
- 1.0

- A32NX_PUSHBACK_HDG_FACTOR
- Number
- Read/Write
- Determines the heading of the pushback tug from max left (-1.0) to right (1.0)
- Determines the heading of the pushback tug from max left (-1.0) to right (1.0)
- {number}
- -1.0
- 1.0
10 changes: 7 additions & 3 deletions flybywire-aircraft-a320-neo/ModelBehaviorDefs/A32NX/Airbus.xml
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,8 @@
<ANIM_NAME_BUTTON>PUSH_ECAM_#BASE_NAME#</ANIM_NAME_BUTTON>
<LED_NODE_ID>PUSH_ECAM_#BASE_NAME#_SEQ2</LED_NODE_ID>
<BACKLIGHT_NODE_ID>PUSH_ECAM_#BASE_NAME#_SEQ1</BACKLIGHT_NODE_ID>
<EVENT_NAME>A320_Neo_EICAS_2_ECAM_CHANGE_PAGE_#BASE_NAME#</EVENT_NAME>
<!-- <EVENT_NAME>A320_Neo_EICAS_2_ECAM_CHANGE_PAGE_#BASE_NAME#</EVENT_NAME> -->
<EVENT_NAME>A32NX_SD_PAGE_CHANGED</EVENT_NAME>
<CURRENT_BUTTON_VAR_NAME>A32NX_ECAM_SD_CURRENT_PAGE_INDEX</CURRENT_BUTTON_VAR_NAME>
<WWISE_EVENT_1>mcdubuttons</WWISE_EVENT_1>
<NORMALIZED_TIME_1>0.1</NORMALIZED_TIME_1>
Expand All @@ -160,9 +161,12 @@
<UseTemplate Name="ASOBO_GT_Push_Button">
<ANIM_NAME>#ANIM_NAME_BUTTON#</ANIM_NAME>
<LEFT_SINGLE_CODE>
#GROUP_INDEX# -1 &gt; if{
(&gt;H:#EVENT_NAME#) #GROUP_INDEX#
(L:A32NX_ECAM_SD_CURRENT_PAGE_INDEX) #GROUP_INDEX# != if{
#GROUP_INDEX# (&gt;L:A32NX_ECAM_SD_CURRENT_PAGE_INDEX)
} els{
-1 (&gt;L:A32NX_ECAM_SD_CURRENT_PAGE_INDEX)
}
(&gt;H:A32NX_SD_PAGE_CHANGED)
</LEFT_SINGLE_CODE>
</UseTemplate>
</Component>
Expand Down
Loading