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

Mobile device flat on surface to get tilt position 0 #147

Open
JonasGredig opened this issue Feb 16, 2022 · 1 comment
Open

Mobile device flat on surface to get tilt position 0 #147

JonasGredig opened this issue Feb 16, 2022 · 1 comment

Comments

@JonasGredig
Copy link

JonasGredig commented Feb 16, 2022

Hi

I found the issue that the physical tilt of the device triggers the tilt only works when the mobile device is flat on a surface. Since a phone or a tablet is usually not in that position when the script is loaded I would suggest to define the first position you get from the gyro lib to be set as the 0 of the tilt. I think instead of an absolute 0, its a relative to the starting point. If that makes sense 👍

Love your fork of the original lib!

Kind regards
Jonas Gredig

@bw16sk
Copy link

bw16sk commented Nov 12, 2023

Hey Jonas,

did you manage to solve it somehow?

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