Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Compass heading from deviceorientation
Message
From
24/04/2014 11:29:14
 
 
General information
Forum:
HTML5
Category:
Browser issues
Miscellaneous
Thread ID:
01598938
Message ID:
01598984
Views:
16
>>>
>>>With that correction the heading does seems to remain fairly constant regardless of beta and gamma values. But changes on the x axis still result in the skip :-{
>>>H
>>
>>
>>Can you post the values of( alpha, beta, gamma , absolute) before and those that produce a 'skip' ?
>>
>>Update : and your current code
>
>Also just noticed:
>
>"The compass heading calculation above can be represented in JavaScript as follows to return the correct compass heading when the provided parameters are defined, not null and represent absolute values" here : http://w3c.github.io/deviceorientation/spec-source-orientation.html.
>
>Maybe I should be converting to absolute before calling the function ?

Nope. Results become even more confused :-{
Previous
Reply
Map
View

Click here to load this message in the networking platform