Skip to content

Calculate tilt depends on the device plan#2

Open
sksarojkumar wants to merge 1 commit intomia-recki:mainfrom
sksarojkumar:features
Open

Calculate tilt depends on the device plan#2
sksarojkumar wants to merge 1 commit intomia-recki:mainfrom
sksarojkumar:features

Conversation

@sksarojkumar
Copy link
Copy Markdown

Currently, this works perfectly when the mobile device is parallel to the ground/flat on a table, but when you hold your mobile in your hand it's upward(standing upward 'Portrait') at that time it does not give you correct tilt angles.

I have added that part of the calculation, so, now it will work and give correct tilt angles when you hold your mobile upward.
I have added one variable named 'devicePlan' which takes a value of either 0 or 1.
When a value is 0, it works as works previously and when a value is 1 it works in the upward position.

Some packages are outdated and causing errors so I updated whatever required.

If anything else is required to update or modify please reply to me.

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

Successfully merging this pull request may close these issues.

1 participant