aircraft
aircraft copied to clipboard
feat(hyd): changed gear lever mechanism / added gear door drag
Fixes #[issue_no]
Summary of Changes
Default gear lever mechanism using GEAR HANDLE POSITION simvar causes bugs with ground collision detection (landing gear down with gear lever up causes wheels going through the ground).
A custom lvar is added to handle the lever position only, and simvar GEAR HANDLE POSITION is built by system wasm depending on actual gear extension position
Added features:
- [x] Gear doors opened cause drag
- [ ] Gear lever animation shows it moving a bit when it's locked down
Screenshots (if necessary)
References
Additional context
Discord username (if different from GitHub):
Testing instructions
Check everything that can be affected by a massive gear system hack.
Non regression check non exhaustive list:
- Gear deployed still adds drag to the plane
- Systems using gear state and lever state are working properly (landing gear light...) ...
New features:
- Gear lever up. Gravity extension to get gear down with gear lever still up. Check plane lands normally and brakes correctly.
- Doors opened only (using gravity gear extension 2 turns only) adds some drag to the plane
- Collision detection works if you land with not all gears downlocked (use failures)
- Trying to pull gear lever up on ground shows the lever moving a bit up but refuses to go full up
How to download the PR for QA
Every new commit to this PR will cause a new A32NX artifact to be created, built, and uploaded.
- Make sure you are signed in to GitHub
- Click on the Checks tab on the PR
- On the left side, click on the bottom PR tab
- Click on the A32NX download link at the bottom of the page