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

Fork aimed at resolving the "tilted head after flying a while" bug #20

Open
quantumac opened this issue Aug 7, 2019 · 4 comments
Open

Comments

@quantumac
Copy link
Contributor

I created a fork to specifically address the irritating bug where after flying for a while the pilot's view is permanently rolled to one side or the other. My fork basically recomputes the roll from the camera commands and applies an offset to counter the roll drift offset introduced by X-Plane. It also attempts to quantize the floating point calculations so as to minimize numerical precision issues when adding/subtracting offsets to head rotations. Lastly, it sets the head roll first before setting the pitch and yaw angles, and that seems to minimize some of the imprecision in roll introduced by X-Plane.

You can check out the changes at "https://github.com/quantumac/headshake". Feel free to use any of these changes or not.

@quantumac
Copy link
Contributor Author

Addendum: I filed a bug report with Laminar Research regarding another issue where the "alternate orientation" which X-Plane maintains is overwritten or updated when the view is aligned with a preset and HeadShake modifies the pilots head orientation. The result is the user is no longer able to bounce back and forth between some orientation they've slewed to and a preset orientation by pressing a single key. It's a handy feature. I requested they add some dataref which HeadShake could use to keep this alternate orientation from being modified when HeadShake makes its modification of the pilots head. I don't know if Laminar Research will address this or not, but at least they have given the issue a bug report number: XPD-10251.

@nico87
Copy link
Contributor

nico87 commented Aug 9, 2019 via email

@quantumac
Copy link
Contributor Author

Pull request created. Try it out and see what you think.

@nico87
Copy link
Contributor

nico87 commented Aug 9, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants